blob: f785cf74111fd42d41e908bc16b69609082f36b8 [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.disableSdncUeb }}
16apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000019 name: sdnc-ueb-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.uebReplicas }}
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050023 selector:
24 matchLabels:
25 app: ueb-listener
26 template:
27 metadata:
28 labels:
29 app: ueb-listener
BorislavG8bfc6cf2018-02-27 15:04:26 +000030 name: sdnc-ueb-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-ueb-readiness
49 containers:
50 - command:
51 - /opt/onap/sdnc/ueb-listener/bin/start-ueb-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.ueblistener }}
58 imagePullPolicy: {{ .Values.pullPolicy }}
59 name: ueb-listener-container
60 volumeMounts:
61 - mountPath: /etc/localtime
62 name: localtime
63 readOnly: true
64 - mountPath: /opt/onap/sdnc/data/properties/ueb-listener.properties
mayankg27039a57f4d2018-01-31 13:55:56 +000065 subPath: ueb-listener.properties
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050066 name: ueb-config
67 volumes:
68 - name: localtime
69 hostPath:
70 path: /etc/localtime
71 - name: ueb-config
mayankg27039a57f4d2018-01-31 13:55:56 +000072 configMap:
73 name: sdnc-ueb-configmap
Alexis de Talhouëtad7edcf2018-01-10 11:37:25 -050074 imagePullSecrets:
75 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
mayankg27039a57f4d2018-01-31 13:55:56 +000076#{{ end }}