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