blob: c2a8205d0d0ddd2e74ecd236e6ec4d83c311c703 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableVfcVfcWorkflow }}
maopengzhang799cc592017-09-01 09:37:48 +08002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: vfc-workflow
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
maopengzhang799cc592017-09-01 09:37:48 +08007spec:
8 replicas: {{ .Values.workflow.replicas }}
9 selector:
10 matchLabels:
11 app: vfc-workflow
12 template:
13 metadata:
14 labels:
15 app: vfc-workflow
16 name: vfc-workflow
17 spec:
18 hostname: vfc-workflow
19 containers:
20 - args:
21 image: {{.Values.workflow.image}}
22 name: "vfc-workflow"
23 env:
Alexis de Talhouëted6bd732017-11-28 14:59:30 -050024 - name: SERVICE_IP
25 valueFrom:
26 fieldRef:
27 fieldPath: status.podIP
28 - name: SERVICE_PORT
29 value: "{{ .Values.workflow.port }}"
30 - name: OPENPALETTE_MSB_IP
BorislavG8bfc6cf2018-02-27 15:04:26 +000031 value: msb-iag.{{ .Values.nsPrefix }}
Alexis de Talhouëted6bd732017-11-28 14:59:30 -050032 - name: OPENPALETTE_MSB_PORT
33 value: "80"
maopengzhang799cc592017-09-01 09:37:48 +080034 ports:
35 - containerPort: {{ .Values.workflow.port }}
36 readinessProbe:
37 tcpSocket:
38 port: {{ .Values.workflow.port }}
39 initialDelaySeconds: 5
40 periodSeconds: 10
41 imagePullPolicy: "{{ .Values.pullPolicy }}"
42 imagePullSecrets:
yurynfcef9942017-10-26 17:10:50 +030043 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG8bfc6cf2018-02-27 15:04:26 +000044#{{ end }}