blob: 097986cdd0474a161452b57adf30e40ba9f30134 [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:
24 - name: MSB_ADDR
25 value: {{ .Values.msbaddr }}
26 ports:
27 - containerPort: {{ .Values.workflow.port }}
28 readinessProbe:
29 tcpSocket:
30 port: {{ .Values.workflow.port }}
31 initialDelaySeconds: 5
32 periodSeconds: 10
33 imagePullPolicy: "{{ .Values.pullPolicy }}"
34 imagePullSecrets:
yurynfcef9942017-10-26 17:10:50 +030035 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
36#{{ end }}