blob: aed359ecebc1f6980051f78e81ee2ff0e93153f8 [file] [log] [blame]
maopengzhangeea3dd62017-12-11 18:00:13 +08001#{{ if not .Values.disableVfcVfcztevnfmdriver }}
maopengzhang799cc592017-09-01 09:37:48 +08002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
maopengzhangeea3dd62017-12-11 18:00:13 +08005 name: vfc-ztevnfmdriver
maopengzhang799cc592017-09-01 09:37:48 +08006 namespace: "{{ .Values.nsPrefix }}-{{ .Chart.Name }}"
7spec:
maopengzhangeea3dd62017-12-11 18:00:13 +08008 replicas: {{ .Values.ztevnfmdriver.replicas }}
maopengzhang799cc592017-09-01 09:37:48 +08009 selector:
10 matchLabels:
maopengzhangeea3dd62017-12-11 18:00:13 +080011 app: vfc-ztevnfmdriver
maopengzhang799cc592017-09-01 09:37:48 +080012 template:
13 metadata:
14 labels:
maopengzhangeea3dd62017-12-11 18:00:13 +080015 app: vfc-ztevnfmdriver
16 name: vfc-ztevnfmdriver
maopengzhang799cc592017-09-01 09:37:48 +080017 spec:
maopengzhangeea3dd62017-12-11 18:00:13 +080018 hostname: vfc-ztevnfmdriver
maopengzhang799cc592017-09-01 09:37:48 +080019 containers:
20 - args:
maopengzhangeea3dd62017-12-11 18:00:13 +080021 image: {{.Values.ztevnfmdriver.image}}
22 name: "vfc-ztevnfmdriver"
maopengzhang799cc592017-09-01 09:37:48 +080023 env:
24 - name: MSB_ADDR
25 value: {{ .Values.msbaddr }}
26 ports:
maopengzhangeea3dd62017-12-11 18:00:13 +080027 - containerPort: {{ .Values.ztevnfmdriver.port }}
maopengzhang799cc592017-09-01 09:37:48 +080028 readinessProbe:
29 tcpSocket:
maopengzhangeea3dd62017-12-11 18:00:13 +080030 port: {{ .Values.ztevnfmdriver.port }}
maopengzhang799cc592017-09-01 09:37:48 +080031 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 }}