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