blob: d4812fb783697a96b27da722c14e85ed8dbc5a0f [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableCliCli }}
subhash kumar singhfc3fa1e2017-08-31 23:33:16 +05302apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: cli
7 name: cli
BorislavG8bfc6cf2018-02-27 15:04:26 +00008 namespace: "{{ .Values.nsPrefix }}"
subhash kumar singhfc3fa1e2017-08-31 23:33:16 +05309spec:
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 User745a5752018-01-18 03:31:47 +000028 - containerPort: 8080
subhash kumar singhfc3fa1e2017-08-31 23:33:16 +053029 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 User745a5752018-01-18 03:31:47 +000037#{{ end }}