Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 1 | {{/* |
egernug | 2757833 | 2020-03-26 10:27:55 +0000 | [diff] [blame] | 2 | # Copyright © 2020 Samsung Electronics |
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: |
Sylvain Desbureaux | 1694e1d | 2020-08-21 09:58:25 +0200 | [diff] [blame] | 75 | - /app/ready.py |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 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 |
Sylvain Desbureaux | 1694e1d | 2020-08-21 09:58:25 +0200 | [diff] [blame] | 91 | image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}" |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 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 | |
egernug | 2757833 | 2020-03-26 10:27:55 +0000 | [diff] [blame] | 97 | {{ if .Values.global.cmpv2Enabled }} |
| 98 | - name: certs-init |
| 99 | image: "{{ .Values.global.repository }}/{{ .Values.global.platform.certServiceClient.image }}" |
| 100 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
| 101 | env: |
| 102 | - name: REQUEST_URL |
| 103 | value: {{ .Values.global.platform.certServiceClient.envVariables.requestURL }} |
| 104 | - name: REQUEST_TIMEOUT |
| 105 | value: "30000" |
| 106 | - name: OUTPUT_PATH |
| 107 | value: {{ .Values.global.platform.certServiceClient.envVariables.cert_path }} |
| 108 | - name: CA_NAME |
| 109 | value: {{ .Values.global.platform.certServiceClient.envVariables.caName }} |
| 110 | - name: COMMON_NAME |
| 111 | value: {{ .Values.global.platform.certServiceClient.envVariables.common_name }} |
| 112 | - name: ORGANIZATION |
| 113 | value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2Organization }} |
| 114 | - name: ORGANIZATION_UNIT |
| 115 | value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2OrganizationalUnit }} |
| 116 | - name: LOCATION |
| 117 | value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2Location }} |
| 118 | - name: STATE |
| 119 | value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2State }} |
| 120 | - name: COUNTRY |
| 121 | value: {{ .Values.global.platform.certServiceClient.envVariables.cmpv2Country }} |
| 122 | - name: KEYSTORE_PATH |
| 123 | value: {{ .Values.global.platform.certServiceClient.envVariables.keystorePath }} |
| 124 | - name: KEYSTORE_PASSWORD |
| 125 | value: {{ .Values.global.platform.certServiceClient.envVariables.keystorePassword }} |
| 126 | - name: TRUSTSTORE_PATH |
| 127 | value: {{ .Values.global.platform.certServiceClient.envVariables.truststorePath }} |
| 128 | - name: TRUSTSTORE_PASSWORD |
| 129 | value: {{ .Values.global.platform.certServiceClient.envVariables.truststorePassword }} |
| 130 | terminationMessagePath: /dev/termination-log |
| 131 | terminationMessagePolicy: File |
| 132 | volumeMounts: |
| 133 | - mountPath: {{ .Values.global.platform.certServiceClient.envVariables.cert_path }} |
| 134 | name: certs |
| 135 | - mountPath: {{ .Values.global.platform.certServiceClient.secret.mountPath }} |
| 136 | name: certservice-tls-volume |
| 137 | {{ end }} |
| 138 | |
Timoney, Dan (dt5972) | ba4d2eb | 2019-05-07 13:32:42 -0400 | [diff] [blame] | 139 | - name: {{ include "common.name" . }}-chown |
Alexander Dehn | 1373c9c | 2020-09-02 09:01:15 +0000 | [diff] [blame] | 140 | image: {{ .Values.global.busyboxRepository | default .Values.busyboxRepository }}/{{ .Values.global.busyboxImage | default .Values.busyboxImage }} |
Lucjan Bryndza | 5c63e93 | 2020-06-25 08:43:23 +0000 | [diff] [blame] | 141 | command: |
| 142 | - sh |
| 143 | args: |
| 144 | - -c |
| 145 | - chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.persistence.mdsalPath }} |
| 146 | {{- if .Values.global.aafEnabled }} |
| 147 | - chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.certInitializer.credsPath }} |
| 148 | {{- end }} |
Timoney, Dan (dt5972) | ba4d2eb | 2019-05-07 13:32:42 -0400 | [diff] [blame] | 149 | volumeMounts: |
Krzysztof Opasiak | 8ab4547 | 2020-05-12 12:53:50 +0200 | [diff] [blame] | 150 | {{ include "common.certInitializer.volumeMount" . | indent 10 }} |
Timoney, Dan (dt5972) | ba4d2eb | 2019-05-07 13:32:42 -0400 | [diff] [blame] | 151 | - mountPath: {{ .Values.persistence.mdsalPath }} |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 152 | name: {{ include "common.fullname" . }}-data |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 153 | containers: |
| 154 | - name: {{ include "common.name" . }} |
BorislavG | df11cd5 | 2018-05-06 12:55:20 +0000 | [diff] [blame] | 155 | image: "{{ include "common.repository" . }}/{{ .Values.image }}" |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 156 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 157 | {{- if not .Values.config.sdnr.enabled }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 158 | command: ["/bin/bash"] |
Dan Timoney | 830b85f | 2020-05-27 16:00:05 -0400 | [diff] [blame] | 159 | args: ["-c", "/opt/onap/sdnc/bin/startODL.sh"] |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 160 | {{ else }} |
| 161 | command: ["/bin/bash"] |
| 162 | args: ["-c", "{{ .Values.config.binDir }}/startODL.oom.sh"] |
| 163 | {{ end }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 164 | ports: |
| 165 | - containerPort: {{ .Values.service.internalPort }} |
| 166 | - containerPort: {{ .Values.service.internalPort2 }} |
| 167 | - containerPort: {{ .Values.service.internalPort3 }} |
| 168 | - containerPort: {{ .Values.service.clusterPort }} |
| 169 | readinessProbe: |
| 170 | tcpSocket: |
| 171 | port: {{ .Values.service.internalPort }} |
| 172 | initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} |
| 173 | periodSeconds: {{ .Values.readiness.periodSeconds }} |
| 174 | env: |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 175 | - name: MYSQL_ROOT_PASSWORD |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 176 | {{- 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] | 177 | - name: ODL_ADMIN_USERNAME |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 178 | {{- 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] | 179 | - name: ODL_ADMIN_PASSWORD |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 180 | {{- 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] | 181 | - name: SDNC_DB_USER |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 182 | {{- 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] | 183 | - name: SDNC_DB_PASSWORD |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 184 | {{- 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] | 185 | - name: SDNC_CONFIG_DIR |
| 186 | value: "{{ .Values.config.configDir }}" |
| 187 | - name: ENABLE_ODL_CLUSTER |
| 188 | value: "{{ .Values.config.enableClustering }}" |
| 189 | - name: MY_ODL_CLUSTER |
| 190 | value: "{{ .Values.config.myODLCluster }}" |
| 191 | - name: PEER_ODL_CLUSTER |
| 192 | value: "{{ .Values.config.peerODLCluster }}" |
| 193 | - name: IS_PRIMARY_CLUSTER |
| 194 | value: "{{ .Values.config.isPrimaryCluster }}" |
| 195 | - name: GEO_ENABLED |
| 196 | value: "{{ .Values.config.geoEnabled}}" |
| 197 | - name: SDNC_AAF_ENABLED |
| 198 | value: "{{ .Values.global.aafEnabled}}" |
| 199 | - name: SDNC_REPLICAS |
| 200 | value: "{{ .Values.replicaCount }}" |
| 201 | - name: MYSQL_HOST |
| 202 | value: {{ include "common.mariadbService" . }} |
| 203 | - name: JAVA_HOME |
| 204 | value: "{{ .Values.config.javaHome}}" |
Dan Timoney | a98765b | 2020-09-14 11:57:55 -0400 | [diff] [blame] | 205 | - name: JAVA_OPTS |
| 206 | value: "-Xms{{.Values.config.odl.javaOptions.minMemory}} -Xmx{{.Values.config.odl.javaOptions.maxMemory}}" |
Sylvain Desbureaux | bcf7251 | 2020-07-22 10:45:18 +0200 | [diff] [blame] | 207 | - name: KARAF_CONSOLE_LOG_LEVEL |
| 208 | value: "{{ include "common.log.level" . }}" |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 209 | - name: SDNRWT |
| 210 | value: "{{ .Values.config.sdnr.enabled | default "false"}}" |
| 211 | {{- if eq .Values.config.sdnr.mode "web" }} |
| 212 | - name: SDNRDM |
| 213 | value: "true" |
| 214 | {{- end }} |
| 215 | - name: SDNRONLY |
| 216 | value: "{{ .Values.config.sdnr.sdnronly | default "false" }}" |
| 217 | - name: SDNRDBURL |
| 218 | {{- $prefix := ternary "https" "http" .Values.global.aafEnabled}} |
| 219 | value: "{{$prefix}}://{{ .Values.elasticsearch.service.name | default "sdnrdb"}}.{{.Release.Namespace}}:{{.Values.elasticsearch.service.port | default "9200"}}" |
| 220 | {{- if .Values.config.sdnr.sdnrdbTrustAllCerts }} |
| 221 | - name: SDNRDBTRUSTALLCERTS |
| 222 | value: "true" |
| 223 | {{ end }} |
| 224 | |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 225 | volumeMounts: |
Krzysztof Opasiak | 8ab4547 | 2020-05-12 12:53:50 +0200 | [diff] [blame] | 226 | {{ include "common.certInitializer.volumeMount" . | indent 10 }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 227 | - mountPath: /etc/localtime |
| 228 | name: localtime |
| 229 | readOnly: true |
| 230 | - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg |
| 231 | name: sdnc-logging-cfg-config |
| 232 | subPath: org.ops4j.pax.logging.cfg |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 233 | - mountPath: {{ .Values.config.binDir }}/startODL.sh |
| 234 | name: bin |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 235 | subPath: startODL.sh |
Alexander Dehn | 5c1105e | 2020-09-14 20:55:56 +0000 | [diff] [blame] | 236 | - mountPath: {{ .Values.config.binDir }}/startODL.oom.sh |
| 237 | name: bin |
| 238 | subPath: startODL.oom.sh |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 239 | - mountPath: {{ .Values.config.binDir }}/installSdncDb.sh |
| 240 | name: bin |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 241 | subPath: installSdncDb.sh |
Konrad Bańka | 5ea1db3 | 2020-04-06 14:32:46 +0200 | [diff] [blame] | 242 | - mountPath: {{ .Values.config.ccsdkConfigDir }}/aaiclient.properties |
| 243 | name: properties |
| 244 | subPath: aaiclient.properties |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 245 | - mountPath: {{ .Values.config.configDir }}/aaiclient.properties |
| 246 | name: properties |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 247 | subPath: aaiclient.properties |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 248 | - mountPath: {{ .Values.config.configDir }}/dblib.properties |
| 249 | name: properties |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 250 | subPath: dblib.properties |
jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 251 | - mountPath: {{ .Values.config.configDir }}/lcm-dg.properties |
| 252 | name: properties |
| 253 | subPath: lcm-dg.properties |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 254 | - mountPath: {{ .Values.config.configDir }}/svclogic.properties |
| 255 | name: properties |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 256 | subPath: svclogic.properties |
| 257 | - mountPath: /opt/onap/sdnc/svclogic/config/svclogic.properties |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 258 | name: properties |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 259 | subPath: svclogic.properties |
Alexis de Talhouët | 43c67e0 | 2018-09-20 16:49:16 -0400 | [diff] [blame] | 260 | - mountPath: {{ .Values.config.configDir }}/netbox.properties |
| 261 | name: properties |
| 262 | subPath: netbox.properties |
| 263 | - mountPath: {{ .Values.config.configDir }}/blueprints-processor-adaptor.properties |
| 264 | name: properties |
| 265 | subPath: blueprints-processor-adaptor.properties |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 266 | - mountPath: {{ .Values.persistence.mdsalPath }} |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 267 | name: {{ include "common.fullname" . }}-data |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 268 | - mountPath: /var/log/onap |
| 269 | name: logs |
Timoney, Dan (dt5972) | 5877477 | 2019-08-21 16:50:54 -0400 | [diff] [blame] | 270 | - mountPath: {{ .Values.config.odl.salConfigDir }}/{{ .Values.config.odl.salConfigVersion}}/sal-clustering-config-{{ .Values.config.odl.salConfigVersion}}-akkaconf.xml |
| 271 | name: properties |
| 272 | subPath: akka.conf |
| 273 | - mountPath: {{ .Values.config.odl.etcDir }}/org.opendaylight.controller.cluster.datastore.cfg |
| 274 | name: properties |
| 275 | subPath: org.opendaylight.controller.cluster.datastore.cfg |
| 276 | - mountPath: {{ .Values.config.odl.binDir }}/setenv |
| 277 | name: properties |
| 278 | subPath: setenv |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 279 | - mountPath: {{ .Values.config.odl.etcDir }}/mountpoint-registrar.properties |
| 280 | name: properties |
| 281 | subPath: mountpoint-registrar.properties |
| 282 | - mountPath: {{ .Values.config.odl.etcDir }}/mountpoint-state-provider.properties |
| 283 | name: properties |
| 284 | subPath: mountpoint-state-provider.properties |
egernug | 2757833 | 2020-03-26 10:27:55 +0000 | [diff] [blame] | 285 | - mountPath: {{ .Values.global.platform.certServiceClient.envVariables.cert_path }} |
| 286 | name: certs |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 287 | resources: |
Mandeep Khinda | 5e3f36a | 2018-09-24 15:25:42 +0000 | [diff] [blame] | 288 | {{ include "common.resources" . | indent 12 }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 289 | {{- if .Values.nodeSelector }} |
| 290 | nodeSelector: |
| 291 | {{ toYaml .Values.nodeSelector | indent 10 }} |
| 292 | {{- end -}} |
| 293 | {{- if .Values.affinity }} |
| 294 | affinity: |
| 295 | {{ toYaml .Values.affinity | indent 10 }} |
| 296 | {{- end }} |
| 297 | |
| 298 | # side car containers |
| 299 | - name: filebeat-onap |
| 300 | image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}" |
| 301 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
| 302 | volumeMounts: |
| 303 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 304 | name: filebeat-conf |
| 305 | subPath: filebeat.yml |
| 306 | - mountPath: /var/log/onap |
| 307 | name: logs |
| 308 | - mountPath: /usr/share/filebeat/data |
| 309 | name: data-filebeat |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 310 | imagePullSecrets: |
| 311 | - name: "{{ include "common.namespace" . }}-docker-registry-key" |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 312 | volumes: |
| 313 | - name: localtime |
| 314 | hostPath: |
| 315 | path: /etc/localtime |
| 316 | - name: logs |
| 317 | emptyDir: {} |
| 318 | - name: data-filebeat |
| 319 | emptyDir: {} |
| 320 | - name: filebeat-conf |
| 321 | configMap: |
| 322 | name: {{ include "common.fullname" . }}-filebeat-configmap |
| 323 | - name: sdnc-logging-cfg-config |
| 324 | configMap: |
| 325 | name: {{ include "common.fullname" . }}-log-configmap |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 326 | - name: bin |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 327 | configMap: |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 328 | name: {{ include "common.fullname" . }}-bin |
| 329 | defaultMode: 0755 |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 330 | - name: config-input |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 331 | configMap: |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 332 | name: {{ include "common.fullname" . }}-properties |
| 333 | defaultMode: 0644 |
Krzysztof Opasiak | cc97c73 | 2020-02-25 23:31:20 +0100 | [diff] [blame] | 334 | - name: properties |
| 335 | emptyDir: |
| 336 | medium: Memory |
egernug | 2757833 | 2020-03-26 10:27:55 +0000 | [diff] [blame] | 337 | - name: certs |
| 338 | emptyDir: |
| 339 | medium: Memory |
| 340 | - name: certservice-tls-volume |
| 341 | secret: |
| 342 | secretName: {{ .Values.global.platform.certServiceClient.secret.name }} |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 343 | {{ if not .Values.persistence.enabled }} |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 344 | - name: {{ include "common.fullname" . }}-data |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 345 | emptyDir: {} |
| 346 | {{ else }} |
Krzysztof Opasiak | 8ab4547 | 2020-05-12 12:53:50 +0200 | [diff] [blame] | 347 | {{ include "common.certInitializer.volumes" . | nindent 8 }} |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 348 | volumeClaimTemplates: |
| 349 | - metadata: |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 350 | name: {{ include "common.fullname" . }}-data |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 351 | labels: |
| 352 | name: {{ include "common.fullname" . }} |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 353 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 354 | release: "{{ include "common.release" . }}" |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 355 | heritage: "{{ .Release.Service }}" |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 356 | spec: |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 357 | accessModes: |
| 358 | - {{ .Values.persistence.accessMode }} |
| 359 | storageClassName: {{ include "common.storageClass" . }} |
jmac | 8d6dc96 | 2018-04-26 14:26:55 +0000 | [diff] [blame] | 360 | resources: |
| 361 | requests: |
| 362 | storage: {{ .Values.persistence.size }} |
Sylvain Desbureaux | 25e01d5 | 2019-12-09 11:06:39 +0100 | [diff] [blame] | 363 | {{- end }} |