Skip to content

Commit a1317c0

Browse files
committed
chore(controller): add initContainer
1 parent 78b65e3 commit a1317c0

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

charts/controller/templates/controller-deployment.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ spec:
2222
app: drycc-controller
2323
spec:
2424
serviceAccount: drycc-controller
25+
initContainers:
26+
- name: drycc-controller-init
27+
image: {{.Values.image_registry}}/{{.Values.image_org}}/python-dev:latest
28+
imagePullPolicy: {{.Values.image_pull_policy}}
29+
command:
30+
- netcat
31+
- -v
32+
- -s
33+
- ,
34+
- -u
35+
- $(DRYCC_DATABASE_URL),$(DRYCC_RABBITMQ_URL),$(DRYCC_REDIS_ADDRS)
36+
{{- include "controller.limits" . | indent 10 }}
37+
{{- include "controller.envs" . | indent 10 }}
2538
containers:
2639
- name: drycc-controller
2740
image: {{.Values.image_registry}}/{{.Values.image_org}}/controller:{{.Values.image_tag}}

0 commit comments

Comments
 (0)