blob: 6b323a4a17c298aea27c8a40ba3d196ae69c9d44 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
Krzysztof Opasiak4a4703b2020-02-08 01:04:48 +01002# Copyright © 2020 Samsung Electronics
Sylvain Desbureauxcc3141d2021-02-08 15:59:33 +01003# Copyright © 2021 Orange
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00004#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
Priyanka5fdca022018-03-13 12:53:06 +000017# Default values for vid.
18# This is a YAML-formatted file.
19# Declare variables to be passed into your templates.
20global:
21 nodePortPrefix: 302
RPMishrae4ee7f12020-10-07 12:09:01 +053022 mariadbGalera: &mariadbGalera
23 #This flag allows VID to instantiate its own mariadb-galera cluster
24 localCluster: false
25 service: mariadb-galera
26 internalPort: 3306
27 nameOverride: mariadb-galera
Priyanka5fdca022018-03-13 12:53:06 +000028
Krzysztof Opasiak4a4703b2020-02-08 01:04:48 +010029#################################################################
30# Secrets metaconfig
31#################################################################
32secrets:
33 - uid: vid-db-user-secret
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010034 name: &dbUserSecretName '{{ include "common.release" . }}-vid-db-user-secret'
Krzysztof Opasiak4a4703b2020-02-08 01:04:48 +010035 type: basicAuth
36 externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
37 login: '{{ .Values.config.db.userName }}'
38 password: '{{ .Values.config.db.userPassword }}'
39
Sylvain Desbureauxcc3141d2021-02-08 15:59:33 +010040#################################################################
41# AAF part
42#################################################################
43certInitializer:
44 nameOverride: vid-cert-initializer
45 aafDeployFqi: deployer@people.osaaf.org
46 aafDeployPass: demo123456!
47 # aafDeployCredsExternalSecret: some secret
48 fqdn: vid
49 fqi: vid@vid.onap.org
50 public_fqdn: vid.onap.org
51 fqi_namespace: "org.onap.vid"
52 cadi_longitude: "0.0"
53 cadi_latitude: "0.0"
54 app_ns: org.osaaf.aaf
55 credsPath: /opt/app/osaaf/local
56 aaf_add_config: |
57 echo "*** retrieving password for keystore and trustore"
58 export $(/opt/app/aaf_config/bin/agent.sh local showpass \
59 {{.Values.fqi}} {{ .Values.fqdn }} | grep '^c' | xargs -0)
60 if [ -z "$cadi_keystore_password" ]
61 then
62 echo " /!\ certificates retrieval failed"
63 exit 1
64 else
65 echo "*** changing them into shell safe ones"
66 export KEYSTORE_PASSWD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
Krzysztof Opasiakd189f0f2021-03-16 18:19:51 +010067 export TRUSTORE_PASSWD=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
Sylvain Desbureauxcc3141d2021-02-08 15:59:33 +010068 cd {{ .Values.credsPath }}
69 keytool -storepasswd -new "${KEYSTORE_PASSWD}" \
70 -storepass "${cadi_keystore_password_jks}" \
71 -keystore {{ .Values.fqi_namespace }}.jks
72 keytool -storepasswd -new "${TRUSTORE_PASSWD}" \
73 -storepass "${cadi_truststore_password}" \
74 -keystore {{ .Values.fqi_namespace }}.trust.jks
75 echo "*** set key password as same password as keystore password"
76 keytool -keypasswd -new "${KEYSTORE_PASSWD}" \
77 -keystore {{ .Values.fqi_namespace }}.jks \
78 -keypass "${cadi_keystore_password_jks}" \
79 -storepass "${KEYSTORE_PASSWD}" -alias {{ .Values.fqi }}
80 echo "*** save the generated passwords"
81 echo "VID_KEYSTORE_PASSWORD=${KEYSTORE_PASSWD}" > mycreds.prop
Krzysztof Opasiakd189f0f2021-03-16 18:19:51 +010082 echo "VID_TRUSTSTORE_PASSWORD=OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp" >> mycreds.prop
Sylvain Desbureauxcc3141d2021-02-08 15:59:33 +010083 echo "*** change ownership of certificates to targeted user"
84 chown -R 1000 .
85 fi
86
Priyanka5fdca022018-03-13 12:53:06 +000087subChartsOnly:
88 enabled: true
89
90# application image
Ikramullah, Ikram4f88ec02021-03-10 10:14:02 -050091image: onap/vid:8.0.2
yurynd0707be2017-09-27 14:54:18 +030092pullPolicy: Always
Priyanka5fdca022018-03-13 12:53:06 +000093
Priyanka5fdca022018-03-13 12:53:06 +000094# application configuration
BorislavG5f3b6192018-03-25 18:12:38 +030095config:
Krzysztof Opasiak4a4703b2020-02-08 01:04:48 +010096 db:
97 userName: vidadmin
98# userCredentialsExternalSecret: some secret
99# userPassword: password
Priyanka5fdca022018-03-13 12:53:06 +0000100 asdcclientrestauth: "Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU="
k.kedronc784bbd2019-09-05 18:28:16 +0200101 asdcclientrestport: "8443"
Priyanka5fdca022018-03-13 12:53:06 +0000102 vidaaiport: "8443"
Sonsino, Ofir (os0695)c9a6edf2018-10-18 11:26:03 +0300103 onapport: "30225"
104 onapportrest: "8443"
105 portalhost: "portal.api.simpledemo.onap.org"
Alexis de Talhouët6c9efc62018-09-20 11:54:03 -0400106 msoport: "8080"
Priyanka5fdca022018-03-13 12:53:06 +0000107 vidmsopass: OBF:1ih71i271vny1yf41ymf1ylz1yf21vn41hzj1icz
108 msodme2serverurl: http://localhost:8081
109 vidcontactuslink: https://todo_contact_us_link.com
Priyanka5fdca022018-03-13 12:53:06 +0000110 vidmysqlmaxconnections: "5"
BorislavG5f3b6192018-03-25 18:12:38 +0300111 logstashServiceName: log-ls
112 logstashPort: 5044
Sonsino, Ofir (os0695)c9a6edf2018-10-18 11:26:03 +0300113 roleaccesscentralized: remote
Priyanka5fdca022018-03-13 12:53:06 +0000114
Sylvain Desbureaux6383c442019-11-14 09:28:12 +0100115mariadb-galera:
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100116 db:
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100117 # password:
118 externalSecret: *dbUserSecretName
119 name: &mysqlDbName vid_openecomp_epsdk
120 nameOverride: &vid-galera vid-galera
Sylvain Desbureaux6383c442019-11-14 09:28:12 +0100121 replicaCount: 3
122 persistence:
123 enabled: true
124 mountSubPath: vid/maria/data
125 externalConfig: |-
Brian Freeman8a1d3142019-12-06 12:44:53 -0500126 [mysqld]
Sylvain Desbureaux6383c442019-11-14 09:28:12 +0100127 lower_case_table_names = 1
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100128 serviceAccount:
129 nameOverride: *vid-galera
Priyanka5fdca022018-03-13 12:53:06 +0000130
RPMishrae4ee7f12020-10-07 12:09:01 +0530131mariadb-init:
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100132 config:
133 userCredentialsExternalSecret: *dbUserSecretName
134 mysqlDatabase: *mysqlDbName
RPMishrae4ee7f12020-10-07 12:09:01 +0530135 nameOverride: vid-mariadb-init
136 # A configMap of same name is created. It points to file that will be run after
137 # The DB has been created.
138 dbScriptConfigMap: '{{ include "common.release" . }}-vid-db-init'
139
Priyanka5fdca022018-03-13 12:53:06 +0000140# default number of instances
141replicaCount: 1
142
143nodeSelector: {}
144
145affinity: {}
146
147# probe configuration parameters
148liveness:
Mandeep Khindacef0e3c2018-09-21 03:59:17 +0000149 initialDelaySeconds: 120
Priyanka5fdca022018-03-13 12:53:06 +0000150 periodSeconds: 10
151 # necessary to disable liveness probe when setting breakpoints
152 # in debugger so K8s doesn't restart unresponsive container
153 enabled: true
154
155readiness:
156 initialDelaySeconds: 10
157 periodSeconds: 10
158
159service:
160 type: NodePort
161 name: vid
BorislavG1ffbd992018-04-24 07:56:27 +0000162 portName: vid
Piotr Daroszd9dc2192018-09-10 10:40:26 +0200163 externalPort: 8443
Piotr Daroszaca7aa52018-08-29 14:27:02 +0200164 internalPort: 8443
Piotr Daroszd9dc2192018-09-10 10:40:26 +0200165 nodePort: "00"
Ittay Stern94094702019-08-04 14:00:22 +0300166 externalHttpPort: 8080
167 internalHttpPort: 8080
Priyanka5fdca022018-03-13 12:53:06 +0000168
169ingress:
170 enabled: false
Lucjan Bryndzaa9a362f2019-08-14 09:53:04 +0200171 service:
Sylvain Desbureauxab116a52020-11-19 17:27:59 +0100172 - baseaddr: "vid.api"
173 name: "vid-http"
174 port: 8443
Lucjan Bryndzaa9a362f2019-08-14 09:53:04 +0200175 config:
Sylvain Desbureauxab116a52020-11-19 17:27:59 +0100176 ssl: "redirect"
Priyanka5fdca022018-03-13 12:53:06 +0000177
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000178# Resource Limit flavor -By Default using small
vaibhavjayasafb925d2018-09-19 09:33:41 +0000179flavor: small
180# Segregation for Different environment (Small and Large)
181resources:
182 small:
183 limits:
Mandeep Khindacef0e3c2018-09-21 03:59:17 +0000184 cpu: 200m
vaibhavjayasafb925d2018-09-19 09:33:41 +0000185 memory: 2Gi
186 requests:
Mandeep Khindacef0e3c2018-09-21 03:59:17 +0000187 cpu: 100m
Mandeep Khinda3c134252018-09-19 23:56:37 +0000188 memory: 1Gi
vaibhavjayasafb925d2018-09-19 09:33:41 +0000189 large:
190 limits:
Mandeep Khindacef0e3c2018-09-21 03:59:17 +0000191 cpu: 400m
vaibhavjayasafb925d2018-09-19 09:33:41 +0000192 memory: 4Gi
193 requests:
Mandeep Khindacef0e3c2018-09-21 03:59:17 +0000194 cpu: 200m
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000195 memory: 2Gi
Ittay Stern91751272019-05-05 12:11:47 +0300196 unlimited: {}