Skip to content

Commit 0be1d02

Browse files
committed
fix: heml chart fixes and inclusions from Moh Ke
1 parent 2f1ad5a commit 0be1d02

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

deploy/cht_sync/templates/dbt.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
apiVersion: apps/v1
55
kind: Deployment
66
metadata:
7-
name: cht-sync-dbt
7+
name: cht-sync-dbt-{{ $index }}
88
spec:
99
replicas: 1
1010
selector:
1111
matchLabels:
12-
app: cht-sync-dbt
12+
app: cht-sync-dbt-{{ $index }}
1313
template:
1414
metadata:
1515
labels:
16-
app: cht-sync-dbt
16+
app: cht-sync-dbt-{{ $index }}
1717
spec:
1818
automountServiceAccountToken: false
1919
containers:
@@ -46,7 +46,6 @@ spec:
4646
value: {{ $.Values.dbt_thread_count | default "1" | quote }}
4747
- name: DBT_SELECTOR
4848
value: {{ $dbt_selector }}
49-
value: {{ .Values.dbt_thread_count | default "1" | quote }}
5049
- name: DBT_BATCH_SIZE
51-
value: {{ .Values.dbt_batch_size | default "" | quote }}
50+
value: {{ $.Values.dbt_batch_size | default "" | quote }}
5251
{{- end }}

deploy/cht_sync/templates/postgres-service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ spec:
1010
- protocol: TCP
1111
port: {{ .Values.postgres.port | default "5432" }}
1212
targetPort: 5432
13+
{{- if .Values.postgres.nodePort }}
14+
nodePort: {{ .Values.postgres.nodePort }}
15+
{{- end }}
1316
{{- end }}

deploy/cht_sync/templates/postgres.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,14 @@ spec:
3838
volumeMounts:
3939
- name: postgres-data
4040
mountPath: /var/lib/postgresql/data
41+
- name: postgres-shm
42+
mountPath: /dev/shm
4143
volumes:
4244
- name: postgres-data
4345
persistentVolumeClaim:
4446
claimName: postgres-pvc
47+
- name: postgres-shm
48+
emptyDir:
49+
medium: Memory
50+
sizeLimit: {{ (.Values.postgres).memory_limit | default "2Gi" }}
4551
{{- end }}

0 commit comments

Comments
 (0)