Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 509 Bytes

File metadata and controls

19 lines (18 loc) · 509 Bytes

clusterip

  • ip address of a [[service]] limited to a cluster is known as [[clusterip]]
  • each group of pods will a single service interface for communicating effectively to access them

definition

apiVersion: v1
kind: Service
metadata:
      name: my-app-service
spec:
      type: ClusterIP # default type of the type
      ports:
          - targetPort: 80 # port of the pod
            port: 80 # port of the service
      selector:
            app: myapp # labels
            type: backend