Remove initContainer backup approach
This commit is contained in:
parent
b4c9947e4c
commit
185af7901a
@ -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…
x
Reference in New Issue
Block a user