blob: 48e923c522d17af50a58700a40afe0ef86e5f236 [file] [log] [blame]
AndrewLamb8e090442020-10-15 09:28:09 +01001# 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#################################################################
18global:
19 nodePortPrefixExt: 304
AndrewLamb8e090442020-10-15 09:28:09 +010020 persistence:
21 mountPath: /dockerdata-nfs
krishnaa9692b606b2020-10-30 11:29:21 +053022 mariadbGalera:
Andreas Geissler576de2d2023-10-24 15:38:01 +020023 service: mariadb-galera
krishnaa9692b606b2020-10-30 11:29:21 +053024 servicePort: '3306'
AndrewLamb8e090442020-10-15 09:28:09 +010025
26#################################################################
27# Secrets metaconfig
28#################################################################
29secrets:
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 }}'
rope2524d3f3682020-09-02 20:49:21 +010036 - 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
AndrewLamb8e090442020-10-15 09:28:09 +010048
49#################################################################
50# Application configuration defaults.
51#################################################################
Lukasz Rajewskib6861242022-09-06 13:32:58 +020052image: onap/so/so-etsi-nfvo-ns-lcm:1.9.0
AndrewLamb8e090442020-10-15 09:28:09 +010053pullPolicy: Always
54
55aai:
56 auth: 2A11B07DB6214A839394AA1EC5844695F5114FC407FF5422625FB00175A3DCB8A1FF745F22867EFA72D5369D599BBD88DA8BED4233CF5586
Andreas Geissler2c1ba292024-01-10 22:20:05 +010057
58readinessCheck:
59 wait_for:
60 jobs:
61 - '{{ include "common.release" . }}-so-mariadb-config-job'
62
63# Local mariadb galera instance default name
64mariadb-galera:
65 nameOverride: so-mariadb-galera
66 service:
67 internalPort: 3306
68 mariadbOperator:
69 galera:
70 enabled: false
71
rope2524d3f3682020-09-02 20:49:21 +010072db:
73 userName: so_user
74 userPassword: so_User123
75 # userCredsExternalSecret: some secret
76 adminName: so_admin
77 adminPassword: so_Admin123
78 # adminCredsExternalSecret: some secret
AndrewLamb8e090442020-10-15 09:28:09 +010079etsi:
80 nfvo:
81 nslcm:
82 username: so-etsi-nfvo-ns-lcm
83mso:
84 key: 07a7159d3bf51a0e53be7a8f89699be7
85so:
86 sol003:
87 adapter:
88 auth: Basic dm5mbTpwYXNzd29yZDEk
89
90replicaCount: 1
91minReadySeconds: 10
92containerPort: &containerPort 9095
93logPath: ./logs/so-etsi-nfvo-ns-lcm/
94app: so-etsi-nfvo-ns-lcm
95service:
96 type: ClusterIP
AndrewLamb8e090442020-10-15 09:28:09 +010097 annotations:
98 service.alpha.kubernetes.io/tolerate-unready-endpoints: 'true'
99 msb.onap.org/service-info: |
AndrewLamb92c2d392020-11-10 10:36:52 +0000100 {{ if .Values.global.msbEnabled -}}[
AndrewLamb8e090442020-10-15 09:28:09 +0100101 {
102 "serviceName": "{{ include "common.servicename" . }}",
103 "version": "v1",
104 "url": "/so/so-etsi-nfvo-ns-lcm/v1",
105 "protocol": "REST",
AndrewLamb92c2d392020-11-10 10:36:52 +0000106 "port": "{{ include "common.getPort" (dict "global" . "name" "http-api") }}",
AndrewLamb8e090442020-10-15 09:28:09 +0100107 "visualRange":"1"
108 }
109 ]{{ end }}
110 ports:
111 - name: http-api
112 port: *containerPort
113updateStrategy:
114 type: RollingUpdate
115 maxUnavailable: 1
116 maxSurge: 1
117
118#################################################################
119# soHelpers part
120#################################################################
121soHelpers:
AndrewLamb8e090442020-10-15 09:28:09 +0100122 containerPort: *containerPort
123
124# Resource Limit flavor -By Default using small
125flavor: small
126# Segregation for Different environment (Small and Large)
127resources:
128 small:
129 limits:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200130 memory: 1Gi
vladimir turokdb8167b2023-09-20 11:09:21 +0200131 cpu: 1
AndrewLamb8e090442020-10-15 09:28:09 +0100132 requests:
133 memory: 1Gi
Andreas Geissler555db9c2023-06-20 11:38:39 +0200134 cpu: 0.5
AndrewLamb8e090442020-10-15 09:28:09 +0100135 large:
136 limits:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200137 memory: 5Gi
vladimir turokdb8167b2023-09-20 11:09:21 +0200138 cpu: 2
AndrewLamb8e090442020-10-15 09:28:09 +0100139 requests:
140 memory: 2Gi
vladimir turokdb8167b2023-09-20 11:09:21 +0200141 cpu: 1
AndrewLamb8e090442020-10-15 09:28:09 +0100142 unlimited: {}
143
144livenessProbe:
145 port: 9095
146 initialDelaySeconds: 600
147 periodSeconds: 60
148 timeoutSeconds: 10
149 successThreshold: 1
150 failureThreshold: 3
151
152ingress:
153 enabled: false
154 service:
Andreas Geissler51900a92022-08-03 13:10:35 +0200155 - baseaddr: 'so-etsi-nfvo-ns-lcm-api'
AndrewLamb8e090442020-10-15 09:28:09 +0100156 name: 'so-etsi-nfvo-ns-lcm'
157 port: 9095
158 config:
159 ssl: 'redirect'
160
AndrewLambab2704a2023-04-05 14:45:11 +0100161serviceMesh:
162 authorizationPolicy:
163 authorizedPrincipals:
164 - serviceAccount: so-read
165 - serviceAccount: istio-ingress
166 namespace: istio-ingress
167
AndrewLamb8e090442020-10-15 09:28:09 +0100168nodeSelector: {}
169
170tolerations: []
171
172affinity: {}
farida azmy87f46222021-04-06 15:25:15 +0200173
174#Pods Service Account
175serviceAccount:
176 nameOverride: so-etsi-nfvo-ns-lcm
177 roles:
178 - read