Force forgejo to use static ssh keys
This commit is contained in:
parent
09f1fc920f
commit
def715c36c
2 changed files with 16 additions and 1 deletions
|
|
@ -14,4 +14,4 @@ spec:
|
|||
volumes:
|
||||
- name: target-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: calibre-web-config-pvc
|
||||
claimName: forgejo-data
|
||||
|
|
|
|||
|
|
@ -18,6 +18,21 @@ spec:
|
|||
labels:
|
||||
app: forgejo
|
||||
spec:
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
initContainers:
|
||||
- name: fix-ssh-permissions
|
||||
image: busybox:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
mkdir -p /data/ssh
|
||||
chown -R 1000:1000 /data/ssh
|
||||
chmod 700 /data/ssh
|
||||
volumeMounts:
|
||||
- name: forgejo-data
|
||||
mountPath: /data
|
||||
containers:
|
||||
- name: forgejo
|
||||
image: codeberg.org/forgejo/forgejo:10
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue