blob: 2a187d63921f504af2cd195659dc4a1821141e5d [file] [log] [blame]
vaibhav_16dec14d51612018-03-28 07:48:35 +00001# Copyright © 2017 Amdocs, Bell Canada
JunyiDue3fccd42022-09-28 16:56:13 +08002# Modifications Copyright © 2022 CMCC Corporation
vaibhav_16dec14d51612018-03-28 07:48:35 +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.
14
15# Default values for uui.
16# This is a YAML-formatted file.
17# Declare variables to be passed into your templates.
JunyiDue3fccd42022-09-28 16:56:13 +080018
19#################################################################
20# Global configuration defaults.
21#################################################################
vaibhav_16dec14d51612018-03-28 07:48:35 +000022global:
23 uuiPortPrefix: 303
guillaume.lambert30ec3902021-09-14 12:32:24 +020024
JunyiDue3fccd42022-09-28 16:56:13 +080025secrets:
26 - uid: pg-root-pass
27 name: &pgRootPassSecretName '{{ include "common.release" . }}-uui-pg-root-pass'
28 type: password
29 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "uui-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
30 password: '{{ .Values.postgres.config.pgRootpassword }}'
31 policy: generate
32 - uid: pg-user-creds
33 name: &pgUserCredsSecretName '{{ include "common.release" . }}-uui-pg-user-creds'
34 type: basicAuth
35 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "uui-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
36 login: '{{ .Values.postgres.config.pgUserName }}'
37 password: '{{ .Values.postgres.config.pgUserPassword }}'
38 passwordPolicy: generate
39
40
Sylvain Desbureauxe6a1a372021-02-25 18:07:55 +010041#################################################################
42# AAF part
43#################################################################
44certInitializer:
45 nameOverride: uui-server-cert-initializer
46 aafDeployFqi: deployer@people.osaaf.org
47 aafDeployPass: demo123456!
48 # aafDeployCredsExternalSecret: some secret
49 fqdn: uui
50 fqi: uui@uui.onap.org
51 fqi_namespace: org.onap.uui
52 public_fqdn: uui.onap.org
53 cadi_longitude: "0.0"
54 cadi_latitude: "0.0"
55 app_ns: org.osaaf.aaf
56 credsPath: /opt/app/osaaf/local
57 aaf_add_config: |
58 echo "*** changing them into shell safe ones"
59 export KEYSTORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
60 export TRUSTSORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
61 cd {{ .Values.credsPath }}
62 keytool -storepasswd -new "${KEYSTORE_PASSWORD}" \
63 -storepass "${cadi_keystore_password_p12}" \
64 -keystore {{ .Values.fqi_namespace }}.p12
65 keytool -storepasswd -new "${TRUSTSORE_PASSWORD}" \
66 -storepass "${cadi_truststore_password}" \
67 -keystore {{ .Values.fqi_namespace }}.trust.jks
68 echo "*** set key password as same password as keystore password"
69 keytool -keypasswd -new "${KEYSTORE_PASSWORD}" \
70 -keystore {{ .Values.fqi_namespace }}.jks \
71 -keypass "${cadi_keystore_password_p12}" \
72 -storepass "${KEYSTORE_PASSWORD}" -alias {{ .Values.fqi }}
73 echo "*** save the generated passwords"
74 echo "KEYSTORE_PASSWORD=${KEYSTORE_PASSWORD}" > mycreds.prop
75 echo "TRUSTSORE_PASSWORD=${TRUSTSORE_PASSWORD}" >> mycreds.prop
76 echo "*** change ownership of certificates to targeted user"
77 chown -R 1000 {{ .Values.credsPath }}
78
JunyiDue3fccd42022-09-28 16:56:13 +080079
80#################################################################
81# Application configuration defaults.
82#################################################################
83
vaibhav_16dec14d51612018-03-28 07:48:35 +000084subChartsOnly:
85 enabled: true
86
GregSuleka4ce0b22018-09-18 19:39:03 -040087flavor: small
88
vaibhav_16dec14d51612018-03-28 07:48:35 +000089# application image
90repository: nexus3.onap.org:10001
hekeguang89625272022-10-27 15:11:14 +080091image: onap/usecase-ui-server:5.1.2
vaibhav_16dec14d51612018-03-28 07:48:35 +000092pullPolicy: Always
93
94# application configuration
95
hekeguang9358bef2020-02-26 15:05:50 +080096msbaddr: msb-iag.{{include "common.namespace" .}}:443
Mike Elliott6d499e32018-04-19 21:23:27 -040097mraddr: message-router.{{include "common.namespace" .}}:3904
vaibhav_16dec14d51612018-03-28 07:48:35 +000098
JunyiDue3fccd42022-09-28 16:56:13 +080099# application configuration override for postgres
100postgres:
101 nameOverride: &postgresName uui-server-postgres
102 service:
103 name: *postgresName
104 name2: uui-server-pg-primary
105 name3: uui-server-pg-replica
106 container:
107 name:
108 primary: uui-server-pg-primary
109 replica: uui-server-pg-replica
110 persistence:
111 mountSubPath: uui/uuiserver/data
112 mountInitPath: uui/uuiserver
113 config:
114 pgUserName: uui
115 pgDatabase: uuidb
116 pgUserExternalSecret: *pgUserCredsSecretName
117 pgRootPasswordExternalSecret: *pgRootPassSecretName
118
119
120
vaibhav_16dec14d51612018-03-28 07:48:35 +0000121# flag to enable debugging - application support required
122debugEnabled: false
123
124# default number of instances
125replicaCount: 1
126
127nodeSelector: {}
128
129affinity: {}
130
131# probe configuration parameters
132liveness:
Netajisu11fe5832018-07-24 13:08:08 +0000133 initialDelaySeconds: 120
vaibhav_16dec14d51612018-03-28 07:48:35 +0000134 periodSeconds: 10
135 # necessary to disable liveness probe when setting breakpoints
136 # in debugger so K8s doesn't restart unresponsive container
137 enabled: true
138
139readiness:
Netajisu11fe5832018-07-24 13:08:08 +0000140 initialDelaySeconds: 60
vaibhav_16dec14d51612018-03-28 07:48:35 +0000141 periodSeconds: 10
142
143service:
144 type: NodePort
BorislavG1ffbd992018-04-24 07:56:27 +0000145 name: uui-server
146 portName: uui-server
vaibhav_16dec14d51612018-03-28 07:48:35 +0000147 internalPort: 8082
148 nodePort: 99
149
150ingress:
151 enabled: false
Lucjan Bryndza3c2fb1f2019-11-26 14:17:42 +0100152 service:
Andreas Geissler51900a92022-08-03 13:10:35 +0200153 - baseaddr: uui-server-api
Lucjan Bryndza3c2fb1f2019-11-26 14:17:42 +0100154 name: "uui-server"
155 port: 8082
156 config:
Sylvain Desbureaux133324f2020-05-06 15:25:54 +0200157 ssl: "redirect"
vaibhav_16dec14d51612018-03-28 07:48:35 +0000158
vaibhav_16dec14d51612018-03-28 07:48:35 +0000159 # We usually recommend not to specify default resources and to leave this as a conscious
160 # choice for the user. This also increases chances charts run on environments with little
161 # resources, such as Minikube. If you do want to specify resources, uncomment the following
162 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
163 #
164 # Example:
165 # Configure resource requests and limits
166 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
167 # Minimum memory for development is 2 CPU cores and 4GB memory
168 # Minimum memory for production is 4 CPU cores and 8GB memory
GregSuleka4ce0b22018-09-18 19:39:03 -0400169resources:
170 small:
171 limits:
Sylvain Desbureaux4e97c772020-03-05 13:54:52 +0100172 cpu: 1.5
173 memory: 350Mi
GregSuleka4ce0b22018-09-18 19:39:03 -0400174 requests:
Sylvain Desbureaux4e97c772020-03-05 13:54:52 +0100175 cpu: 1
176 memory: 245Mi
GregSuleka4ce0b22018-09-18 19:39:03 -0400177 large:
178 limits:
Sylvain Desbureaux4e97c772020-03-05 13:54:52 +0100179 cpu: 2
GregSuleka4ce0b22018-09-18 19:39:03 -0400180 memory: 500Mi
181 requests:
Sylvain Desbureaux4e97c772020-03-05 13:54:52 +0100182 cpu: 1
GregSuleka4ce0b22018-09-18 19:39:03 -0400183 memory: 500Mi
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000184 unlimited: {}
JunyiDue3fccd42022-09-28 16:56:13 +0800185
186serviceAccount:
187 nameOverride: uui-server
188 roles:
189 - read
190
191securityContext:
192 user_id: 100
193 group_id: 655533