License addition in all yamls
[oom.git] / kubernetes / sdnc / templates / dmaap-deployment.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.disableSdncDmaap }}
16 apiVersion: extensions/v1beta1
17 kind: Deployment
18 metadata:
19   name: sdnc-dmaap-listener
20   namespace: "{{ .Values.nsPrefix }}"
21 spec:
22   replicas: {{ .Values.dmaapReplicas }}
23   selector:
24     matchLabels:
25       app: dmaap-listener
26   template:
27     metadata:
28       labels:
29         app: dmaap-listener
30       name: sdnc-dmaap-listener
31     spec:
32       initContainers:
33       - command:
34         - /root/ready.py
35         args:
36         - --container-name
37         - sdnc-db-container
38         - --container-name
39         - sdnc-controller-container
40         env:
41         - name: NAMESPACE
42           valueFrom:
43             fieldRef:
44               apiVersion: v1
45               fieldPath: metadata.namespace
46         image: {{ .Values.image.readiness }}
47         imagePullPolicy: {{ .Values.pullPolicy }}
48         name: sdnc-dmaap-readiness
49       containers:
50       - command:
51         - /opt/onap/sdnc/dmaap-listener/bin/start-dmaap-listener.sh
52         env:
53         - name: PROPERTY_DIR
54           value: /opt/onap/sdnc/data/properties
55         - name: SDNC_CONFIG_DIR
56           value: /opt/onap/sdnc/data/properties
57         image: {{ .Values.image.dmaaplistener }}
58         imagePullPolicy: {{ .Values.pullPolicy }}
59         name: dmaapp-listener-container
60         volumeMounts:
61         - mountPath: /etc/localtime
62           name: localtime
63           readOnly: true
64         - mountPath: /opt/onap/sdnc/data/properties/dhcpalert.properties
65           subPath: dhcpalert.properties
66           name: dmaap-dhcapalert-config
67       volumes:
68         - name: localtime
69           hostPath:
70             path: /etc/localtime
71         - name: dmaap-dhcapalert-config
72           configMap:
73             name: sdnc-dmaap-configmap
74       imagePullSecrets:
75       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
76 #{{ end }}