blob: a623c352fbcc65106236a4cac38a26887e3879d7 [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
27 name: policy-mariadb
28 portName: mysql-policy
29 internalPort: 3306
mayankg2703ced85142018-03-20 05:42:53 +000030
31#################################################################
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020032# Secrets metaconfig
33#################################################################
34secrets:
35 - uid: db-root-password
36 name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password'
37 type: password
38 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "mariadbRootPasswordExternalSecret")) .) (hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "config" "mariadbRootPasswordExternalSecret"))}}'
39 password: '{{ (index .Values "mariadb-galera" "config" "mariadbRootPassword") }}'
40 policy: generate
41 - uid: db-secret
42 name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret'
43 type: basicAuth
44 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret"))}}'
45 login: '{{ index .Values "mariadb-galera" "config" "userName" }}'
46 password: '{{ index .Values "mariadb-galera" "config" "userPassword" }}'
47 passwordPolicy: generate
48
jhhd4258672020-08-09 12:08:08 -050049db: &dbSecretsHook
50 credsExternalSecret: *dbSecretName
51
52policy-api:
53 enabled: true
54 db: *dbSecretsHook
55policy-pap:
56 enabled: true
57 db: *dbSecretsHook
58policy-xacml-pdp:
59 enabled: true
60 db: *dbSecretsHook
61policy-apex-pdp:
62 enabled: true
63 db: *dbSecretsHook
64policy-drools-pdp:
65 enabled: true
66 db: *dbSecretsHook
67policy-distribution:
68 enabled: true
69 db: *dbSecretsHook
70policy-nexus:
jhhbf8d8a92020-09-10 14:01:49 -050071 enabled: false
jhhd4258672020-08-09 12:08:08 -050072
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020073#################################################################
jhhd4258672020-08-09 12:08:08 -050074# DB configuration defaults.
mayankg2703ced85142018-03-20 05:42:53 +000075#################################################################
jhhd4258672020-08-09 12:08:08 -050076
mayankg2703ced85142018-03-20 05:42:53 +000077repository: nexus3.onap.org:10001
kerenj3b697f62017-08-23 11:21:21 +000078pullPolicy: Always
Alexis de Talhouëtdf4db0b2017-12-11 08:36:25 -050079
Sylvain Desbureaux7c8c6862020-11-19 18:02:37 +010080mariadb:
81 image: mariadb:10.5.8
82
mayankg2703ced85142018-03-20 05:42:53 +000083subChartsOnly:
84 enabled: true
BorislavG5f3b6192018-03-25 18:12:38 +030085
mayankg2703ced85142018-03-20 05:42:53 +000086# flag to enable debugging - application support required
87debugEnabled: false
88
mayankg2703ced85142018-03-20 05:42:53 +000089# default number of instances
90replicaCount: 1
91
92nodeSelector: {}
93
94affinity: {}
95
96# probe configuration parameters
97liveness:
98 initialDelaySeconds: 10
99 periodSeconds: 10
100 # necessary to disable liveness probe when setting breakpoints
101 # in debugger so K8s doesn't restart unresponsive container
102 enabled: true
103
104readiness:
105 initialDelaySeconds: 10
106 periodSeconds: 10
107
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100108mariadb-galera:
109 # mariadb-galera.config and global.mariadb.config must be equals
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +0200110 config:
111 <<: *mariadbConfig
112 userName: policy_user
113 mariadbRootPasswordExternalSecret: *dbRootPassSecretName
114 userCredentialsExternalSecret: *dbSecretName
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100115 nameOverride: policy-mariadb
116 # mariadb-galera.service and global.mariadb.service must be equals
117 service: *mariadbService
118 replicaCount: 1
119 persistence:
120 enabled: true
121 mountSubPath: policy/maria/data
jhh63614942020-01-03 13:51:59 -0600122 externalConfig: |-
123 [mysqld]
124 lower_case_table_names = 1
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