maopengzhang | eea3dd6 | 2017-12-11 18:00:13 +0800 | [diff] [blame] | 1 | #{{ if not .Values.disableVfcVfcztevnfmdriver }} |
maopengzhang | 799cc59 | 2017-09-01 09:37:48 +0800 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
maopengzhang | eea3dd6 | 2017-12-11 18:00:13 +0800 | [diff] [blame] | 5 | name: vfc-ztevnfmdriver |
maopengzhang | 799cc59 | 2017-09-01 09:37:48 +0800 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}-{{ .Chart.Name }}" |
| 7 | spec: |
maopengzhang | eea3dd6 | 2017-12-11 18:00:13 +0800 | [diff] [blame] | 8 | replicas: {{ .Values.ztevnfmdriver.replicas }} |
maopengzhang | 799cc59 | 2017-09-01 09:37:48 +0800 | [diff] [blame] | 9 | selector: |
| 10 | matchLabels: |
maopengzhang | eea3dd6 | 2017-12-11 18:00:13 +0800 | [diff] [blame] | 11 | app: vfc-ztevnfmdriver |
maopengzhang | 799cc59 | 2017-09-01 09:37:48 +0800 | [diff] [blame] | 12 | template: |
| 13 | metadata: |
| 14 | labels: |
maopengzhang | eea3dd6 | 2017-12-11 18:00:13 +0800 | [diff] [blame] | 15 | app: vfc-ztevnfmdriver |
| 16 | name: vfc-ztevnfmdriver |
maopengzhang | 799cc59 | 2017-09-01 09:37:48 +0800 | [diff] [blame] | 17 | spec: |
maopengzhang | eea3dd6 | 2017-12-11 18:00:13 +0800 | [diff] [blame] | 18 | hostname: vfc-ztevnfmdriver |
maopengzhang | 799cc59 | 2017-09-01 09:37:48 +0800 | [diff] [blame] | 19 | containers: |
| 20 | - args: |
maopengzhang | eea3dd6 | 2017-12-11 18:00:13 +0800 | [diff] [blame] | 21 | image: {{.Values.ztevnfmdriver.image}} |
| 22 | name: "vfc-ztevnfmdriver" |
maopengzhang | 799cc59 | 2017-09-01 09:37:48 +0800 | [diff] [blame] | 23 | env: |
| 24 | - name: MSB_ADDR |
| 25 | value: {{ .Values.msbaddr }} |
| 26 | ports: |
maopengzhang | eea3dd6 | 2017-12-11 18:00:13 +0800 | [diff] [blame] | 27 | - containerPort: {{ .Values.ztevnfmdriver.port }} |
maopengzhang | 799cc59 | 2017-09-01 09:37:48 +0800 | [diff] [blame] | 28 | readinessProbe: |
| 29 | tcpSocket: |
maopengzhang | eea3dd6 | 2017-12-11 18:00:13 +0800 | [diff] [blame] | 30 | port: {{ .Values.ztevnfmdriver.port }} |
maopengzhang | 799cc59 | 2017-09-01 09:37:48 +0800 | [diff] [blame] | 31 | initialDelaySeconds: 5 |
| 32 | periodSeconds: 10 |
| 33 | imagePullPolicy: "{{ .Values.pullPolicy }}" |
| 34 | imagePullSecrets: |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 35 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
| 36 | #{{ end }} |