.k8s/live/dev-lgfs/dump.yaml
apiVersion: batch/v1
kind: Job
metadata:
name: db-dump
spec:
template:
metadata:
name: db-dump
spec:
serviceAccountName: cccd-dev-lgfs-service
restartPolicy: OnFailure
BackoffLimit: 1
containers:
- name: cccd-job
imagePullPolicy: Always
image: 754256621582.dkr.ecr.eu-west-2.amazonaws.com/laa-get-paid/cccd:set-me
securityContext:
capabilities:
drop:
- ALL
runAsNonRoot: true
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
command:
- bundle
- exec
- rake
- db:dump:anonymised
envFrom:
- configMapRef:
name: cccd-app-config
- secretRef:
name: cccd-secrets
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: cccd-rds
key: url
- name: SETTINGS__AWS__S3__BUCKET
valueFrom:
secretKeyRef:
name: cccd-s3-bucket
key: bucket_name