blob: f19b55fe956528fcddafa58a9fc32dba72fa586e [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
6 namespace: "{{ .Values.nsPrefix }}-{{ .Chart.Name }}"
7spec:
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
31 value: msb-iag.{{ .Values.nsPrefix }}-msb
32 - 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"
44#{{ end }}