blob: 127612bed2b8ce83e10f966555dcbb1bfa8a3868 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableVfcVfcJujudriver }}
maopengzhang799cc592017-09-01 09:37:48 +08002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: vfc-jujudriver
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
maopengzhang799cc592017-09-01 09:37:48 +08007spec:
8 replicas: {{ .Values.jujudriver.replicas }}
9 selector:
10 matchLabels:
11 app: vfc-jujudriver
12 template:
13 metadata:
14 labels:
15 app: vfc-jujudriver
16 name: vfc-jujudriver
17 spec:
18 hostname: vfc-jujudriver
19 containers:
20 - args:
21 image: {{.Values.jujudriver.image}}
22 name: "vfc-jujudriver"
23 env:
24 - name: MSB_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000025 value: {{ tpl .Values.msbaddr . }}
maopengzhang799cc592017-09-01 09:37:48 +080026 ports:
27 - containerPort: {{ .Values.jujudriver.port }}
28 readinessProbe:
29 tcpSocket:
30 port: {{ .Values.jujudriver.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"
BorislavG8bfc6cf2018-02-27 15:04:26 +000036#{{ end }}