Remove initContainer backup approach

This commit is contained in:
Jack Jackson 2024-04-20 13:21:41 -07:00
parent b4c9947e4c
commit 185af7901a

View File

@ -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"
},