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