1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018-2020 AT&T
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 #################################################################
17 # Global configuration defaults.
18 #################################################################
21 readinessRepository: oomk8s
22 readinessImage: readiness-check:2.0.2
23 loggingRepository: docker.elastic.co
24 loggingImage: beats/filebeat:5.5.0
25 envsubstImage: dibi/envsubst
26 ubuntuImage: ubuntu:16.04
38 # '&mariadbConfig' means we "store" the values for later use in the file
39 # with '*mariadbConfig' pointer.
40 config: &mariadbConfig
41 mysqlDatabase: policyadmin
42 service: &mariadbService
44 portName: mysql-policy
47 #################################################################
49 #################################################################
51 - uid: db-root-password
52 name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password'
54 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "mariadbRootPasswordExternalSecret")) .) (hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "config" "mariadbRootPasswordExternalSecret"))}}'
55 password: '{{ (index .Values "mariadb-galera" "config" "mariadbRootPassword") }}'
58 name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret'
60 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret"))}}'
61 login: '{{ index .Values "mariadb-galera" "config" "userName" }}'
62 password: '{{ index .Values "mariadb-galera" "config" "userPassword" }}'
63 passwordPolicy: generate
65 #################################################################
66 # Application configuration defaults.
67 #################################################################
69 repository: nexus3.onap.org:10001
70 image: onap/policy-pe:1.6.2
71 mariadb_image: library/mariadb:10
78 credsExternalSecret: *dbSecretName
100 # flag to enable debugging - application support required
103 # application configuration
105 preloadPolicies: false
108 # default number of instances
115 # probe configuration parameters
117 initialDelaySeconds: 10
119 # necessary to disable liveness probe when setting breakpoints
120 # in debugger so K8s doesn't restart unresponsive container
124 initialDelaySeconds: 10
142 # mariadb-galera.config and global.mariadb.config must be equals
145 userName: policy_user
146 mariadbRootPasswordExternalSecret: *dbRootPassSecretName
147 userCredentialsExternalSecret: *dbSecretName
148 nameOverride: policy-mariadb
149 # mariadb-galera.service and global.mariadb.service must be equals
150 service: *mariadbService
154 mountSubPath: policy/maria/data
157 lower_case_table_names = 1
159 # Resource Limit flavor -By Default using small
161 # Segregation for Different environment (Small and Large)