blob: b7a0e13b885223b846b04af4b669f9537f6d22e8 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableDcaeDcaeController }}
Mike Elliott586f03b2017-09-08 12:46:15 -040016apiVersion: v1
17kind: Service
18metadata:
19 labels:
20 app: dcae-controller
21 version: latest
22 name: dcae-controller
BorislavG8bfc6cf2018-02-27 15:04:26 +000023 namespace: "{{ .Values.nsPrefix }}"
Mike Elliott586f03b2017-09-08 12:46:15 -040024spec:
25 ports:
26 - name: dcae-con1
27 port: 8000
28 protocol: TCP
29 targetPort: 8000
30 nodePort: {{ .Values.nodePortPrefix }}34
31 - name: dcae-con2
32 port: 9998
33 protocol: TCP
34 targetPort: 9998
35 nodePort: {{ .Values.nodePortPrefix }}35
36 selector:
37 app: dcae-controller
38 type: NodePort
39---
40apiVersion: extensions/v1beta1
41kind: Deployment
42metadata:
43 name: dcae-controller
BorislavG8bfc6cf2018-02-27 15:04:26 +000044 namespace: "{{ .Values.nsPrefix }}"
Mike Elliott586f03b2017-09-08 12:46:15 -040045spec:
46 selector:
47 matchLabels:
48 app: dcae-controller
49 template:
50 metadata:
51 labels:
52 app: dcae-controller
53 name: dcae-controller
54 spec:
55 containers:
56 - image: {{ .Values.image.controller }}
57 imagePullPolicy: {{ .Values.pullPolicy }}
58 name: dcae-controller
59 ports:
60 - containerPort: 8000
61 - containerPort: 9998
62 env:
63# - name: KAFKA_ZOOKEEPER_CONNECT
64# value: "zookeeper:2181"
65# command:
66# - start-kafka.sh
67 volumeMounts:
68 - mountPath: /opt/app/config
69 name: dcae-controller-config
70 restartPolicy: Always
71 volumes:
72 - name: dcae-controller-config
73 hostPath:
74 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/dcae-controller/config
75 imagePullSecrets:
76 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG8bfc6cf2018-02-27 15:04:26 +000077#{{ end }}