1 # Copyright © 2017 Amdocs, Bell Canada
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 #{{ if not .Values.disableSdncSdnc }}
16 apiVersion: apps/v1beta1
20 namespace: "{{ .Values.nsPrefix }}"
22 serviceName: "sdnhost-cluster"
23 replicas: {{ .Values.numberOfODLReplicas }}
24 podManagementPolicy: Parallel
45 fieldPath: metadata.namespace
46 image: {{ .Values.image.readiness }}
47 imagePullPolicy: {{ .Values.pullPolicy }}
54 sed -i 's/dbhost/sdnc-dbhost-0.dbhost.{{ .Values.nsPrefix }}.svc.cluster.local/g' /opt/onap/sdnc/data/properties/svclogic.properties
55 sed -i 's/^\(org.onap.ccsdk.sli.jdbc.hosts=\).*/\1sdnc-dbhost-0.dbhost.{{ .Values.nsPrefix }}.svc.cluster.local/' /opt/onap/sdnc/data/properties/dblib.properties
56 /opt/onap/sdnc/bin/startODL.sh
58 - name: MYSQL_ROOT_PASSWORD
60 - name: SDNC_CONFIG_DIR
61 value: /opt/onap/sdnc/data/properties
62 - name: ENABLE_ODL_CLUSTER
63 value: "{{ .Values.enableODLCluster }}"
65 value: "{{ .Values.numberOfODLReplicas }}"
66 image: {{ .Values.image.sdnc }}
67 imagePullPolicy: {{ .Values.pullPolicy }}
68 name: sdnc-controller-container
70 - mountPath: /etc/localtime
73 - mountPath: /opt/onap/sdnc/data/properties/admportal.json
75 subPath: admportal.json
76 - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties
78 subPath: aaiclient.properties
79 - mountPath: /var/log/onap
81 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
82 name: sdnc-logging-cfg-config
83 subPath: org.ops4j.pax.logging.cfg
92 initialDelaySeconds: 5
94 - image: {{ .Values.image.filebeat }}
95 imagePullPolicy: {{ .Values.pullPolicy }}
98 - mountPath: /usr/share/filebeat/filebeat.yml
100 subPath: filebeat.yml
101 - mountPath: /var/log/onap
103 - mountPath: /usr/share/filebeat/data
104 name: sdnc-data-filebeat
109 - name: filebeat-conf
111 name: sdnc-log-configmap
112 - name: sdnc-logging-cfg-config
114 name: sdnc-logging-cfg-configmap
117 - name: sdnc-data-filebeat
121 name: sdnc-conf-configmap
123 - key: admportal.json
126 - key: aaiclient.properties
127 path: aaiclient.properties
130 - name: "{{ .Values.nsPrefix }}-docker-registry-key"