blob: 678772c481d0b37069ae02774e10839847b06151 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
jhhd4258672020-08-09 12:08:08 -05002# Modifications Copyright © 2018-2020 AT&T Intellectual Property
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00003#
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
mayankg2703ced85142018-03-20 05:42:53 +000016#################################################################
17# Global configuration defaults.
18#################################################################
19global:
jhhd4258672020-08-09 12:08:08 -050020 aafEnabled: true
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +010021 mariadb:
22 # '&mariadbConfig' means we "store" the values for later use in the file
23 # with '*mariadbConfig' pointer.
24 config: &mariadbConfig
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +010025 mysqlDatabase: policyadmin
26 service: &mariadbService
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010027 name: &policy-mariadb policy-mariadb
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +010028 internalPort: 3306
mayankg2703ced85142018-03-20 05:42:53 +000029
30#################################################################
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020031# Secrets metaconfig
32#################################################################
33secrets:
34 - uid: db-root-password
35 name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password'
36 type: password
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010037 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "rootUser" "externalSecret")) .) (hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "rootUser" "externalSecret"))}}'
38 password: '{{ (index .Values "mariadb-galera" "rootUser" "password") }}'
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020039 policy: generate
40 - uid: db-secret
41 name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret'
42 type: basicAuth
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010043 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
44 login: '{{ index .Values "mariadb-galera" "db" "user" }}'
45 password: '{{ index .Values "mariadb-galera" "db" "password" }}'
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020046 passwordPolicy: generate
47
jhhd4258672020-08-09 12:08:08 -050048db: &dbSecretsHook
49 credsExternalSecret: *dbSecretName
50
51policy-api:
52 enabled: true
53 db: *dbSecretsHook
54policy-pap:
55 enabled: true
56 db: *dbSecretsHook
57policy-xacml-pdp:
58 enabled: true
59 db: *dbSecretsHook
60policy-apex-pdp:
61 enabled: true
62 db: *dbSecretsHook
63policy-drools-pdp:
64 enabled: true
65 db: *dbSecretsHook
66policy-distribution:
67 enabled: true
68 db: *dbSecretsHook
sebdet5c449882021-01-13 11:35:56 +010069policy-clamp-be:
70 enabled: true
71 db: *dbSecretsHook
72policy-clamp-fe:
73 enabled: true
jhhd4258672020-08-09 12:08:08 -050074policy-nexus:
jhhbf8d8a92020-09-10 14:01:49 -050075 enabled: false
jhhd4258672020-08-09 12:08:08 -050076
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020077#################################################################
jhhd4258672020-08-09 12:08:08 -050078# DB configuration defaults.
mayankg2703ced85142018-03-20 05:42:53 +000079#################################################################
jhhd4258672020-08-09 12:08:08 -050080
mayankg2703ced85142018-03-20 05:42:53 +000081repository: nexus3.onap.org:10001
kerenj3b697f62017-08-23 11:21:21 +000082pullPolicy: Always
Alexis de Talhouëtdf4db0b2017-12-11 08:36:25 -050083
Sylvain Desbureaux7c8c6862020-11-19 18:02:37 +010084mariadb:
85 image: mariadb:10.5.8
86
mayankg2703ced85142018-03-20 05:42:53 +000087subChartsOnly:
88 enabled: true
BorislavG5f3b6192018-03-25 18:12:38 +030089
mayankg2703ced85142018-03-20 05:42:53 +000090# flag to enable debugging - application support required
91debugEnabled: false
92
mayankg2703ced85142018-03-20 05:42:53 +000093# default number of instances
94replicaCount: 1
95
96nodeSelector: {}
97
98affinity: {}
99
100# probe configuration parameters
101liveness:
102 initialDelaySeconds: 10
103 periodSeconds: 10
104 # necessary to disable liveness probe when setting breakpoints
105 # in debugger so K8s doesn't restart unresponsive container
106 enabled: true
107
108readiness:
109 initialDelaySeconds: 10
110 periodSeconds: 10
111
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100112mariadb-galera:
113 # mariadb-galera.config and global.mariadb.config must be equals
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100114 db:
115 user: policy_user
116 # password:
117 externalSecret: *dbSecretName
118 name: &mysqlDbName policyadmin
119 rootUser:
120 externalSecret: *dbRootPassSecretName
121 nameOverride: *policy-mariadb
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100122 # mariadb-galera.service and global.mariadb.service must be equals
123 service: *mariadbService
124 replicaCount: 1
125 persistence:
126 enabled: true
127 mountSubPath: policy/maria/data
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100128 serviceAccount:
129 nameOverride: *policy-mariadb
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100130
jhhbf8d8a92020-09-10 14:01:49 -0500131# Resource Limit flavor -By Default using small
132# Segregation for Different environment (small, large, or unlimited)
133flavor: small
134resources:
135 small:
136 limits:
137 cpu: 1
138 memory: 4Gi
139 requests:
140 cpu: 100m
141 memory: 1Gi
142 large:
143 limits:
144 cpu: 2
145 memory: 8Gi
146 requests:
147 cpu: 200m
148 memory: 2Gi
149 unlimited: {}
150