Remove initContainer backup approach

main
Jack Jackson 3 weeks ago
parent b4c9947e4c
commit 185af7901a
  1. 16
      app-of-apps/keycloak.jsonnet

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

Loading…
Cancel
Save