Add option to disable specific deployments
[oom.git] / kubernetes / cli / templates / cli-deployment.yaml
1 #{{ if not .Values.disableCliCli }}
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"
36 #{{ end }}