1f5c9036c2
- replaced wget with curl - made zammad image smaller by using tar.gz install instead of git clone - moved sed commands to entrypoint - added variables to entrypoint to set used servers dynamically - added kubernetes backup cronjob - added postgresql volume to compose file - write nginx logs to stdout & stderr - create zammad user & group manually with uid/gid 1000
24 lines
594 B
YAML
24 lines
594 B
YAML
apiVersion: batch/v1beta1
|
|
kind: CronJob
|
|
metadata:
|
|
name: backup
|
|
namespace: zammad
|
|
spec:
|
|
schedule: "0 0 * * *"
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
spec:
|
|
restartPolicy: OnFailure
|
|
volumes:
|
|
- name: zammad-backup
|
|
persistentVolumeClaim:
|
|
claimName: zammad-backup
|
|
containers:
|
|
- name: zammad-backup
|
|
image: zammad/zammad-docker-compose:zammad-postgresql
|
|
args: [ "zammad-backup-db" ]
|
|
volumeMounts:
|
|
- name: zammad-backup
|
|
mountPath: /var/tmp/zammad
|