Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 1 | {{/* |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 2 | # Copyright © 2020 Samsung Electronics, highstreet technologies GmbH |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 3 | # Copyright © 2017 Amdocs, Bell Canada |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 16 | */}} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 17 | |
Grzegorz-Lis | 1318a77 | 2020-07-23 15:08:43 +0200 | [diff] [blame] | 18 | apiVersion: apps/v1 |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 19 | kind: StatefulSet |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 20 | metadata: {{- include "common.resourceMetadata" . | nindent 2 }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 21 | spec: |
Grzegorz-Lis | 1318a77 | 2020-07-23 15:08:43 +0200 | [diff] [blame] | 22 | selector: |
| 23 | matchLabels: |
| 24 | app: {{ include "common.name" . }} |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 25 | serviceName: {{ include "common.servicename" . }}-cluster |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 26 | replicas: {{ .Values.replicaCount }} |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 27 | selector: {{- include "common.selectors" . | nindent 4 }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 28 | podManagementPolicy: Parallel |
| 29 | template: |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 30 | metadata: {{- include "common.templateMetadata" . | nindent 6 }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 31 | spec: |
| 32 | initContainers: |
| 33 | - command: |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 34 | - sh |
| 35 | args: |
| 36 | - -c |
| 37 | - "cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done" |
| 38 | env: |
| 39 | - name: AAI_CLIENT_NAME |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 40 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "aai-user-creds" "key" "login") | indent 10 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 41 | - name: AAI_CLIENT_PASSWORD |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 42 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "aai-user-creds" "key" "password") | indent 10 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 43 | - name: MODELSERVICE_USER |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 44 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "modeling-user-creds" "key" "login") | indent 10 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 45 | - name: MODELSERVICE_PASSWORD |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 46 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "modeling-user-creds" "key" "password") | indent 10 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 47 | - name: RESTCONF_USER |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 48 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restconf-creds" "key" "login") | indent 10 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 49 | - name: RESTCONF_PASSWORD |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 50 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restconf-creds" "key" "password") | indent 10 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 51 | - name: ANSIBLE_USER |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 52 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "ansible-creds" "key" "login") | indent 10 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 53 | - name: ANSIBLE_PASSWORD |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 54 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "ansible-creds" "key" "password") | indent 10 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 55 | - name: SCALEOUT_USER |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 56 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "scaleout-creds" "key" "login") | indent 10 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 57 | - name: SCALEOUT_PASSWORD |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 58 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "scaleout-creds" "key" "password") | indent 10 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 59 | - name: NETBOX_APIKEY |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 60 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "netbox-apikey" "key" "password") | indent 10 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 61 | - name: SDNC_DB_USER |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 62 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 63 | - name: SDNC_DB_PASSWORD |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 64 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 65 | volumeMounts: |
| 66 | - mountPath: /config-input |
| 67 | name: config-input |
| 68 | - mountPath: /config |
| 69 | name: properties |
| 70 | image: "{{ .Values.global.envsubstImage }}" |
| 71 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
| 72 | name: {{ include "common.name" . }}-update-config |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 73 | {{ if .Values.dgbuilder.enabled -}} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 74 | - command: |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 75 | - /root/ready.py |
| 76 | args: |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 77 | {{ if or .Values.dgbuilder.enabled .Values.config.sdnr.enabled -}} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 78 | - --container-name |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 79 | - {{ include "common.mariadbService" . }} |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 80 | {{ end -}} |
| 81 | {{ if .Values.config.sdnr.enabled -}} |
| 82 | - --container-name |
| 83 | - {{ include "common.name" . }}-sdnrdb-init-job |
| 84 | {{ end -}} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 85 | env: |
| 86 | - name: NAMESPACE |
| 87 | valueFrom: |
| 88 | fieldRef: |
| 89 | apiVersion: v1 |
| 90 | fieldPath: metadata.namespace |
| 91 | image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}" |
| 92 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 93 | name: {{ include "common.name" . }}-readiness |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 94 | {{ end -}} |
Krzysztof Opasiak | 8ab4547 | 2020-05-12 12:53:50 +0200 | [diff] [blame] | 95 | {{ include "common.certInitializer.initContainer" . | indent 6 }} |
| 96 | |
Timoney, Dan (dt5972) | ba4d2eb | 2019-05-07 13:32:42 -0400 | [diff] [blame] | 97 | - name: {{ include "common.name" . }}-chown |
| 98 | image: "busybox" |
Lucjan Bryndza | 5c63e93 | 2020-06-25 08:43:23 +0000 | [diff] [blame] | 99 | command: |
| 100 | - sh |
| 101 | args: |
| 102 | - -c |
| 103 | - chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.persistence.mdsalPath }} |
| 104 | {{- if .Values.global.aafEnabled }} |
| 105 | - chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.certInitializer.credsPath }} |
| 106 | {{- end }} |
Timoney, Dan (dt5972) | ba4d2eb | 2019-05-07 13:32:42 -0400 | [diff] [blame] | 107 | volumeMounts: |
Krzysztof Opasiak | 8ab4547 | 2020-05-12 12:53:50 +0200 | [diff] [blame] | 108 | {{ include "common.certInitializer.volumeMount" . | indent 10 }} |
Timoney, Dan (dt5972) | ba4d2eb | 2019-05-07 13:32:42 -0400 | [diff] [blame] | 109 | - mountPath: {{ .Values.persistence.mdsalPath }} |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 110 | name: {{ include "common.fullname" . }}-data |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 111 | containers: |
| 112 | - name: {{ include "common.name" . }} |
BorislavG | df11cd5 | 2018-05-06 12:55:20 +0000 | [diff] [blame] | 113 | image: "{{ include "common.repository" . }}/{{ .Values.image }}" |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 114 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 115 | {{- if not .Values.config.sdnr.enabled }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 116 | command: ["/bin/bash"] |
Dan Timoney | 830b85f | 2020-05-27 16:00:05 -0400 | [diff] [blame] | 117 | args: ["-c", "/opt/onap/sdnc/bin/startODL.sh"] |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 118 | {{ else }} |
| 119 | command: ["/bin/bash"] |
| 120 | args: ["-c", "{{ .Values.config.binDir }}/startODL.oom.sh"] |
| 121 | {{ end }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 122 | ports: |
| 123 | - containerPort: {{ .Values.service.internalPort }} |
| 124 | - containerPort: {{ .Values.service.internalPort2 }} |
| 125 | - containerPort: {{ .Values.service.internalPort3 }} |
| 126 | - containerPort: {{ .Values.service.clusterPort }} |
| 127 | readinessProbe: |
| 128 | tcpSocket: |
| 129 | port: {{ .Values.service.internalPort }} |
| 130 | initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} |
| 131 | periodSeconds: {{ .Values.readiness.periodSeconds }} |
| 132 | env: |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 133 | - name: MYSQL_ROOT_PASSWORD |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 134 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-root-password" "key" "password") | indent 12 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 135 | - name: ODL_ADMIN_USERNAME |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 136 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "login") | indent 12 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 137 | - name: ODL_ADMIN_PASSWORD |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 138 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "password") | indent 12 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 139 | - name: SDNC_DB_USER |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 140 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 12 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 141 | - name: SDNC_DB_PASSWORD |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 142 | {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 12 }} |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 143 | - name: SDNC_CONFIG_DIR |
| 144 | value: "{{ .Values.config.configDir }}" |
| 145 | - name: ENABLE_ODL_CLUSTER |
| 146 | value: "{{ .Values.config.enableClustering }}" |
| 147 | - name: MY_ODL_CLUSTER |
| 148 | value: "{{ .Values.config.myODLCluster }}" |
| 149 | - name: PEER_ODL_CLUSTER |
| 150 | value: "{{ .Values.config.peerODLCluster }}" |
| 151 | - name: IS_PRIMARY_CLUSTER |
| 152 | value: "{{ .Values.config.isPrimaryCluster }}" |
| 153 | - name: GEO_ENABLED |
| 154 | value: "{{ .Values.config.geoEnabled}}" |
| 155 | - name: SDNC_AAF_ENABLED |
| 156 | value: "{{ .Values.global.aafEnabled}}" |
| 157 | - name: SDNC_REPLICAS |
| 158 | value: "{{ .Values.replicaCount }}" |
| 159 | - name: MYSQL_HOST |
| 160 | value: {{ include "common.mariadbService" . }} |
| 161 | - name: JAVA_HOME |
| 162 | value: "{{ .Values.config.javaHome}}" |
Sylvain Desbureaux | bcf7251 | 2020-07-22 10:45:18 +0200 | [diff] [blame] | 163 | - name: KARAF_CONSOLE_LOG_LEVEL |
| 164 | value: "{{ include "common.log.level" . }}" |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 165 | - name: SDNRWT |
| 166 | value: "{{ .Values.config.sdnr.enabled | default "false"}}" |
| 167 | {{- if eq .Values.config.sdnr.mode "web" }} |
| 168 | - name: SDNRDM |
| 169 | value: "true" |
| 170 | {{- end }} |
| 171 | - name: SDNRONLY |
| 172 | value: "{{ .Values.config.sdnr.sdnronly | default "false" }}" |
| 173 | - name: SDNRDBURL |
| 174 | {{- $prefix := ternary "https" "http" .Values.global.aafEnabled}} |
| 175 | value: "{{$prefix}}://{{ .Values.elasticsearch.service.name | default "sdnrdb"}}.{{.Release.Namespace}}:{{.Values.elasticsearch.service.port | default "9200"}}" |
| 176 | {{- if .Values.config.sdnr.sdnrdbTrustAllCerts }} |
| 177 | - name: SDNRDBTRUSTALLCERTS |
| 178 | value: "true" |
| 179 | {{ end }} |
| 180 | |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 181 | volumeMounts: |
Krzysztof Opasiak | 8ab4547 | 2020-05-12 12:53:50 +0200 | [diff] [blame] | 182 | {{ include "common.certInitializer.volumeMount" . | indent 10 }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 183 | - mountPath: /etc/localtime |
| 184 | name: localtime |
| 185 | readOnly: true |
| 186 | - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg |
| 187 | name: sdnc-logging-cfg-config |
| 188 | subPath: org.ops4j.pax.logging.cfg |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 189 | - mountPath: {{ .Values.config.binDir }}/startODL.sh |
| 190 | name: bin |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 191 | subPath: startODL.sh |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 192 | - mountPath: {{ .Values.config.binDir }}/installSdncDb.sh |
| 193 | name: bin |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 194 | subPath: installSdncDb.sh |
Konrad Bańka | 5ea1db3 | 2020-04-06 14:32:46 +0200 | [diff] [blame] | 195 | - mountPath: {{ .Values.config.ccsdkConfigDir }}/aaiclient.properties |
| 196 | name: properties |
| 197 | subPath: aaiclient.properties |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 198 | - mountPath: {{ .Values.config.configDir }}/aaiclient.properties |
| 199 | name: properties |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 200 | subPath: aaiclient.properties |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 201 | - mountPath: {{ .Values.config.configDir }}/dblib.properties |
| 202 | name: properties |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 203 | subPath: dblib.properties |
jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 204 | - mountPath: {{ .Values.config.configDir }}/lcm-dg.properties |
| 205 | name: properties |
| 206 | subPath: lcm-dg.properties |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 207 | - mountPath: {{ .Values.config.configDir }}/svclogic.properties |
| 208 | name: properties |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 209 | subPath: svclogic.properties |
| 210 | - mountPath: /opt/onap/sdnc/svclogic/config/svclogic.properties |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 211 | name: properties |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 212 | subPath: svclogic.properties |
Alexis de Talhouët | 43c67e0 | 2018-09-20 16:49:16 -0400 | [diff] [blame] | 213 | - mountPath: {{ .Values.config.configDir }}/netbox.properties |
| 214 | name: properties |
| 215 | subPath: netbox.properties |
| 216 | - mountPath: {{ .Values.config.configDir }}/blueprints-processor-adaptor.properties |
| 217 | name: properties |
| 218 | subPath: blueprints-processor-adaptor.properties |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 219 | - mountPath: {{ .Values.persistence.mdsalPath }} |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 220 | name: {{ include "common.fullname" . }}-data |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 221 | - mountPath: /var/log/onap |
| 222 | name: logs |
Timoney, Dan (dt5972) | 5877477 | 2019-08-21 16:50:54 -0400 | [diff] [blame] | 223 | - mountPath: {{ .Values.config.odl.salConfigDir }}/{{ .Values.config.odl.salConfigVersion}}/sal-clustering-config-{{ .Values.config.odl.salConfigVersion}}-akkaconf.xml |
| 224 | name: properties |
| 225 | subPath: akka.conf |
| 226 | - mountPath: {{ .Values.config.odl.etcDir }}/org.opendaylight.controller.cluster.datastore.cfg |
| 227 | name: properties |
| 228 | subPath: org.opendaylight.controller.cluster.datastore.cfg |
| 229 | - mountPath: {{ .Values.config.odl.binDir }}/setenv |
| 230 | name: properties |
| 231 | subPath: setenv |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 232 | - mountPath: {{ .Values.config.odl.etcDir }}/mountpoint-registrar.properties |
| 233 | name: properties |
| 234 | subPath: mountpoint-registrar.properties |
| 235 | - mountPath: {{ .Values.config.odl.etcDir }}/mountpoint-state-provider.properties |
| 236 | name: properties |
| 237 | subPath: mountpoint-state-provider.properties |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 238 | resources: |
Mandeep Khinda | 5e3f36a | 2018-09-24 15:25:42 +0000 | [diff] [blame] | 239 | {{ include "common.resources" . | indent 12 }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 240 | {{- if .Values.nodeSelector }} |
| 241 | nodeSelector: |
| 242 | {{ toYaml .Values.nodeSelector | indent 10 }} |
| 243 | {{- end -}} |
| 244 | {{- if .Values.affinity }} |
| 245 | affinity: |
| 246 | {{ toYaml .Values.affinity | indent 10 }} |
| 247 | {{- end }} |
| 248 | |
| 249 | # side car containers |
| 250 | - name: filebeat-onap |
| 251 | image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}" |
| 252 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
| 253 | volumeMounts: |
| 254 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 255 | name: filebeat-conf |
| 256 | subPath: filebeat.yml |
| 257 | - mountPath: /var/log/onap |
| 258 | name: logs |
| 259 | - mountPath: /usr/share/filebeat/data |
| 260 | name: data-filebeat |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 261 | imagePullSecrets: |
| 262 | - name: "{{ include "common.namespace" . }}-docker-registry-key" |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 263 | volumes: |
| 264 | - name: localtime |
| 265 | hostPath: |
| 266 | path: /etc/localtime |
| 267 | - name: logs |
| 268 | emptyDir: {} |
| 269 | - name: data-filebeat |
| 270 | emptyDir: {} |
| 271 | - name: filebeat-conf |
| 272 | configMap: |
| 273 | name: {{ include "common.fullname" . }}-filebeat-configmap |
| 274 | - name: sdnc-logging-cfg-config |
| 275 | configMap: |
| 276 | name: {{ include "common.fullname" . }}-log-configmap |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 277 | - name: bin |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 278 | configMap: |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 279 | name: {{ include "common.fullname" . }}-bin |
| 280 | defaultMode: 0755 |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 281 | - name: config-input |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 282 | configMap: |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 283 | name: {{ include "common.fullname" . }}-properties |
| 284 | defaultMode: 0644 |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 285 | - name: properties |
| 286 | emptyDir: |
| 287 | medium: Memory |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 288 | {{ if not .Values.persistence.enabled }} |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 289 | - name: {{ include "common.fullname" . }}-data |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 290 | emptyDir: {} |
| 291 | {{ else }} |
Krzysztof Opasiak | 8ab4547 | 2020-05-12 12:53:50 +0200 | [diff] [blame] | 292 | {{ include "common.certInitializer.volumes" . | nindent 8 }} |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 293 | volumeClaimTemplates: |
| 294 | - metadata: |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 295 | name: {{ include "common.fullname" . }}-data |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 296 | labels: |
| 297 | name: {{ include "common.fullname" . }} |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 298 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 299 | release: "{{ include "common.release" . }}" |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 300 | heritage: "{{ .Release.Service }}" |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 301 | spec: |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 302 | accessModes: |
| 303 | - {{ .Values.persistence.accessMode }} |
| 304 | storageClassName: {{ include "common.storageClass" . }} |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 305 | resources: |
| 306 | requests: |
| 307 | storage: {{ .Values.persistence.size }} |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 308 | {{- end }} |