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