File tree 4 files changed +28
-36
lines changed
4 files changed +28
-36
lines changed Original file line number Diff line number Diff line change 23
23
containers :
24
24
- image : graph-backup-job:latest
25
25
name : graph-backup
26
- volumeMounts : []
26
+ volumeMounts :
27
+ - name : postgresql-data
28
+ mountPath : " /var/lib/pgsql"
27
29
env :
28
30
- name : THOTH_DEPLOYMENT_NAME
29
31
valueFrom :
@@ -94,18 +96,24 @@ spec:
94
96
secretKeyRef :
95
97
name : postgresql
96
98
key : database-name
99
+ - name : THOTH_DATA_DUMP_PATH
100
+ value : " /var/lib/pgsql/pg_dump.sql"
97
101
resources :
98
102
requests :
99
103
memory : " 1Gi"
100
104
cpu : " 1"
105
+ ephemeral-storage : " 1Gi"
101
106
limits :
102
107
memory : " 1Gi"
103
108
cpu : " 1"
109
+ ephemeral-storage : " 1Gi"
104
110
livenessProbe :
105
111
tcpSocket :
106
112
port : 80
107
113
initialDelaySeconds : 7200
108
114
failureThreshold : 1
109
115
periodSeconds : 10
110
116
restartPolicy : OnFailure
111
- volumes : []
117
+ volumes :
118
+ - name : " postgresql-data"
119
+ emptyDir : {}
Original file line number Diff line number Diff line change @@ -20,3 +20,15 @@ patches:
20
20
version: v1
21
21
kind: Job
22
22
annotationSelector: "operation=chat-notification"
23
+ - patch : |-
24
+ - op: replace
25
+ path: "/spec/jobTemplate/spec/template/spec/containers/0/resources/requests/ephemeral-storage"
26
+ value: "20Gi"
27
+ - op: replace
28
+ path: "/spec/jobTemplate/spec/template/spec/containers/0/resources/limits/ephemeral-storage"
29
+ value: "20Gi"
30
+ target:
31
+ group: batch
32
+ version: v1beta1
33
+ kind: CronJob
34
+ name: graph-backup
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ kind: Kustomization
3
3
resources :
4
4
- ../../base
5
5
- thoth-notification.yaml
6
- - pvc.yaml
7
6
images :
8
7
- name : graph-backup-job
9
8
newName : image-registry.openshift-image-registry.svc:5000/thoth-graph-stage/graph-backup-job
@@ -22,27 +21,12 @@ patches:
22
21
kind: Job
23
22
annotationSelector: "operation=chat-notification"
24
23
- patch : |-
25
- - op: add
26
- path: "/spec/jobTemplate/spec/template/spec/containers/0/env/-1"
27
- value: {"name": "THOTH_DATA_DUMP_PATH", "value": "/var/lib/pgsql/pg_dump.sql"}
28
- target:
29
- group: batch
30
- version: v1beta1
31
- kind: CronJob
32
- name: graph-backup
33
- - patch : |-
34
- - op: add
35
- path: "/spec/jobTemplate/spec/template/spec/containers/0/volumeMounts/-1"
36
- value: {"name": "postgresql-data","mountPath": "/var/lib/pgsql"}
37
- target:
38
- group: batch
39
- version: v1beta1
40
- kind: CronJob
41
- name: graph-backup
42
- - patch : |-
43
- - op: add
44
- path: "/spec/jobTemplate/spec/template/spec/volumes/-1"
45
- value: {"name": "postgresql-data","persistentVolumeClaim":{"claimName": "dbbackup"}}
24
+ - op: replace
25
+ path: "/spec/jobTemplate/spec/template/spec/containers/0/resources/requests/ephemeral-storage"
26
+ value: "20Gi"
27
+ - op: replace
28
+ path: "/spec/jobTemplate/spec/template/spec/containers/0/resources/limits/ephemeral-storage"
29
+ value: "20Gi"
46
30
target:
47
31
group: batch
48
32
version: v1beta1
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments