diff --git a/apps-helm/sshtunnel/templates/deployment.yaml b/apps-helm/sshtunnel/templates/deployment.yaml index 9dffe51..f3e1281 100644 --- a/apps-helm/sshtunnel/templates/deployment.yaml +++ b/apps-helm/sshtunnel/templates/deployment.yaml @@ -31,7 +31,7 @@ spec: command: - /bin/sh - -c - - cp /keyfile/autossh /tmp/; chmod 600 /tmp/autossh; autossh -M0 {{.Values.tunnel.user}}@{{.Values.tunnel.sshHost}} -i /tmp/autossh + - cp /keyfile/keyfile /tmp/autossh; chmod 600 /tmp/autossh; autossh -M0 {{.Values.tunnel.user}}@{{.Values.tunnel.sshHost}} -i /tmp/autossh {{- range .Values.tunnel.sshOptions}} {{.}} {{end}} {{- range .Values.tunnel.ports}} -R{{.bindIP}}:{{.source}}:{{.destsvc}}.{{.destns}}.svc.cluster.local.:{{.dest}} {{end}} securityContext: