yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableCliCli }} |
subhash kumar singh | fc3fa1e | 2017-08-31 23:33:16 +0530 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: cli |
| 7 | name: cli |
| 8 | namespace: "{{ .Values.nsPrefix }}-cli" |
| 9 | spec: |
| 10 | selector: |
| 11 | matchLabels: |
| 12 | app: cli |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: cli |
| 17 | name: cli |
| 18 | spec: |
| 19 | containers: |
| 20 | - image: {{ .Values.image.cliImage}} |
| 21 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 22 | name: "cli" |
| 23 | env: |
| 24 | - name: CLI_MODE |
| 25 | value: daemon |
| 26 | ports: |
| 27 | - containerPort: 80 |
| 28 | name: cli |
| 29 | readinessProbe: |
| 30 | tcpSocket: |
| 31 | port: 80 |
| 32 | initialDelaySeconds: 5 |
| 33 | periodSeconds: 10 |
| 34 | imagePullSecrets: |
| 35 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 36 | #{{ end }} |