summaryrefslogtreecommitdiff
path: root/f3s/git-server
diff options
context:
space:
mode:
Diffstat (limited to 'f3s/git-server')
-rw-r--r--f3s/git-server/helm-chart/templates/deployment.yaml10
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