01_service.yml 434 B

1234567891011121314151617181920
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. labels:
  5. run: ssh-bastion
  6. name: ssh-bastion
  7. namespace: byoh-ssh-bastion
  8. annotations:
  9. service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "tcp"
  10. service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
  11. spec:
  12. externalTrafficPolicy: Local
  13. ports:
  14. - name: ssh
  15. port: 22
  16. protocol: TCP
  17. targetPort: ssh
  18. selector:
  19. run: ssh-bastion
  20. type: LoadBalancer