blob: 7e2d521e8be13a74e457ea76370fc36925670f8c [file] [log] [blame]
Mandeep Khinda60d36d42018-09-24 15:15:48 +00001# Copyright © 2018 AT&T USA
seshukm0df1f8e2020-08-17 21:45:49 +05302# Copyright © 2020 Huawei
Mandeep Khinda60d36d42018-09-24 15:15:48 +00003# 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.
jmacc4f04d32018-10-12 18:24:24 +000014#################################################################
15# Global configuration defaults.
16#################################################################
17global:
18 nodePortPrefix: 302
19 nodePortPrefixExt: 304
jmacc4f04d32018-10-12 18:24:24 +000020 persistence:
21 mountPath: /dockerdata-nfs
krishnaa9692b606b2020-10-30 11:29:21 +053022 mariadbGalera:
Andreas Geissler2c1ba292024-01-10 22:20:05 +010023 # flag to enable the DB creation via mariadb-operator
24 useOperator: true
Andreas Geissler576de2d2023-10-24 15:38:01 +020025 service: mariadb-galera
krishnaa9692b606b2020-10-30 11:29:21 +053026 servicePort: '3306'
jmacc4f04d32018-10-12 18:24:24 +000027
Sylvain Desbureauxd055a172020-10-30 14:32:03 +010028readinessCheck:
29 wait_for:
Prabhjot Singh Sethi46e17562021-08-20 22:40:23 +053030 jobs:
31 - '{{ include "common.release" . }}-so-mariadb-config-job'
Sylvain Desbureauxd055a172020-10-30 14:32:03 +010032
jmacc4f04d32018-10-12 18:24:24 +000033#################################################################
Krzysztof Opasiakf232c992020-03-24 23:08:15 +010034# Secrets metaconfig
35#################################################################
36secrets:
37 - uid: db-user-creds
38 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010039 externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
Krzysztof Opasiakf232c992020-03-24 23:08:15 +010040 login: '{{ .Values.db.userName }}'
41 password: '{{ .Values.db.userPassword }}'
42 passwordPolicy: required
43 - uid: db-admin-creds
44 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010045 externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
Krzysztof Opasiakf232c992020-03-24 23:08:15 +010046 login: '{{ .Values.db.adminName }}'
47 password: '{{ .Values.db.adminPassword }}'
48 passwordPolicy: required
Sylvain Desbureauxaadf5452020-03-18 18:13:51 +010049
50#secretsFilePaths: |
51# - 'my file 1'
52# - '{{ include "templateThatGeneratesFileName" . }}'
Krzysztof Opasiakf232c992020-03-24 23:08:15 +010053
54#################################################################
jmacc4f04d32018-10-12 18:24:24 +000055# Application configuration defaults.
56#################################################################
Lukasz Rajewski743dca92023-06-12 07:28:58 +000057image: onap/so/request-db-adapter:1.12.2
jmacc4f04d32018-10-12 18:24:24 +000058pullPolicy: Always
59
Andreas Geissler2c1ba292024-01-10 22:20:05 +010060# Local mariadb galera instance default name
61mariadb-galera:
62 nameOverride: so-mariadb-galera
63 service:
64 internalPort: 3306
65 mariadbOperator:
66 galera:
67 enabled: false
68
Krzysztof Opasiakf232c992020-03-24 23:08:15 +010069db:
70 userName: so_user
71 userPassword: so_User123
72 # userCredsExternalSecret: some secret
73 adminName: so_admin
74 adminPassword: so_Admin123
75 # adminCredsExternalSecret: some secret
76
seshukm0df1f8e2020-08-17 21:45:49 +053077mso:
78 adapters:
79 requestDb:
80 auth: Basic YnBlbDpwYXNzd29yZDEk
81
Mandeep Khinda60d36d42018-09-24 15:15:48 +000082replicaCount: 1
83minReadySeconds: 10
seshukm0df1f8e2020-08-17 21:45:49 +053084containerPort: &containerPort 8083
Mandeep Khinda60d36d42018-09-24 15:15:48 +000085logPath: ./logs/reqdb/
86app: request-db-adapter
87service:
Andreas Geisslerad61ccf2023-02-23 09:17:36 +010088 type: ClusterIP
89 ports:
90 - name: http
91 port: *containerPort
Mandeep Khinda60d36d42018-09-24 15:15:48 +000092updateStrategy:
Andreas Geisslerad61ccf2023-02-23 09:17:36 +010093 type: RollingUpdate
94 maxUnavailable: 1
95 maxSurge: 1
seshukm0df1f8e2020-08-17 21:45:49 +053096
97#################################################################
98# soHelpers part
99#################################################################
100soHelpers:
seshukm0df1f8e2020-08-17 21:45:49 +0530101 containerPort: *containerPort
102
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000103# Resource Limit flavor -By Default using small
104flavor: small
105# Segregation for Different environment (Small and Large)
106resources:
107 small:
108 limits:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200109 memory: 1.5Gi
vladimir turokdb8167b2023-09-20 11:09:21 +0200110 cpu: 1
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000111 requests:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200112 memory: 1.5Gi
113 cpu: 0.5
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000114 large:
115 limits:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200116 memory: 3Gi
vladimir turokdb8167b2023-09-20 11:09:21 +0200117 cpu: 2
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000118 requests:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200119 memory: 3Gi
120 cpu: 1
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000121 unlimited: {}
122livenessProbe:
Andreas Geisslerad61ccf2023-02-23 09:17:36 +0100123 path: /manage/health
124 port: 8083
125 scheme: HTTP
126 initialDelaySeconds: 600
127 periodSeconds: 60
128 timeoutSeconds: 10
129 successThreshold: 1
130 failureThreshold: 3
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000131ingress:
132 enabled: false
AndrewLambab2704a2023-04-05 14:45:11 +0100133serviceMesh:
134 authorizationPolicy:
135 authorizedPrincipals:
136 - serviceAccount: robot-read
137 - serviceAccount: so-admin-cockpit-read
138 - serviceAccount: so-bpmn-infra-read
139 - serviceAccount: so-etsi-sol005-adapter-read
140 - serviceAccount: so-nssmf-adapter-read
141 - serviceAccount: so-openstack-adapter-read
142 - serviceAccount: so-read
143 - serviceAccount: so-sdc-controller-read
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000144nodeSelector: {}
145tolerations: []
146affinity: {}
farida azmy87f46222021-04-06 15:25:15 +0200147
148#Pods Service Account
149serviceAccount:
150 nameOverride: so-request-db-adapter
151 roles:
152 - read