FIX(crafty): fix permissions and add backend HTTPS

- Add initContainer to set proper file permissions (chown 1000:0)
- Add fsGroup: 0 for root group permissions
- Add ServersTransport for Traefik backend HTTPS with insecureSkipVerify
- Add traefik.ingress.kubernetes.io/service.serversscheme annotation
This commit is contained in:
2026-01-01 09:04:17 +09:00
parent ee1f8e3d81
commit 2eede3a3d7
4 changed files with 29 additions and 0 deletions

View File

@@ -17,6 +17,25 @@ spec:
labels:
app: crafty
spec:
securityContext:
fsGroup: 0
initContainers:
- name: init-permissions
image: busybox:latest
command: ['sh', '-c', 'chown -R 1000:0 /crafty && chmod -R g+rwX /crafty']
volumeMounts:
- name: backups
mountPath: /crafty/backups
- name: logs
mountPath: /crafty/logs
- name: servers
mountPath: /crafty/servers
- name: config
mountPath: /crafty/app/config
- name: import
mountPath: /crafty/import
securityContext:
runAsUser: 0
containers:
- name: crafty
image: registry.gitlab.com/crafty-controller/crafty-4:latest