2.edited 480 B

1234567891011121314151617181920212223
  1. # Please edit the object below. Lines beginning with a '#' will be ignored,
  2. # and an empty file will abort the edit. If an error occurs while saving this file will be
  3. # reopened with the relevant failures.
  4. #
  5. apiVersion: v1
  6. kind: Service
  7. metadata:
  8. labels:
  9. app: svc2
  10. name: svc2
  11. namespace: edit-test
  12. spec:
  13. ports:
  14. - name: "80"
  15. port: 80
  16. protocol: TCP
  17. targetPort: 81
  18. selector:
  19. app: svc2
  20. new-label: new-value
  21. sessionAffinity: None
  22. type: ClusterIP