Jump to content

Kubernetes: Difference between revisions

290 bytes added ,  19 February 2022
Line 253: Line 253:
For exposing non-http(s) production services, you typically will use a LoadBalancer service.<br>
For exposing non-http(s) production services, you typically will use a LoadBalancer service.<br>
For https services, you will typically use an ingress.
For https services, you will typically use an ingress.
{{ hidden | Example ClusterIP Service |
<syntaxhighlight lang="yaml">
apiVersion: v1
kind: Service
metadata:
  name: pwiki-app-service
spec:
  type: ClusterIP
  selector:
    pod-label: pwiki-app-pod
  ports:
    - protocol: TCP
      port: 80
      targetPort: 3000
</syntaxhighlight>
}}


==Ingress==
==Ingress==