Fix ssh permission denied(publickey) at reinstalling the chart without deleting pvc #25
Reference in New Issue
Block a user
No description provided.
Delete Branch "luhahn/helm-chart:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found a bug / strange behavior with longhorn storage. When gitea is reinstalled without deleting the PVC then kubernetes remounts the volume but uses default permissions for /data/git/.ssh which causes all ssh clone attempts to fail with: Permission denied (publickey)
The init container now creates this folder and sets permissions 700
@@ -26,2 +26,4 @@- name: SCRIPTvalue: &script |-mkdir -p /data/git/.sshchmod 700 /data/git/.sshShould this be recursive chmod, in case there are any existing files inside that folder already?
Somehow this only affects the main .ssh folder. I tried it manually with this command and everything works fine again after chmod 700 /data/git/.ssh even if there are files present already.
ah ok. thanks for testing :)