diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-09 14:45:31 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-09 14:45:31 +0200 |
| commit | 55a3aba4986819ec2a8fa70b3abb1fe240a22b4a (patch) | |
| tree | 206876e0b05a9f17a766f5809c20c73b46af977a /f3s/git-server | |
| parent | a01543201cc70db3508eab87ac880975de70b1d4 (diff) | |
Fix nested .ssh directory issue
Remove extra .ssh directory creation in initContainer.
The emptyDir mount point itself is /home/git/.ssh.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'f3s/git-server')
| -rw-r--r-- | f3s/git-server/helm-chart/templates/deployment.yaml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/f3s/git-server/helm-chart/templates/deployment.yaml b/f3s/git-server/helm-chart/templates/deployment.yaml index 2ebb095..7df943e 100644 --- a/f3s/git-server/helm-chart/templates/deployment.yaml +++ b/f3s/git-server/helm-chart/templates/deployment.yaml @@ -26,11 +26,11 @@ spec: mkdir -p /ssh-init chown -R 0:0 /ssh-init # Setup authorized_keys with correct ownership - mkdir -p /ssh-git/.ssh - cp /ssh-keys-secret/authorized_keys /ssh-git/.ssh/authorized_keys - chown -R 1000:1000 /ssh-git/.ssh - chmod 700 /ssh-git/.ssh - chmod 600 /ssh-git/.ssh/authorized_keys + # The /ssh-git mount point IS the .ssh directory + cp /ssh-keys-secret/authorized_keys /ssh-git/authorized_keys + chown -R 1000:1000 /ssh-git + chmod 700 /ssh-git + chmod 600 /ssh-git/authorized_keys volumeMounts: - name: ssh-host-keys mountPath: /ssh-init |
