blob: faa9e6bde8bece1af80146f59378de76bb0e5030 [file] [log] [blame]
jmac065e2ce2018-03-29 01:18:02 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
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#################################################################
16# Global configuration defaults.
17#################################################################
18global:
19 nodePortPrefix: 302
jmac065e2ce2018-03-29 01:18:02 +000020 readinessRepository: oomk8s
Mahendra Raghuwanshib76cb282019-04-09 10:13:07 +000021 readinessImage: readiness-check:2.0.2
jmac065e2ce2018-03-29 01:18:02 +000022 loggingRepository: docker.elastic.co
23 loggingImage: beats/filebeat:5.5.0
Krzysztof Opasiak71c80982020-02-22 02:12:02 +010024 # envsusbt
25 envsubstImage: dibi/envsubst
26
27 mariadbGalera:
28 #This flag allows SO to instantiate its own mariadb-galera cluster
29 #If shared instance is used, this chart assumes that DB already exists
30 localCluster: false
31 service: mariadb-galera
32 internalPort: 3306
33 nameOverride: mariadb-galera
34
35#################################################################
36# Secrets metaconfig
37#################################################################
38secrets:
39 - uid: db-root-password
40 type: password
41 externalSecret: '{{ .Values.global.mariadbGalera.localCluster | ternary (default (include "common.mariadb.secret.rootPassSecretName" (dict "dot" . "chartName" (index .Values "mariadb-galera" "nameOverride"))) (index .Values "mariadb-galera" "config" "mariadbRootPasswordExternalSecret")) (include "common.mariadb.secret.rootPassSecretName" (dict "dot" . "chartName" .Values.global.mariadbGalera.nameOverride)) }}'
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010042 password: '{{ index .Values "mariadb-galera" "config" "mariadbRootPassword" }}'
Krzysztof Opasiak71c80982020-02-22 02:12:02 +010043 passwordPolicy: required
44 - uid: db-secret
45 name: &dbSecretName '{{ include "common.release" . }}-sdnc-portal-db-secret'
46 type: basicAuth
47 # This is a nasty trick that allows you override this secret using external one
48 # with the same field that is used to pass this to subchart
49 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret")) .) (hasSuffix "sdnc-portal-db-secret" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret"))}}'
50 login: '{{ index .Values "mariadb-galera" "config" "userName" }}'
51 password: '{{ index .Values "mariadb-galera" "config" "userPassword" }}'
52 passwordPolicy: required
53 - uid: odl-creds
54 type: basicAuth
Krzysztof Opasiak88e44bf2020-02-26 02:23:23 +010055 externalSecret: '{{ tpl (default "" .Values.config.odlCredsExternalSecret) . }}'
Krzysztof Opasiak71c80982020-02-22 02:12:02 +010056 login: '{{ .Values.config.odlUser }}'
57 password: '{{ .Values.config.odlPassword }}'
58 passwordPolicy: required
59 - uid: fabric-db-creds
60 type: basicAuth
Krzysztof Opasiak88e44bf2020-02-26 02:23:23 +010061 externalSecret: '{{ tpl (default "" .Values.config.odlCredsExternalSecret) . }}'
Krzysztof Opasiak71c80982020-02-22 02:12:02 +010062 login: '{{ .Values.config.dbFabricUser }}'
63 password: '{{ .Values.config.dbFabricPassword }}'
64 passwordPolicy: required
65 - uid: keystore-password
66 type: password
Krzysztof Opasiak88e44bf2020-02-26 02:23:23 +010067 externalSecret: '{{ tpl (default "" .Values.config.KeyStorePwdExternalSecret) . }}'
Krzysztof Opasiak71c80982020-02-22 02:12:02 +010068 password: '{{ .Values.config.keystorePwd }}'
69 passwordPolicy: required
jmac065e2ce2018-03-29 01:18:02 +000070
71#################################################################
72# Application configuration defaults.
73#################################################################
74# application image
75repository: nexus3.onap.org:10001
Dan Timoneyd0f6ad72020-03-06 11:58:23 -050076image: onap/admportal-sdnc-image:1.8.0
jmac065e2ce2018-03-29 01:18:02 +000077config:
Krzysztof Opasiak71c80982020-02-22 02:12:02 +010078 dbFabricDB: mysql
79 dbFabricUser: admin
80 dbFabricPassword: admin
81 # dbFabricDBCredsExternalSecret: some secret
jmac065e2ce2018-03-29 01:18:02 +000082 sdncChartName: sdnc
83 configDir: /opt/onap/sdnc/data/properties
Mahendra Raghuwanshib76cb282019-04-09 10:13:07 +000084 storesDir: /opt/onap/sdnc/data/stores
Krzysztof Opasiak71c80982020-02-22 02:12:02 +010085 odlUser: admin
jmaca68f4cb2018-05-10 22:44:19 +000086 odlPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
Krzysztof Opasiak71c80982020-02-22 02:12:02 +010087 # odlCredsExternalSecret: some secret
Timoney, Dan (dt5972)d195e2a2019-09-30 15:27:54 -040088 keystorePwd: ff^G9D]yf&r}Ktum@BJ0YB?N
Krzysztof Opasiak71c80982020-02-22 02:12:02 +010089 # keystorePwdExternalSecret: some secret
90
91mariadb-galera:
92 config:
93 userCredentialsExternalSecret: *dbSecretName
94 userName: sdnctl
95 userPassword: gamma
96 mysqlDatabase: sdnctl
97 nameOverride: sdnc-portal-galera
98 service:
99 name: sdnc-portal-galera
100 portName: sdnc-portal-galera
Mahendra Raghuwanshib76cb282019-04-09 10:13:07 +0000101 internalPort: 3306
Krzysztof Opasiak71c80982020-02-22 02:12:02 +0100102 replicaCount: 1
103 persistence:
104 enabled: true
105 mountSubPath: sdnc-portal/maria/data
jmac065e2ce2018-03-29 01:18:02 +0000106
107# default number of instances
Timoney, Dan (dt5972)e2073b42019-10-23 10:26:18 -0400108replicaCount: 0
jmac065e2ce2018-03-29 01:18:02 +0000109
110nodeSelector: {}
111
112affinity: {}
113
114# probe configuration parameters
115liveness:
BorislavG8d9337a2018-06-13 14:56:54 +0000116 initialDelaySeconds: 180
jmac065e2ce2018-03-29 01:18:02 +0000117 periodSeconds: 10
118 # necessary to disable liveness probe when setting breakpoints
119 # in debugger so K8s doesn't restart unresponsive container
120 enabled: true
121
122readiness:
jmaca68f4cb2018-05-10 22:44:19 +0000123 initialDelaySeconds: 60
jmac065e2ce2018-03-29 01:18:02 +0000124 periodSeconds: 10
125
126service:
127 type: NodePort
128 name: sdnc-portal
BorislavG1ffbd992018-04-24 07:56:27 +0000129 portName: sdnc-portal
Timoney, Dan (dt5972)4d01bc32019-09-05 09:43:15 -0400130 internalPort: 8443
131 externalPort: 8443
jmac065e2ce2018-03-29 01:18:02 +0000132 nodePort: "01"
133
134ingress:
135 enabled: false
136
toshrajbhardwaj72b5f0f2018-09-13 02:45:22 +0000137#Resource limit flavor -By default using small
138flavor: small
139#segregation for different environment (small and large)
140
141resources:
Mandeep Khindade045712018-09-19 18:11:57 +0000142 small:
143 limits:
144 cpu: 1
145 memory: 1Gi
146 requests:
Mandeep Khinda3c134252018-09-19 23:56:37 +0000147 cpu: 0.5
148 memory: 500Mi
Mandeep Khindade045712018-09-19 18:11:57 +0000149 large:
150 limits:
151 cpu: 2
152 memory: 2Gi
153 requests:
Mandeep Khinda3c134252018-09-19 23:56:37 +0000154 cpu: 1
155 memory: 1Gi
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000156 unlimited: {}