|
|
|
@ -10,22 +10,6 @@ appDef.helmApplication( |
|
|
|
|
enabled: true, |
|
|
|
|
hostname: "keycloak.avril" |
|
|
|
|
}, |
|
|
|
|
initContainers: [ |
|
|
|
|
// https://stackoverflow.com/a/70947232/1040915 |
|
|
|
|
{ |
|
|
|
|
name: "add-backup-to-crontab", |
|
|
|
|
image: "ubuntu", |
|
|
|
|
command: [ |
|
|
|
|
"/bin/sh", |
|
|
|
|
"-c", |
|
|
|
|
'apt update; apt install -y cron; echo "* * * * * /opt/bitnami/keycloak/bin/kc.sh export --file /backup/realm-export-$(date +%s).json --realm new-realm" | crontab -' |
|
|
|
|
], |
|
|
|
|
securityContext: { |
|
|
|
|
allowPrivilegeEscalation: true, |
|
|
|
|
runAsUser: 0 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
image: { |
|
|
|
|
tag: "24.0.2" |
|
|
|
|
}, |
|
|
|
|