k8s-network-service-test.yml 239 B

12345678910111213141516
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: api-server
  5. namespace: zhili
  6. labels:
  7. app: api-server
  8. spec:
  9. ports:
  10. - name: api
  11. port: 8082
  12. protocol: TCP
  13. targetPort: 8082
  14. clusterIP: None
  15. selector:
  16. app: api-server