vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
amatthews | b6229de | 2022-10-25 12:27:50 +0100 | [diff] [blame] | 2 | # Copyright (c) 2022 Nordix Foundation. |
vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 16 | # Default values for uui. |
| 17 | # This is a YAML-formatted file. |
| 18 | # Declare variables to be passed into your templates. |
| 19 | global: |
| 20 | uuiPortPrefix: 303 |
Sylvain Desbureaux | 1694e1d | 2020-08-21 09:58:25 +0200 | [diff] [blame] | 21 | |
Sylvain Desbureaux | e6a1a37 | 2021-02-25 18:07:55 +0100 | [diff] [blame] | 22 | ################################################################# |
| 23 | # AAF part |
| 24 | ################################################################# |
| 25 | certInitializer: |
| 26 | nameOverride: uui-cert-initializer |
| 27 | aafDeployFqi: deployer@people.osaaf.org |
| 28 | aafDeployPass: demo123456! |
| 29 | # aafDeployCredsExternalSecret: some secret |
| 30 | fqdn: uui |
| 31 | fqi: uui@uui.onap.org |
| 32 | fqi_namespace: org.onap.uui |
| 33 | public_fqdn: uui.onap.org |
| 34 | cadi_longitude: "0.0" |
| 35 | cadi_latitude: "0.0" |
| 36 | app_ns: org.osaaf.aaf |
| 37 | credsPath: /opt/app/osaaf/local |
| 38 | aaf_add_config: | |
| 39 | echo "*** changing them into shell safe ones" |
| 40 | export KEYSTORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1) |
| 41 | export TRUSTSORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1) |
| 42 | cd {{ .Values.credsPath }} |
| 43 | keytool -storepasswd -new "${KEYSTORE_PASSWORD}" \ |
| 44 | -storepass "${cadi_keystore_password_p12}" \ |
| 45 | -keystore {{ .Values.fqi_namespace }}.p12 |
| 46 | keytool -storepasswd -new "${TRUSTSORE_PASSWORD}" \ |
| 47 | -storepass "${cadi_truststore_password}" \ |
| 48 | -keystore {{ .Values.fqi_namespace }}.trust.jks |
| 49 | echo "*** save the generated passwords" |
| 50 | echo "KEYSTORE_PASSWORD=${KEYSTORE_PASSWORD}" > mycreds.prop |
| 51 | echo "TRUSTSORE_PASSWORD=${TRUSTSORE_PASSWORD}" >> mycreds.prop |
| 52 | echo "*** change ownership of certificates to targeted user" |
| 53 | chown -R 1000 {{ .Values.credsPath }} |
| 54 | |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 55 | subChartsOnly: |
| 56 | enabled: true |
| 57 | |
GregSulek | a4ce0b2 | 2018-09-18 19:39:03 -0400 | [diff] [blame] | 58 | flavor: small |
| 59 | |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 60 | # application image |
cmrizhangzhen | 5c69e79 | 2022-11-25 17:27:35 +0800 | [diff] [blame] | 61 | image: onap/usecase-ui:5.1.2 |
Dusan Rozman | 03aa27e | 2017-10-11 13:04:23 -0400 | [diff] [blame] | 62 | pullPolicy: Always |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 63 | |
| 64 | # application configuration |
| 65 | |
| 66 | msbaddr: msb-iag.{{include "common.namespace" .}}:80 |
Mike Elliott | 6d499e3 | 2018-04-19 21:23:27 -0400 | [diff] [blame] | 67 | mraddr: message-router.{{include "common.namespace" .}}:3904 |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 68 | |
| 69 | # flag to enable debugging - application support required |
| 70 | debugEnabled: false |
| 71 | |
| 72 | # default number of instances |
| 73 | replicaCount: 1 |
| 74 | |
| 75 | nodeSelector: {} |
| 76 | |
| 77 | affinity: {} |
| 78 | |
| 79 | # probe configuration parameters |
| 80 | liveness: |
| 81 | initialDelaySeconds: 10 |
| 82 | periodSeconds: 10 |
| 83 | # necessary to disable liveness probe when setting breakpoints |
| 84 | # in debugger so K8s doesn't restart unresponsive container |
| 85 | enabled: true |
| 86 | |
| 87 | readiness: |
| 88 | initialDelaySeconds: 10 |
| 89 | periodSeconds: 10 |
| 90 | |
| 91 | service: |
| 92 | type: NodePort |
| 93 | name: uui |
Andreas Geissler | 22f3b16 | 2023-02-07 13:10:01 +0100 | [diff] [blame] | 94 | internalPort: 8080 |
| 95 | ports: |
| 96 | - name: http |
| 97 | port: 8443 |
| 98 | plain_port: 8080 |
| 99 | nodePort: '98' |
| 100 | annotations: |
| 101 | msb.onap.org/service-info: | |
| 102 | {{ if .Values.global.msbEnabled -}}[ |
| 103 | { |
| 104 | "serviceName": "usecaseui-ui", |
| 105 | "version": "v1", |
| 106 | "url": "/usecase-ui", |
| 107 | "path":"/iui/usecaseui", |
| 108 | "protocol": "UI", |
| 109 | "visualRange":"1", |
| 110 | {{ if (include "common.needTLS" .) }} |
| 111 | "port": "{{ include "common.getPort" (dict "global" . "name" "http") }}", |
| 112 | "enable_ssl": true |
| 113 | {{ else }} |
| 114 | "port": "{{ include "common.getPort" (dict "global" . "name" "http" "getPlain" true) }}" |
| 115 | {{ end }} |
| 116 | } |
| 117 | ]{{ end }} |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 118 | |
| 119 | ingress: |
| 120 | enabled: false |
Lucjan Bryndza | 3c2fb1f | 2019-11-26 14:17:42 +0100 | [diff] [blame] | 121 | service: |
Andreas Geissler | 51900a9 | 2022-08-03 13:10:35 +0200 | [diff] [blame] | 122 | - baseaddr: "uui-ui" |
Lucjan Bryndza | 3c2fb1f | 2019-11-26 14:17:42 +0100 | [diff] [blame] | 123 | name: "uui" |
hekeguang | 9fc5136 | 2020-03-17 15:25:24 +0800 | [diff] [blame] | 124 | port: 8443 |
Andreas Geissler | 22f3b16 | 2023-02-07 13:10:01 +0100 | [diff] [blame] | 125 | plain_port: 8080 |
Lucjan Bryndza | 3c2fb1f | 2019-11-26 14:17:42 +0100 | [diff] [blame] | 126 | config: |
Sylvain Desbureaux | 133324f | 2020-05-06 15:25:54 +0200 | [diff] [blame] | 127 | ssl: "redirect" |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 128 | |
vaibhav_16dec | 14d5161 | 2018-03-28 07:48:35 +0000 | [diff] [blame] | 129 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 130 | # choice for the user. This also increases chances charts run on environments with little |
| 131 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 132 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 133 | # |
| 134 | # Example: |
| 135 | # Configure resource requests and limits |
| 136 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 137 | # Minimum memory for development is 2 CPU cores and 4GB memory |
| 138 | # Minimum memory for production is 4 CPU cores and 8GB memory |
GregSulek | a4ce0b2 | 2018-09-18 19:39:03 -0400 | [diff] [blame] | 139 | resources: |
| 140 | small: |
| 141 | limits: |
| 142 | cpu: 250m |
| 143 | memory: 1Gi |
| 144 | requests: |
| 145 | cpu: 250m |
| 146 | memory: 1Gi |
| 147 | large: |
| 148 | limits: |
| 149 | cpu: 500m |
| 150 | memory: 1Gi |
| 151 | requests: |
| 152 | cpu: 500m |
| 153 | memory: 1Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 154 | unlimited: {} |