Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / so / components / so-admin-cockpit / values.yaml
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2018 Ericsson. All rights reserved.
3 #   Copyright (C) 2020 Huawei
4 #   Modifications Copyright © 2020 Nokia
5 #   Modifications Copyright © 2021 Orange
6 #  ================================================================================
7 #  Licensed under the Apache License, Version 2.0 (the "License");
8 #  you may not use this file except in compliance with the License.
9 #  You may obtain a copy of the License at
10 #
11 #       http://www.apache.org/licenses/LICENSE-2.0
12 #
13 #  Unless required by applicable law or agreed to in writing, software
14 #  distributed under the License is distributed on an "AS IS" BASIS,
15 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 #  See the License for the specific language governing permissions and
17 #  limitations under the License.
18 #
19 #  SPDX-License-Identifier: Apache-2.0
20 #  ============LICENSE_END=========================================================
21 #  @author: gareth.roper@ericsson.com
22 #################################################################
23 # Global configuration defaults.
24 #################################################################
25 global:
26   nodePortPrefix: 302
27   nodePortPrefixExt: 304
28   repository: nexus3.onap.org:10001
29   readinessImage: onap/oom/readiness:6.0.3
30   envsubstImage: dibi/envsubst
31   persistence:
32     mountPath: /dockerdata-nfs
33   mariadbGalera:
34     # flag to enable the DB creation via mariadb-operator
35     useOperator: true
36     service: mariadb-galera
37     servicePort: '3306'
38
39 #################################################################
40 # Secrets metaconfig
41 #################################################################
42 secrets:
43   - uid: db-user-creds
44     type: basicAuth
45     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
46     login: '{{ .Values.db.userName }}'
47     password: '{{ .Values.db.userPassword }}'
48     passwordPolicy: required
49   - uid: db-admin-creds
50     type: basicAuth
51     externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
52     login: '{{ .Values.db.adminName }}'
53     password: '{{ .Values.db.adminPassword }}'
54     passwordPolicy: required
55   - uid: app-user-creds
56     type: basicAuth
57     externalSecret: '{{ tpl (default "" .Values.server.cockpit.soMonitoringCredsExternalSecret) . }}'
58     login: '{{ .Values.server.cockpit.username }}'
59     password: '{{ .Values.server.cockpit.password }}'
60
61 #secretsFilePaths: |
62 #  - 'my file 1'
63 #  - '{{ include "templateThatGeneratesFileName" . }}'
64
65 #################################################################
66 # Application configuration defaults.
67 #################################################################
68 repository: nexus3.onap.org:10001
69 image: onap/so/so-admin-cockpit:1.9.0
70 pullPolicy: Always
71
72 # Local mariadb galera instance default name
73 mariadb-galera:
74   nameOverride: so-mariadb-galera
75   service:
76     internalPort: 3306
77   mariadbOperator:
78     galera:
79       enabled: false
80
81 db:
82   userName: so_user
83   userPassword: so_User123
84   # userCredsExternalSecret: some secret
85   adminName: so_admin
86   adminPassword: so_Admin123
87   # adminCredsExternalSecret: some secret
88
89 replicaCount: 1
90 minReadySeconds: 10
91 containerPort: &containerPort 9091
92 logPath: app/logs/
93 app: so-admin-cockpit
94
95 #################################################################
96 # soHelpers part
97 #################################################################
98 soHelpers:
99   containerPort: *containerPort
100
101 server:
102   cockpit:
103     username: demo
104     # password: demo123456!
105     # soMonitoringCredsExternalSecret: some secret
106
107 service:
108   type: NodePort
109   ports:
110     - port: *containerPort
111       name: http
112       nodePort: 24
113
114 updateStrategy:
115   type: RollingUpdate
116   maxUnavailable: 1
117   maxSurge: 1
118 # Resource Limit flavor -By Default using small
119 flavor: small
120 #Segregation for different environment (Small or large)
121 resources:
122   small:
123     requests:
124       cpu: "0.5"
125       memory: "1Gi"
126     limits:
127       cpu: "1"
128       memory: "4Gi"
129   large:
130     requests:
131       cpu: "1"
132       memory: "2Gi"
133     limits:
134       cpu: "2"
135       memory: "8Gi"
136   unlimited: {}
137 readinessProbe:
138   port: 9091
139   initialDelaySeconds: 40
140   periodSeconds: 10
141   timeoutSeconds: 10
142 livenessProbe:
143   port: 9091
144   initialDelaySeconds: 80
145   periodSeconds: 10
146   timeoutSeconds: 10
147   successThreshold: 1
148   failureThreshold: 3
149 ingress:
150   enabled: false
151   service:
152   - baseaddr: "so-admin-cockpit-ui"
153     name: "so-admin-cockpit"
154     port: 9091
155   config:
156     ssl: "none"
157 serviceMesh:
158   authorizationPolicy:
159     authorizedPrincipals:
160       - serviceAccount: portal-app-read
161       - serviceAccount: so-read
162       - serviceAccount: istio-ingress
163         namespace: istio-ingress
164 nodeSelector: {}
165 tolerations: []
166 affinity: {}
167
168 #Pods Service Account
169 serviceAccount:
170   nameOverride: so-admin-cockpit
171   roles:
172     - read