blob: d09895484cb05db6811e8c847810521ff60bbcc1 [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
69policy-nexus:
jhhbf8d8a92020-09-10 14:01:49 -050070 enabled: false
jhhd4258672020-08-09 12:08:08 -050071
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020072#################################################################
jhhd4258672020-08-09 12:08:08 -050073# DB configuration defaults.
mayankg2703ced85142018-03-20 05:42:53 +000074#################################################################
jhhd4258672020-08-09 12:08:08 -050075
mayankg2703ced85142018-03-20 05:42:53 +000076repository: nexus3.onap.org:10001
kerenj3b697f62017-08-23 11:21:21 +000077pullPolicy: Always
Alexis de Talhouëtdf4db0b2017-12-11 08:36:25 -050078
Sylvain Desbureaux7c8c6862020-11-19 18:02:37 +010079mariadb:
80 image: mariadb:10.5.8
81
mayankg2703ced85142018-03-20 05:42:53 +000082subChartsOnly:
83 enabled: true
BorislavG5f3b6192018-03-25 18:12:38 +030084
mayankg2703ced85142018-03-20 05:42:53 +000085# flag to enable debugging - application support required
86debugEnabled: false
87
mayankg2703ced85142018-03-20 05:42:53 +000088# default number of instances
89replicaCount: 1
90
91nodeSelector: {}
92
93affinity: {}
94
95# probe configuration parameters
96liveness:
97 initialDelaySeconds: 10
98 periodSeconds: 10
99 # necessary to disable liveness probe when setting breakpoints
100 # in debugger so K8s doesn't restart unresponsive container
101 enabled: true
102
103readiness:
104 initialDelaySeconds: 10
105 periodSeconds: 10
106
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100107mariadb-galera:
108 # mariadb-galera.config and global.mariadb.config must be equals
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100109 db:
110 user: policy_user
111 # password:
112 externalSecret: *dbSecretName
113 name: &mysqlDbName policyadmin
114 rootUser:
115 externalSecret: *dbRootPassSecretName
116 nameOverride: *policy-mariadb
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100117 # mariadb-galera.service and global.mariadb.service must be equals
118 service: *mariadbService
119 replicaCount: 1
120 persistence:
121 enabled: true
122 mountSubPath: policy/maria/data
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100123 serviceAccount:
124 nameOverride: *policy-mariadb
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100125
jhhbf8d8a92020-09-10 14:01:49 -0500126# Resource Limit flavor -By Default using small
127# Segregation for Different environment (small, large, or unlimited)
128flavor: small
129resources:
130 small:
131 limits:
132 cpu: 1
133 memory: 4Gi
134 requests:
135 cpu: 100m
136 memory: 1Gi
137 large:
138 limits:
139 cpu: 2
140 memory: 8Gi
141 requests:
142 cpu: 200m
143 memory: 2Gi
144 unlimited: {}
145