Skip to content

Commit 04359e4

Browse files
committed
feat(passport): add initContainers
1 parent 55165aa commit 04359e4

1 file changed

Lines changed: 32 additions & 22 deletions

File tree

charts/passport/templates/passport-deployment.yaml

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,38 @@ spec:
2323
app: drycc-passport
2424
spec:
2525
serviceAccount: drycc-passport
26+
initContainers:
27+
- name: drycc-passport-init
28+
image: docker.io/drycc/python-dev:latest
29+
imagePullPolicy: {{.Values.image_pull_policy}}
30+
command:
31+
- netcat
32+
- -v
33+
- -u
34+
- $(DRYCC_DATABASE_URL)
35+
{{- include "passport.envs" . | indent 8 }}
2636
containers:
27-
- name: drycc-passport
28-
image: {{.Values.image_registry}}/{{.Values.image_org}}/passport:{{.Values.image_tag}}
29-
imagePullPolicy: {{.Values.image_pull_policy}}
30-
livenessProbe:
31-
httpGet:
32-
path: /healthz
33-
port: 8000
34-
initialDelaySeconds: 30
35-
timeoutSeconds: 10
36-
readinessProbe:
37-
httpGet:
38-
path: /readiness
39-
port: 8000
40-
initialDelaySeconds: 30
41-
timeoutSeconds: 10
42-
periodSeconds: 5
43-
ports:
44-
- containerPort: 8000
45-
name: http
46-
{{- include "passport.limits" . | indent 10 }}
47-
{{- include "passport.envs" . | indent 10 }}
48-
{{- include "passport.volumeMounts" . | indent 10 }}
37+
- name: drycc-passport
38+
image: {{.Values.image_registry}}/{{.Values.image_org}}/passport:{{.Values.image_tag}}
39+
imagePullPolicy: {{.Values.image_pull_policy}}
40+
livenessProbe:
41+
httpGet:
42+
path: /healthz
43+
port: 8000
44+
initialDelaySeconds: 30
45+
timeoutSeconds: 10
46+
readinessProbe:
47+
httpGet:
48+
path: /readiness
49+
port: 8000
50+
initialDelaySeconds: 30
51+
timeoutSeconds: 10
52+
periodSeconds: 5
53+
ports:
54+
- containerPort: 8000
55+
name: http
56+
{{- include "passport.limits" . | indent 8 }}
57+
{{- include "passport.envs" . | indent 8 }}
58+
{{- include "passport.volumeMounts" . | indent 8 }}
4959
{{- include "passport.volumes" . | indent 6 }}
5060
{{- end }}

0 commit comments

Comments
 (0)