Skip to content

Commit

Permalink
container migration: don't use /root for temporary ssh config mount
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cbosdo committed Oct 20, 2023
1 parent 26bcdcf commit e7cdce6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions containers/server-helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit e7cdce6

Please sign in to comment.