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 |
EC2 Default User | 745a575 | 2018-01-18 03:31:47 +0000 | [diff] [blame] | 28 | - containerPort: 8080 |
subhash kumar singh | fc3fa1e | 2017-08-31 23:33:16 +0530 | [diff] [blame] | 29 | name: cli |
| 30 | readinessProbe: |
| 31 | tcpSocket: |
| 32 | port: 80 |
| 33 | initialDelaySeconds: 5 |
| 34 | periodSeconds: 10 |
| 35 | imagePullSecrets: |
| 36 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
EC2 Default User | 745a575 | 2018-01-18 03:31:47 +0000 | [diff] [blame] | 37 | #{{ end }} |