blob: 4ae01bd82b4f60fa70abacea64502d43c69f1dcf [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
JunyiDue3fccd42022-09-28 16:56:13 +080040#################################################################
41# Application configuration defaults.
42#################################################################
43
vaibhav_16dec14d51612018-03-28 07:48:35 +000044subChartsOnly:
45 enabled: true
46
GregSuleka4ce0b22018-09-18 19:39:03 -040047flavor: small
48
vaibhav_16dec14d51612018-03-28 07:48:35 +000049# application image
50repository: nexus3.onap.org:10001
cmrizhangzhen75901d12022-11-10 15:21:46 +080051image: onap/usecase-ui-server:5.1.3
vaibhav_16dec14d51612018-03-28 07:48:35 +000052pullPolicy: Always
53
54# application configuration
55
Andreas Geissler22f3b162023-02-07 13:10:01 +010056msbaddr: msb-iag.{{include "common.namespace" .}}:80
Mike Elliott6d499e32018-04-19 21:23:27 -040057mraddr: message-router.{{include "common.namespace" .}}:3904
vaibhav_16dec14d51612018-03-28 07:48:35 +000058
JunyiDue3fccd42022-09-28 16:56:13 +080059# application configuration override for postgres
60postgres:
61 nameOverride: &postgresName uui-server-postgres
62 service:
63 name: *postgresName
64 name2: uui-server-pg-primary
65 name3: uui-server-pg-replica
66 container:
67 name:
68 primary: uui-server-pg-primary
69 replica: uui-server-pg-replica
70 persistence:
71 mountSubPath: uui/uuiserver/data
72 mountInitPath: uui/uuiserver
73 config:
74 pgUserName: uui
75 pgDatabase: uuidb
76 pgUserExternalSecret: *pgUserCredsSecretName
77 pgRootPasswordExternalSecret: *pgRootPassSecretName
78
79
80
vaibhav_16dec14d51612018-03-28 07:48:35 +000081# flag to enable debugging - application support required
82debugEnabled: false
83
84# default number of instances
85replicaCount: 1
86
87nodeSelector: {}
88
89affinity: {}
90
91# probe configuration parameters
92liveness:
Netajisu11fe5832018-07-24 13:08:08 +000093 initialDelaySeconds: 120
vaibhav_16dec14d51612018-03-28 07:48:35 +000094 periodSeconds: 10
95 # necessary to disable liveness probe when setting breakpoints
96 # in debugger so K8s doesn't restart unresponsive container
97 enabled: true
98
99readiness:
Netajisu11fe5832018-07-24 13:08:08 +0000100 initialDelaySeconds: 60
vaibhav_16dec14d51612018-03-28 07:48:35 +0000101 periodSeconds: 10
102
103service:
104 type: NodePort
BorislavG1ffbd992018-04-24 07:56:27 +0000105 name: uui-server
vaibhav_16dec14d51612018-03-28 07:48:35 +0000106 internalPort: 8082
Andreas Geissler22f3b162023-02-07 13:10:01 +0100107 ports:
108 - name: http
109 port: 8082
110 nodePort: '99'
111 annotations:
112 msb.onap.org/service-info: |
113 {{ if .Values.global.msbEnabled -}}[
114 {
115 "serviceName": "usecaseui-server",
116 "version": "v1",
117 "url": "/api/usecase-server/v1",
118 "path":"/iui/usecaseui",
119 "protocol": "REST",
120 "visualRange":"1",
Andreas Geissler72440682023-04-12 17:01:25 +0200121 "port": "{{ include "common.getPort" (dict "global" . "name" "http" "getPlain" true) }}",
122 "enable_ssl": false
Andreas Geissler22f3b162023-02-07 13:10:01 +0100123 }
124 ]{{ end }}
vaibhav_16dec14d51612018-03-28 07:48:35 +0000125
126ingress:
127 enabled: false
Lucjan Bryndza3c2fb1f2019-11-26 14:17:42 +0100128 service:
Andreas Geissler22f3b162023-02-07 13:10:01 +0100129 - baseaddr: "uui-server-api"
Lucjan Bryndza3c2fb1f2019-11-26 14:17:42 +0100130 name: "uui-server"
131 port: 8082
vaibhav_16dec14d51612018-03-28 07:48:35 +0000132
vaibhav_16dec14d51612018-03-28 07:48:35 +0000133 # We usually recommend not to specify default resources and to leave this as a conscious
134 # choice for the user. This also increases chances charts run on environments with little
135 # resources, such as Minikube. If you do want to specify resources, uncomment the following
136 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
137 #
138 # Example:
139 # Configure resource requests and limits
140 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
141 # Minimum memory for development is 2 CPU cores and 4GB memory
142 # Minimum memory for production is 4 CPU cores and 8GB memory
GregSuleka4ce0b22018-09-18 19:39:03 -0400143resources:
144 small:
145 limits:
Sylvain Desbureaux4e97c772020-03-05 13:54:52 +0100146 cpu: 1.5
147 memory: 350Mi
GregSuleka4ce0b22018-09-18 19:39:03 -0400148 requests:
Sylvain Desbureaux4e97c772020-03-05 13:54:52 +0100149 cpu: 1
150 memory: 245Mi
GregSuleka4ce0b22018-09-18 19:39:03 -0400151 large:
152 limits:
Sylvain Desbureaux4e97c772020-03-05 13:54:52 +0100153 cpu: 2
GregSuleka4ce0b22018-09-18 19:39:03 -0400154 memory: 500Mi
155 requests:
Sylvain Desbureaux4e97c772020-03-05 13:54:52 +0100156 cpu: 1
GregSuleka4ce0b22018-09-18 19:39:03 -0400157 memory: 500Mi
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000158 unlimited: {}
JunyiDue3fccd42022-09-28 16:56:13 +0800159
160serviceAccount:
161 nameOverride: uui-server
162 roles:
163 - read
164
165securityContext:
166 user_id: 100
Andreas Geissler22f3b162023-02-07 13:10:01 +0100167 group_id: 655533
168
169wait_for_job_container:
170 containers:
171 - '{{ include "common.name" . }}-job'