From 6fe3a1213f8c28874cfdd1b1e68c5200d760c93c Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Wed, 16 Apr 2025 03:18:58 +0200 Subject: [PATCH] Create internal dns name for tunnel ssh ip and use port 22 --- manifests/service.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/service.yaml b/manifests/service.yaml index ef2c578..71f2127 100644 --- a/manifests/service.yaml +++ b/manifests/service.yaml @@ -14,11 +14,13 @@ 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: 2222 + port: 22 targetPort: 2222 selector: app: tunnel