1. 程式人生 > >service和pod通過標簽綁定

service和pod通過標簽綁定

span target pan meta api label name ext 標簽

service和pod綁定

apiVersion: v1
kind: Service
metadata:
  name: my-haproxy
  labels:
    app: my-haproxy
spec:
  ports:
  - port: 8078
    targetPort: 6443
  selector:
    app: my-haproxy
  externalIPs:
  - 192.168.0.12

service和pod通過標簽綁定