Merge "[MARIADB] Make the MariaDB service Operator aware"
[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:3.0.1
30   envsubstImage: dibi/envsubst
31   persistence:
32     mountPath: /dockerdata-nfs
33   mariadbGalera:
34     service: mariadb-galera
35     servicePort: '3306'
36
37 #################################################################
38 # Secrets metaconfig
39 #################################################################
40 secrets:
41   - uid: db-user-creds
42     type: basicAuth
43     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
44     login: '{{ .Values.db.userName }}'
45     password: '{{ .Values.db.userPassword }}'
46     passwordPolicy: required
47   - uid: db-admin-creds
48     type: basicAuth
49     externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
50     login: '{{ .Values.db.adminName }}'
51     password: '{{ .Values.db.adminPassword }}'
52     passwordPolicy: required
53   - uid: app-user-creds
54     type: basicAuth
55     externalSecret: '{{ tpl (default "" .Values.server.cockpit.soMonitoringCredsExternalSecret) . }}'
56     login: '{{ .Values.server.cockpit.username }}'
57     password: '{{ .Values.server.cockpit.password }}'
58
59 #secretsFilePaths: |
60 #  - 'my file 1'
61 #  - '{{ include "templateThatGeneratesFileName" . }}'
62
63 #################################################################
64 # Application configuration defaults.
65 #################################################################
66 repository: nexus3.onap.org:10001
67 image: onap/so/so-admin-cockpit:1.9.0
68 pullPolicy: Always
69
70 db:
71   userName: so_user
72   userPassword: so_User123
73   # userCredsExternalSecret: some secret
74   adminName: so_admin
75   adminPassword: so_Admin123
76   # adminCredsExternalSecret: some secret
77
78 replicaCount: 1
79 minReadySeconds: 10
80 containerPort: &containerPort 9091
81 logPath: app/logs/
82 app: so-admin-cockpit
83
84 #################################################################
85 # soHelpers part
86 #################################################################
87 soHelpers:
88   containerPort: *containerPort
89
90 server:
91   cockpit:
92     username: demo
93     # password: demo123456!
94     # soMonitoringCredsExternalSecret: some secret
95
96 service:
97   type: NodePort
98   ports:
99     - port: *containerPort
100       name: http
101       nodePort: 24
102
103 updateStrategy:
104   type: RollingUpdate
105   maxUnavailable: 1
106   maxSurge: 1
107 # Resource Limit flavor -By Default using small
108 flavor: small
109 #Segregation for different environment (Small or large)
110 resources:
111   small:
112     requests:
113       memory: 1Gi
114       cpu: 0.5
115     limits:
116       memory: 4Gi
117       cpu: 1
118   large:
119     requests:
120       memory: 2Gi
121       cpu: 1
122     limits:
123       memory: 8Gi
124       cpu: 2
125   unlimited: {}
126 readinessProbe:
127   port: 9091
128   initialDelaySeconds: 40
129   periodSeconds: 10
130   timeoutSeconds: 10
131 livenessProbe:
132   port: 9091
133   initialDelaySeconds: 80
134   periodSeconds: 10
135   timeoutSeconds: 10
136   successThreshold: 1
137   failureThreshold: 3
138 ingress:
139   enabled: false
140   service:
141   - baseaddr: "so-admin-cockpit-ui"
142     name: "so-admin-cockpit"
143     port: 9091
144   config:
145     ssl: "none"
146 serviceMesh:
147   authorizationPolicy:
148     authorizedPrincipals:
149       - serviceAccount: portal-app-read
150       - serviceAccount: so-read
151       - serviceAccount: istio-ingress
152         namespace: istio-ingress
153 nodeSelector: {}
154 tolerations: []
155 affinity: {}
156
157 #Pods Service Account
158 serviceAccount:
159   nameOverride: so-admin-cockpit
160   roles:
161     - read