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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user