01_service.yml 290 B

1234567891011121314151617
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. labels:
  5. run: ssh-bastion
  6. name: ssh-bastion
  7. namespace: openshift-ssh-bastion
  8. spec:
  9. externalTrafficPolicy: Local
  10. ports:
  11. - name: ssh
  12. port: 22
  13. protocol: TCP
  14. targetPort: ssh
  15. selector:
  16. run: ssh-bastion
  17. type: LoadBalancer