ssh tunnel on staging to talos cluster
This commit is contained in:
parent
7326438470
commit
1baed53927
1 changed files with 25 additions and 5 deletions
|
|
@ -32,7 +32,7 @@ spec:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: portal-storage-creds
|
name: portal-storage-creds
|
||||||
key: AWS_SECRET_ACCESS_KEY
|
key: AWS_SECRET_ACCESS_KEY
|
||||||
- name: ssh-tunnel
|
- name: ssh-tunnel-dev
|
||||||
image: servala.app.codey.ch/servala/servala-portal:latest
|
image: servala.app.codey.ch/servala/servala-portal:latest
|
||||||
command:
|
command:
|
||||||
- "/bin/bash"
|
- "/bin/bash"
|
||||||
|
|
@ -44,10 +44,30 @@ spec:
|
||||||
ssh $SSH_HOST -l $SSH_USER -o StrictHostKeyChecking=no -L 6443:127.0.0.1:6443 -N -i /app/.ssh/id -v
|
ssh $SSH_HOST -l $SSH_USER -o StrictHostKeyChecking=no -L 6443:127.0.0.1:6443 -N -i /app/.ssh/id -v
|
||||||
env:
|
env:
|
||||||
- name: SSH_HOST
|
- name: SSH_HOST
|
||||||
valueFrom:
|
value: "78.47.176.209"
|
||||||
secretKeyRef:
|
- name: SSH_USER
|
||||||
name: servala-sshclient
|
valueFrom:
|
||||||
key: ssh-host
|
secretKeyRef:
|
||||||
|
name: servala-sshclient
|
||||||
|
key: ssh-user
|
||||||
|
- name: SSH_PRIVATE_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: servala-sshclient
|
||||||
|
key: ssh-private-key
|
||||||
|
- name: ssh-tunnel-talos
|
||||||
|
image: servala.app.codey.ch/servala/servala-portal:latest
|
||||||
|
command:
|
||||||
|
- "/bin/bash"
|
||||||
|
- "-c"
|
||||||
|
- |
|
||||||
|
mkdir -p /app/.ssh && chmod 700 /app/.ssh
|
||||||
|
echo "$SSH_PRIVATE_KEY" > /app/.ssh/id
|
||||||
|
chmod 600 /app/.ssh/id
|
||||||
|
ssh $SSH_HOST -l $SSH_USER -o StrictHostKeyChecking=no -L 6444:172.18.200.10:6443 -N -i /app/.ssh/id -v
|
||||||
|
env:
|
||||||
|
- name: SSH_HOST
|
||||||
|
value: mgmt.cls-rma1-9c02.servala.com
|
||||||
- name: SSH_USER
|
- name: SSH_USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue