From e7cdce6806e2333c812394bdd6d4ccc8267c25c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= Date: Wed, 18 Oct 2023 12:09:22 +0200 Subject: [PATCH] container migration: don't use /root for temporary ssh config mount If we mount the SSH config and known_hosts to /root/.ssh in the migration container, then we can't copy thes files from the source server. --- containers/server-helm/templates/deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containers/server-helm/templates/deployment.yaml b/containers/server-helm/templates/deployment.yaml index 1eadab2c3f25..9ddf3ad6266a 100644 --- a/containers/server-helm/templates/deployment.yaml +++ b/containers/server-helm/templates/deployment.yaml @@ -510,11 +510,11 @@ spec: {{- end }} {{- if .Values.migration.ssh.configPath }} - name: ssh-config - mountPath: /root/.ssh/config + mountPath: /tmp/ssh_config {{- end }} {{- if .Values.migration.ssh.knownHostsPath }} - name: ssh-known-hosts - mountPath: /root/.ssh/known_hosts + mountPath: /etc/ssh/ssh_known_hosts {{- end }} {{- end }} {{- if .Values.migration.dataPath }}