Skip to content

Commit 8f3ae61

Browse files
committed
feat(database): add initContainer
1 parent 6ebc772 commit 8f3ae61

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

charts/database/templates/database-deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ spec:
2020
app: drycc-database
2121
spec:
2222
serviceAccount: drycc-database
23+
initContainers:
24+
- name: drycc-database-init
25+
image: docker.io/drycc/python-dev:latest
26+
imagePullPolicy: {{.Values.image_pull_policy}}
27+
command:
28+
- netcat
29+
- -v
30+
- -a
31+
- $(DRYCC_MINIO_SERVICE_HOST):$(DRYCC_MINIO_SERVICE_PORT)
2332
containers:
2433
- name: drycc-database
2534
image: {{.Values.image_registry}}/{{.Values.image_org}}/postgres:{{.Values.image_tag}}

0 commit comments

Comments
 (0)