License addition in all yamls
[oom.git] / kubernetes / dcae / templates / dcae-controller.yaml
1 # 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
15 #{{ if not .Values.disableDcaeDcaeController }}
16 apiVersion: v1
17 kind: Service
18 metadata:
19   labels:
20     app: dcae-controller
21     version: latest
22   name: dcae-controller
23   namespace: "{{ .Values.nsPrefix }}"
24 spec:
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 ---
40 apiVersion: extensions/v1beta1
41 kind: Deployment
42 metadata:
43   name: dcae-controller
44   namespace: "{{ .Values.nsPrefix }}"
45 spec:
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"
77 #{{ end }}