Kubernetes Service Manifest

From NovaOrdis Knowledge Base
Revision as of 23:56, 11 November 2019 by Ovidiu (talk | contribs) (→‎Internal)
Jump to navigation Jump to search

External

Internal

Example

Example

apiVersion: v1
kind: Service
metadata:
  name: blue
  labels:
    size: large
spec:
  type: ClusterIP
  selector:
    app: blue # Label selector, the service is looking for pods with the label "app=blue"
  ports:
  - port: 8080
    targetPort: 
    protocol: TP