Run all components in one namespace
[oom.git] / kubernetes / cli / templates / cli-deployment.yaml
index 88cb3eb..d4812fb 100644 (file)
@@ -1,10 +1,11 @@
+#{{ if not .Values.disableCliCli }}
 apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
   labels:
     app: cli
   name: cli
-  namespace: "{{ .Values.nsPrefix }}-cli"
+  namespace: "{{ .Values.nsPrefix }}"
 spec:
   selector:
     matchLabels:
@@ -24,6 +25,7 @@ spec:
           value: daemon
         ports:
         - containerPort: 80
+        - containerPort: 8080
           name: cli
         readinessProbe:
           tcpSocket:
@@ -32,3 +34,4 @@ spec:
           periodSeconds: 10
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
+#{{ end }}