Skip to content

Commit c0ba797

Browse files
committed
feat: fix the pg data issue
1 parent 3fbea43 commit c0ba797

2 files changed

Lines changed: 4 additions & 16 deletions

File tree

deploy/production/ajna-subgraph.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ spec:
5151
metadata:
5252
labels:
5353
app: {{NETWORK_NAME}}-postgres
54-
annotations:
55-
karpenter.sh/do-not-disrupt: "true"
5654
spec:
5755
containers:
5856
- name: postgres
@@ -79,10 +77,10 @@ spec:
7977
- name: POSTGRES_INITDB_ARGS
8078
value: "-E UTF8 --locale=C"
8179
- name: PGDATA
82-
value: /var/lib/postgresql/data
80+
value: /var/lib/postgresql/data/pgdata
8381
volumeMounts:
8482
- name: postgres-data
85-
mountPath: /var/lib/postgresql
83+
mountPath: /var/lib/postgresql/data
8684
resources:
8785
requests:
8886
memory: "1Gi"
@@ -125,8 +123,6 @@ spec:
125123
metadata:
126124
labels:
127125
app: {{NETWORK_NAME}}-ipfs
128-
annotations:
129-
karpenter.sh/do-not-disrupt: "true"
130126
spec:
131127
containers:
132128
- name: ipfs
@@ -188,8 +184,6 @@ spec:
188184
metadata:
189185
labels:
190186
app: {{NETWORK_NAME}}-graph-node
191-
annotations:
192-
karpenter.sh/do-not-disrupt: "true"
193187
spec:
194188
containers:
195189
- name: graph-node

deploy/staging/ajna-subgraph.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ spec:
5151
metadata:
5252
labels:
5353
app: {{NETWORK_NAME}}-postgres
54-
annotations:
55-
karpenter.sh/do-not-disrupt: "true"
5654
spec:
5755
containers:
5856
- name: postgres
@@ -79,10 +77,10 @@ spec:
7977
- name: POSTGRES_INITDB_ARGS
8078
value: "-E UTF8 --locale=C"
8179
- name: PGDATA
82-
value: /var/lib/postgresql/data
80+
value: /var/lib/postgresql/data/pgdata
8381
volumeMounts:
8482
- name: postgres-data
85-
mountPath: /var/lib/postgresql
83+
mountPath: /var/lib/postgresql/data
8684
resources:
8785
requests:
8886
memory: "1Gi"
@@ -125,8 +123,6 @@ spec:
125123
metadata:
126124
labels:
127125
app: {{NETWORK_NAME}}-ipfs
128-
annotations:
129-
karpenter.sh/do-not-disrupt: "true"
130126
spec:
131127
containers:
132128
- name: ipfs
@@ -188,8 +184,6 @@ spec:
188184
metadata:
189185
labels:
190186
app: {{NETWORK_NAME}}-graph-node
191-
annotations:
192-
karpenter.sh/do-not-disrupt: "true"
193187
spec:
194188
containers:
195189
- name: graph-node

0 commit comments

Comments
 (0)