AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 1 | # Copyright © 2020 Nordix Foundation |
| 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 | |
| 15 | ################################################################# |
| 16 | # Global configuration defaults. |
| 17 | ################################################################# |
| 18 | global: |
| 19 | nodePortPrefixExt: 304 |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 20 | persistence: |
| 21 | mountPath: /dockerdata-nfs |
krishnaa96 | 92b606b | 2020-10-30 11:29:21 +0530 | [diff] [blame] | 22 | mariadbGalera: |
Andreas Geissler | 576de2d | 2023-10-24 15:38:01 +0200 | [diff] [blame] | 23 | service: mariadb-galera |
krishnaa96 | 92b606b | 2020-10-30 11:29:21 +0530 | [diff] [blame] | 24 | servicePort: '3306' |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 25 | |
| 26 | ################################################################# |
| 27 | # Secrets metaconfig |
| 28 | ################################################################# |
| 29 | secrets: |
| 30 | - uid: etsi-nfvo-nslcm-creds |
| 31 | name: '{{ include "common.release" . }}-so-etsi-nfvo-nslcm-creds' |
| 32 | type: basicAuth |
| 33 | externalSecret: '{{ tpl (default "" .Values.etsi.nfvo.nslcm.credsExternalSecret) . }}' |
| 34 | login: '{{ .Values.etsi.nfvo.nslcm.username }}' |
| 35 | password: '{{ .Values.etsi.nfvo.nslcm.password }}' |
rope252 | 4d3f368 | 2020-09-02 20:49:21 +0100 | [diff] [blame] | 36 | - uid: db-user-creds |
| 37 | type: basicAuth |
| 38 | externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}' |
| 39 | login: '{{ .Values.db.userName }}' |
| 40 | password: '{{ .Values.db.userPassword }}' |
| 41 | passwordPolicy: required |
| 42 | - uid: db-admin-creds |
| 43 | type: basicAuth |
| 44 | externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}' |
| 45 | login: '{{ .Values.db.adminName }}' |
| 46 | password: '{{ .Values.db.adminPassword }}' |
| 47 | passwordPolicy: required |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 48 | |
| 49 | ################################################################# |
| 50 | # Application configuration defaults. |
| 51 | ################################################################# |
Lukasz Rajewski | b686124 | 2022-09-06 13:32:58 +0200 | [diff] [blame] | 52 | image: onap/so/so-etsi-nfvo-ns-lcm:1.9.0 |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 53 | pullPolicy: Always |
| 54 | |
| 55 | aai: |
| 56 | auth: 2A11B07DB6214A839394AA1EC5844695F5114FC407FF5422625FB00175A3DCB8A1FF745F22867EFA72D5369D599BBD88DA8BED4233CF5586 |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame] | 57 | |
| 58 | readinessCheck: |
| 59 | wait_for: |
| 60 | jobs: |
| 61 | - '{{ include "common.release" . }}-so-mariadb-config-job' |
| 62 | |
| 63 | # Local mariadb galera instance default name |
| 64 | mariadb-galera: |
| 65 | nameOverride: so-mariadb-galera |
| 66 | service: |
| 67 | internalPort: 3306 |
| 68 | mariadbOperator: |
| 69 | galera: |
| 70 | enabled: false |
| 71 | |
rope252 | 4d3f368 | 2020-09-02 20:49:21 +0100 | [diff] [blame] | 72 | db: |
| 73 | userName: so_user |
| 74 | userPassword: so_User123 |
| 75 | # userCredsExternalSecret: some secret |
| 76 | adminName: so_admin |
| 77 | adminPassword: so_Admin123 |
| 78 | # adminCredsExternalSecret: some secret |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 79 | etsi: |
| 80 | nfvo: |
| 81 | nslcm: |
| 82 | username: so-etsi-nfvo-ns-lcm |
| 83 | mso: |
| 84 | key: 07a7159d3bf51a0e53be7a8f89699be7 |
| 85 | so: |
| 86 | sol003: |
| 87 | adapter: |
| 88 | auth: Basic dm5mbTpwYXNzd29yZDEk |
| 89 | |
| 90 | replicaCount: 1 |
| 91 | minReadySeconds: 10 |
| 92 | containerPort: &containerPort 9095 |
| 93 | logPath: ./logs/so-etsi-nfvo-ns-lcm/ |
| 94 | app: so-etsi-nfvo-ns-lcm |
| 95 | service: |
| 96 | type: ClusterIP |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 97 | annotations: |
| 98 | service.alpha.kubernetes.io/tolerate-unready-endpoints: 'true' |
| 99 | msb.onap.org/service-info: | |
AndrewLamb | 92c2d39 | 2020-11-10 10:36:52 +0000 | [diff] [blame] | 100 | {{ if .Values.global.msbEnabled -}}[ |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 101 | { |
| 102 | "serviceName": "{{ include "common.servicename" . }}", |
| 103 | "version": "v1", |
| 104 | "url": "/so/so-etsi-nfvo-ns-lcm/v1", |
| 105 | "protocol": "REST", |
AndrewLamb | 92c2d39 | 2020-11-10 10:36:52 +0000 | [diff] [blame] | 106 | "port": "{{ include "common.getPort" (dict "global" . "name" "http-api") }}", |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 107 | "visualRange":"1" |
| 108 | } |
| 109 | ]{{ end }} |
| 110 | ports: |
| 111 | - name: http-api |
| 112 | port: *containerPort |
| 113 | updateStrategy: |
| 114 | type: RollingUpdate |
| 115 | maxUnavailable: 1 |
| 116 | maxSurge: 1 |
| 117 | |
| 118 | ################################################################# |
| 119 | # soHelpers part |
| 120 | ################################################################# |
| 121 | soHelpers: |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 122 | containerPort: *containerPort |
| 123 | |
| 124 | # Resource Limit flavor -By Default using small |
| 125 | flavor: small |
| 126 | # Segregation for Different environment (Small and Large) |
| 127 | resources: |
| 128 | small: |
| 129 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame^] | 130 | cpu: "1" |
| 131 | memory: "1Gi" |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 132 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame^] | 133 | cpu: "0.5" |
| 134 | memory: "1Gi" |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 135 | large: |
| 136 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame^] | 137 | cpu: "2" |
| 138 | memory: "5Gi" |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 139 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame^] | 140 | cpu: "1" |
| 141 | memory: "2Gi" |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 142 | unlimited: {} |
| 143 | |
| 144 | livenessProbe: |
| 145 | port: 9095 |
| 146 | initialDelaySeconds: 600 |
| 147 | periodSeconds: 60 |
| 148 | timeoutSeconds: 10 |
| 149 | successThreshold: 1 |
| 150 | failureThreshold: 3 |
| 151 | |
| 152 | ingress: |
| 153 | enabled: false |
| 154 | service: |
Andreas Geissler | 51900a9 | 2022-08-03 13:10:35 +0200 | [diff] [blame] | 155 | - baseaddr: 'so-etsi-nfvo-ns-lcm-api' |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 156 | name: 'so-etsi-nfvo-ns-lcm' |
| 157 | port: 9095 |
| 158 | config: |
| 159 | ssl: 'redirect' |
| 160 | |
AndrewLamb | ab2704a | 2023-04-05 14:45:11 +0100 | [diff] [blame] | 161 | serviceMesh: |
| 162 | authorizationPolicy: |
| 163 | authorizedPrincipals: |
| 164 | - serviceAccount: so-read |
| 165 | - serviceAccount: istio-ingress |
| 166 | namespace: istio-ingress |
| 167 | |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 168 | nodeSelector: {} |
| 169 | |
| 170 | tolerations: [] |
| 171 | |
| 172 | affinity: {} |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 173 | |
| 174 | #Pods Service Account |
| 175 | serviceAccount: |
| 176 | nameOverride: so-etsi-nfvo-ns-lcm |
| 177 | roles: |
| 178 | - read |