28 lines
947 B
YAML
28 lines
947 B
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
namespace: authentik
|
|
namePrefix: authentik-
|
|
resources: [../base]
|
|
patches:
|
|
- target: {kind: CronJob, name: postgresql-backup}
|
|
patch: |-
|
|
apiVersion: batch/v1
|
|
kind: CronJob
|
|
metadata: {name: postgresql-backup}
|
|
spec:
|
|
schedule: "45 2 * * *"
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: pg-dump
|
|
env:
|
|
- {name: BACKUP_TARGET, value: authentik}
|
|
- {name: BACKUP_MODE, value: database}
|
|
- {name: PGHOST, value: authentik-cnpg-rw}
|
|
- {name: PGUSER, value: authentik}
|
|
- {name: PGDATABASE, value: authentik}
|
|
- name: PGPASSWORD
|
|
valueFrom: {secretKeyRef: {name: authentik-postgresql, key: password}}
|