siranga/manifests/service.yaml
Dreaded_X 6fe3a1213f
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 6m0s
Create internal dns name for tunnel ssh ip and use port 22
2025-04-16 03:18:58 +02:00

27 lines
422 B
YAML

apiVersion: v1
kind: Service
metadata:
name: tunnel
spec:
ports:
- name: "3000"
port: 3000
targetPort: 3000
selector:
app: tunnel
---
apiVersion: v1
kind: Service
metadata:
name: tunnel-ssh
annotations:
external-dns.alpha.kubernetes.io/hostname: tunnel.svc.${domain}
spec:
type: LoadBalancer
ports:
- name: "2222"
port: 22
targetPort: 2222
selector:
app: tunnel