vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
JunyiDu | e3fccd4 | 2022-09-28 16:56:13 +0800 | [diff] [blame] | 2 | # Modifications Copyright © 2022 CMCC Corporation |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 3 | # 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. |
JunyiDu | e3fccd4 | 2022-09-28 16:56:13 +0800 | [diff] [blame] | 18 | |
| 19 | ################################################################# |
| 20 | # Global configuration defaults. |
| 21 | ################################################################# |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 22 | global: |
Andreas Geissler | aeb99f4 | 2023-06-28 10:29:00 +0200 | [diff] [blame] | 23 | nodePortPrefix: 302 |
guillaume.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 24 | |
JunyiDu | e3fccd4 | 2022-09-28 16:56:13 +0800 | [diff] [blame] | 25 | secrets: |
| 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 | |
JunyiDu | e3fccd4 | 2022-09-28 16:56:13 +0800 | [diff] [blame] | 40 | ################################################################# |
| 41 | # Application configuration defaults. |
| 42 | ################################################################# |
| 43 | |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 44 | subChartsOnly: |
| 45 | enabled: true |
| 46 | |
GregSulek | a4ce0b2 | 2018-09-18 19:39:03 -0400 | [diff] [blame] | 47 | flavor: small |
| 48 | |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 49 | # application image |
| 50 | repository: nexus3.onap.org:10001 |
kaixiliu | 3a83708 | 2023-06-15 15:54:40 +0800 | [diff] [blame] | 51 | image: onap/usecase-ui-server:5.2.2 |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 52 | pullPolicy: Always |
| 53 | |
| 54 | # application configuration |
| 55 | |
Andreas Geissler | 22f3b16 | 2023-02-07 13:10:01 +0100 | [diff] [blame] | 56 | msbaddr: msb-iag.{{include "common.namespace" .}}:80 |
Mike Elliott | 6d499e3 | 2018-04-19 21:23:27 -0400 | [diff] [blame] | 57 | mraddr: message-router.{{include "common.namespace" .}}:3904 |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 58 | |
JunyiDu | e3fccd4 | 2022-09-28 16:56:13 +0800 | [diff] [blame] | 59 | # application configuration override for postgres |
| 60 | postgres: |
| 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_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 81 | # flag to enable debugging - application support required |
| 82 | debugEnabled: false |
| 83 | |
| 84 | # default number of instances |
| 85 | replicaCount: 1 |
| 86 | |
| 87 | nodeSelector: {} |
| 88 | |
| 89 | affinity: {} |
| 90 | |
| 91 | # probe configuration parameters |
| 92 | liveness: |
Netajisu | 11fe583 | 2018-07-24 13:08:08 +0000 | [diff] [blame] | 93 | initialDelaySeconds: 120 |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 94 | 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 | |
| 99 | readiness: |
Netajisu | 11fe583 | 2018-07-24 13:08:08 +0000 | [diff] [blame] | 100 | initialDelaySeconds: 60 |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 101 | periodSeconds: 10 |
| 102 | |
| 103 | service: |
| 104 | type: NodePort |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 105 | name: uui-server |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 106 | internalPort: 8082 |
Andreas Geissler | aeb99f4 | 2023-06-28 10:29:00 +0200 | [diff] [blame] | 107 | nodePortPrefixOverride: 303 |
Andreas Geissler | 22f3b16 | 2023-02-07 13:10:01 +0100 | [diff] [blame] | 108 | ports: |
| 109 | - name: http |
| 110 | port: 8082 |
| 111 | nodePort: '99' |
| 112 | annotations: |
| 113 | msb.onap.org/service-info: | |
| 114 | {{ if .Values.global.msbEnabled -}}[ |
| 115 | { |
| 116 | "serviceName": "usecaseui-server", |
| 117 | "version": "v1", |
| 118 | "url": "/api/usecase-server/v1", |
| 119 | "path":"/iui/usecaseui", |
| 120 | "protocol": "REST", |
| 121 | "visualRange":"1", |
Andreas Geissler | 7244068 | 2023-04-12 17:01:25 +0200 | [diff] [blame] | 122 | "port": "{{ include "common.getPort" (dict "global" . "name" "http" "getPlain" true) }}", |
| 123 | "enable_ssl": false |
Andreas Geissler | 22f3b16 | 2023-02-07 13:10:01 +0100 | [diff] [blame] | 124 | } |
| 125 | ]{{ end }} |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 126 | |
| 127 | ingress: |
| 128 | enabled: false |
Lucjan Bryndza | 3c2fb1f | 2019-11-26 14:17:42 +0100 | [diff] [blame] | 129 | service: |
Andreas Geissler | 22f3b16 | 2023-02-07 13:10:01 +0100 | [diff] [blame] | 130 | - baseaddr: "uui-server-api" |
Lucjan Bryndza | 3c2fb1f | 2019-11-26 14:17:42 +0100 | [diff] [blame] | 131 | name: "uui-server" |
| 132 | port: 8082 |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 133 | |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 134 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 135 | # choice for the user. This also increases chances charts run on environments with little |
| 136 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 137 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 138 | # |
| 139 | # Example: |
| 140 | # Configure resource requests and limits |
| 141 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 142 | # Minimum memory for development is 2 CPU cores and 4GB memory |
| 143 | # Minimum memory for production is 4 CPU cores and 8GB memory |
GregSulek | a4ce0b2 | 2018-09-18 19:39:03 -0400 | [diff] [blame] | 144 | resources: |
| 145 | small: |
| 146 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 147 | cpu: "1.5" |
| 148 | memory: "2Gi" |
GregSulek | a4ce0b2 | 2018-09-18 19:39:03 -0400 | [diff] [blame] | 149 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 150 | cpu: "1" |
| 151 | memory: "1Gi" |
GregSulek | a4ce0b2 | 2018-09-18 19:39:03 -0400 | [diff] [blame] | 152 | large: |
| 153 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 154 | cpu: "2" |
| 155 | memory: "4Gi" |
GregSulek | a4ce0b2 | 2018-09-18 19:39:03 -0400 | [diff] [blame] | 156 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 157 | cpu: "1" |
| 158 | memory: "2Gi" |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 159 | unlimited: {} |
JunyiDu | e3fccd4 | 2022-09-28 16:56:13 +0800 | [diff] [blame] | 160 | |
| 161 | serviceAccount: |
| 162 | nameOverride: uui-server |
| 163 | roles: |
| 164 | - read |
| 165 | |
| 166 | securityContext: |
| 167 | user_id: 100 |
Andreas Geissler | 22f3b16 | 2023-02-07 13:10:01 +0100 | [diff] [blame] | 168 | group_id: 655533 |
| 169 | |
| 170 | wait_for_job_container: |
| 171 | containers: |
| 172 | - '{{ include "common.name" . }}-job' |