blob: e4642c93efd3173a91cab6a7a79ce632e8f08b0d [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableDcaeDcaeController }}
Mike Elliott586f03b2017-09-08 12:46:15 -04002apiVersion: v1
3kind: Service
4metadata:
5 labels:
6 app: dcae-controller
7 version: latest
8 name: dcae-controller
BorislavG8bfc6cf2018-02-27 15:04:26 +00009 namespace: "{{ .Values.nsPrefix }}"
Mike Elliott586f03b2017-09-08 12:46:15 -040010spec:
11 ports:
12 - name: dcae-con1
13 port: 8000
14 protocol: TCP
15 targetPort: 8000
16 nodePort: {{ .Values.nodePortPrefix }}34
17 - name: dcae-con2
18 port: 9998
19 protocol: TCP
20 targetPort: 9998
21 nodePort: {{ .Values.nodePortPrefix }}35
22 selector:
23 app: dcae-controller
24 type: NodePort
25---
26apiVersion: extensions/v1beta1
27kind: Deployment
28metadata:
29 name: dcae-controller
BorislavG8bfc6cf2018-02-27 15:04:26 +000030 namespace: "{{ .Values.nsPrefix }}"
Mike Elliott586f03b2017-09-08 12:46:15 -040031spec:
32 selector:
33 matchLabels:
34 app: dcae-controller
35 template:
36 metadata:
37 labels:
38 app: dcae-controller
39 name: dcae-controller
40 spec:
41 containers:
42 - image: {{ .Values.image.controller }}
43 imagePullPolicy: {{ .Values.pullPolicy }}
44 name: dcae-controller
45 ports:
46 - containerPort: 8000
47 - containerPort: 9998
48 env:
49# - name: KAFKA_ZOOKEEPER_CONNECT
50# value: "zookeeper:2181"
51# command:
52# - start-kafka.sh
53 volumeMounts:
54 - mountPath: /opt/app/config
55 name: dcae-controller-config
56 restartPolicy: Always
57 volumes:
58 - name: dcae-controller-config
59 hostPath:
60 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/dcae-controller/config
61 imagePullSecrets:
62 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG8bfc6cf2018-02-27 15:04:26 +000063#{{ end }}