-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s-job.yaml
50 lines (50 loc) · 1.38 KB
/
k8s-job.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
apiVersion: batch/v1
kind: Job
metadata:
name: pg-backup-one
namespace: default
spec:
template:
metadata:
annotations: {}
spec:
containers:
- env:
- name: HOST
value: YourHostGoesHere
- name: PASSWORD
value: YourPasswordGoesHere
- name: USER
value: YourUserGoesHere
- name: DATABASE
value: "*"
- name: FULLDUMP
value: "True"
image: ghcr.io/nataz77/pgbackupd/pgbackupd:latest
imagePullPolicy: Always
name: postgresbackup
resources: {}
securityContext:
allowPrivilegeEscalation: false
capabilities: {}
privileged: false
readOnlyRootFilesystem: false
runAsNonRoot: false
stdin: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
tty: true
volumeMounts:
- mountPath: /data/pgdump
name: pgbackup
dnsPolicy: ClusterFirst
# Uncomment this if you are pulling from a private registry
# imagePullSecrets:
# - name: secret
restartPolicy: Never
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: pgbackup
emptyDir: {}