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 | cfd8434 | 2023-08-16 17:18:49 +0200 | [diff] [blame] | 23 | service: mariadb-galera-primary |
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 |
rope252 | 4d3f368 | 2020-09-02 20:49:21 +0100 | [diff] [blame] | 57 | db: |
| 58 | userName: so_user |
| 59 | userPassword: so_User123 |
| 60 | # userCredsExternalSecret: some secret |
| 61 | adminName: so_admin |
| 62 | adminPassword: so_Admin123 |
| 63 | # adminCredsExternalSecret: some secret |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 64 | etsi: |
| 65 | nfvo: |
| 66 | nslcm: |
| 67 | username: so-etsi-nfvo-ns-lcm |
| 68 | mso: |
| 69 | key: 07a7159d3bf51a0e53be7a8f89699be7 |
| 70 | so: |
| 71 | sol003: |
| 72 | adapter: |
| 73 | auth: Basic dm5mbTpwYXNzd29yZDEk |
| 74 | |
| 75 | replicaCount: 1 |
| 76 | minReadySeconds: 10 |
| 77 | containerPort: &containerPort 9095 |
| 78 | logPath: ./logs/so-etsi-nfvo-ns-lcm/ |
| 79 | app: so-etsi-nfvo-ns-lcm |
| 80 | service: |
| 81 | type: ClusterIP |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 82 | annotations: |
| 83 | service.alpha.kubernetes.io/tolerate-unready-endpoints: 'true' |
| 84 | msb.onap.org/service-info: | |
AndrewLamb | 92c2d39 | 2020-11-10 10:36:52 +0000 | [diff] [blame] | 85 | {{ if .Values.global.msbEnabled -}}[ |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 86 | { |
| 87 | "serviceName": "{{ include "common.servicename" . }}", |
| 88 | "version": "v1", |
| 89 | "url": "/so/so-etsi-nfvo-ns-lcm/v1", |
| 90 | "protocol": "REST", |
AndrewLamb | 92c2d39 | 2020-11-10 10:36:52 +0000 | [diff] [blame] | 91 | "port": "{{ include "common.getPort" (dict "global" . "name" "http-api") }}", |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 92 | "visualRange":"1" |
| 93 | } |
| 94 | ]{{ end }} |
| 95 | ports: |
| 96 | - name: http-api |
| 97 | port: *containerPort |
| 98 | updateStrategy: |
| 99 | type: RollingUpdate |
| 100 | maxUnavailable: 1 |
| 101 | maxSurge: 1 |
| 102 | |
| 103 | ################################################################# |
| 104 | # soHelpers part |
| 105 | ################################################################# |
| 106 | soHelpers: |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 107 | containerPort: *containerPort |
| 108 | |
| 109 | # Resource Limit flavor -By Default using small |
| 110 | flavor: small |
| 111 | # Segregation for Different environment (Small and Large) |
| 112 | resources: |
| 113 | small: |
| 114 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 115 | memory: 1Gi |
| 116 | cpu: 999 |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 117 | requests: |
| 118 | memory: 1Gi |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 119 | cpu: 0.5 |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 120 | large: |
| 121 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 122 | memory: 5Gi |
| 123 | cpu: 999 |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 124 | requests: |
| 125 | memory: 2Gi |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 126 | cpu: 4 |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 127 | unlimited: {} |
| 128 | |
| 129 | livenessProbe: |
| 130 | port: 9095 |
| 131 | initialDelaySeconds: 600 |
| 132 | periodSeconds: 60 |
| 133 | timeoutSeconds: 10 |
| 134 | successThreshold: 1 |
| 135 | failureThreshold: 3 |
| 136 | |
| 137 | ingress: |
| 138 | enabled: false |
| 139 | service: |
Andreas Geissler | 51900a9 | 2022-08-03 13:10:35 +0200 | [diff] [blame] | 140 | - baseaddr: 'so-etsi-nfvo-ns-lcm-api' |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 141 | name: 'so-etsi-nfvo-ns-lcm' |
| 142 | port: 9095 |
| 143 | config: |
| 144 | ssl: 'redirect' |
| 145 | |
AndrewLamb | ab2704a | 2023-04-05 14:45:11 +0100 | [diff] [blame] | 146 | serviceMesh: |
| 147 | authorizationPolicy: |
| 148 | authorizedPrincipals: |
| 149 | - serviceAccount: so-read |
| 150 | - serviceAccount: istio-ingress |
| 151 | namespace: istio-ingress |
| 152 | |
AndrewLamb | 8e09044 | 2020-10-15 09:28:09 +0100 | [diff] [blame] | 153 | nodeSelector: {} |
| 154 | |
| 155 | tolerations: [] |
| 156 | |
| 157 | affinity: {} |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 158 | |
| 159 | #Pods Service Account |
| 160 | serviceAccount: |
| 161 | nameOverride: so-etsi-nfvo-ns-lcm |
| 162 | roles: |
| 163 | - read |