blob: ca092ff2610047717ad18e11318abdef04516121 [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
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050015#{{ if not .Values.disableSdncDmaap }}
16apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000019 name: sdnc-dmaap-listener
20 namespace: "{{ .Values.nsPrefix }}"
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050021spec:
vaibhav_16decb23999a2018-02-14 09:00:07 +000022 replicas: {{ .Values.dmaapReplicas }}
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050023 selector:
24 matchLabels:
25 app: dmaap-listener
26 template:
27 metadata:
28 labels:
29 app: dmaap-listener
BorislavG8bfc6cf2018-02-27 15:04:26 +000030 name: sdnc-dmaap-listener
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050031 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
mayankg2703d524cdb2018-01-31 13:53:19 +000065 subPath: dhcpalert.properties
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050066 name: dmaap-dhcapalert-config
67 volumes:
68 - name: localtime
69 hostPath:
70 path: /etc/localtime
71 - name: dmaap-dhcapalert-config
mayankg2703d524cdb2018-01-31 13:53:19 +000072 configMap:
73 name: sdnc-dmaap-configmap
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050074 imagePullSecrets:
75 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
mayankg2703d524cdb2018-01-31 13:53:19 +000076#{{ end }}