blob: 3a2b1f1f962dcee5c2ac4a4284250644164fbe6b [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
jhhd2b9ed82019-12-10 17:15:28 -06002# Modifications Copyright © 2018-2020 AT&T
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:
20 nodePortPrefix: 302
mayankg2703ced85142018-03-20 05:42:53 +000021 readinessRepository: oomk8s
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +010022 readinessImage: readiness-check:2.0.2
mayankg2703ced85142018-03-20 05:42:53 +000023 loggingRepository: docker.elastic.co
24 loggingImage: beats/filebeat:5.5.0
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020025 envsubstImage: dibi/envsubst
mayankg2703ced85142018-03-20 05:42:53 +000026 ubuntuImage: ubuntu:16.04
mayankg2703ced85142018-03-20 05:42:53 +000027 pdp:
28 nameOverride: pdp
29 pap:
k.kedron75da97d2020-03-10 16:09:06 +010030 nameOverride: pap
mayankg2703ced85142018-03-20 05:42:53 +000031 drools:
32 nameOverride: drools
33 brmwgw:
34 nameOverride: brmsgw
35 nexus:
36 nameOverride: nexus
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +010037 mariadb:
38 # '&mariadbConfig' means we "store" the values for later use in the file
39 # with '*mariadbConfig' pointer.
40 config: &mariadbConfig
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +010041 mysqlDatabase: policyadmin
42 service: &mariadbService
43 name: policy-mariadb
44 portName: mysql-policy
45 internalPort: 3306
mayankg2703ced85142018-03-20 05:42:53 +000046
47#################################################################
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020048# Secrets metaconfig
49#################################################################
50secrets:
51 - uid: db-root-password
52 name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password'
53 type: 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") }}'
56 policy: generate
57 - uid: db-secret
58 name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret'
59 type: basicAuth
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
64
65#################################################################
mayankg2703ced85142018-03-20 05:42:53 +000066# Application configuration defaults.
67#################################################################
68# application image
69repository: nexus3.onap.org:10001
jhh110657a2020-04-09 16:35:50 -050070image: onap/policy-pe:1.6.2
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +010071mariadb_image: library/mariadb:10
kerenj3b697f62017-08-23 11:21:21 +000072pullPolicy: Always
Alexis de Talhouëtdf4db0b2017-12-11 08:36:25 -050073
mayankg2703ced85142018-03-20 05:42:53 +000074subChartsOnly:
75 enabled: true
BorislavG5f3b6192018-03-25 18:12:38 +030076
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020077db: &dbSecretsHook
78 credsExternalSecret: *dbSecretName
79
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +010080pap:
81 nameOverride: pap
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020082 db: *dbSecretsHook
mayankg2703ced85142018-03-20 05:42:53 +000083pdp:
84 nameOverride: pdp
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020085 db: *dbSecretsHook
mayankg2703ced85142018-03-20 05:42:53 +000086drools:
87 nameOverride: drools
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020088 db: *dbSecretsHook
89brmsgw:
mayankg2703ced85142018-03-20 05:42:53 +000090 nameOverride: brmsgw
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020091 db: *dbSecretsHook
92policy-api:
93 db: *dbSecretsHook
94policy-xacml-pdp:
95 db: *dbSecretsHook
96
mayankg2703ced85142018-03-20 05:42:53 +000097nexus:
98 nameOverride: nexus
99
100# flag to enable debugging - application support required
101debugEnabled: false
102
103# application configuration
BorislavG5f3b6192018-03-25 18:12:38 +0300104config:
Jorge Hernandez823691f2018-04-30 19:53:29 -0500105 preloadPolicies: false
mayankg2703c7985462018-03-29 14:24:23 +0000106 pdpPort: 8081
mayankg2703ced85142018-03-20 05:42:53 +0000107
108# default number of instances
109replicaCount: 1
110
111nodeSelector: {}
112
113affinity: {}
114
115# probe configuration parameters
116liveness:
117 initialDelaySeconds: 10
118 periodSeconds: 10
119 # necessary to disable liveness probe when setting breakpoints
120 # in debugger so K8s doesn't restart unresponsive container
121 enabled: true
122
123readiness:
124 initialDelaySeconds: 10
125 periodSeconds: 10
126
127service:
128 type: NodePort
129 name: pap
BorislavG1ffbd992018-04-24 07:56:27 +0000130 portName: pap
jhh59ce22d2019-05-14 17:59:36 -0500131 internalPort: 8443
mayankg2703ced85142018-03-20 05:42:53 +0000132 externalPort: 8443
133 nodePort: 19
jhh59ce22d2019-05-14 17:59:36 -0500134 internalPort2: 9091
mayankg2703ced85142018-03-20 05:42:53 +0000135 externalPort2: 9091
136 nodePort2: 18
137
138ingress:
139 enabled: false
140
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100141mariadb-galera:
142 # mariadb-galera.config and global.mariadb.config must be equals
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +0200143 config:
144 <<: *mariadbConfig
145 userName: policy_user
146 mariadbRootPasswordExternalSecret: *dbRootPassSecretName
147 userCredentialsExternalSecret: *dbSecretName
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100148 nameOverride: policy-mariadb
149 # mariadb-galera.service and global.mariadb.service must be equals
150 service: *mariadbService
151 replicaCount: 1
152 persistence:
153 enabled: true
154 mountSubPath: policy/maria/data
jhh63614942020-01-03 13:51:59 -0600155 externalConfig: |-
156 [mysqld]
157 lower_case_table_names = 1
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100158
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000159# Resource Limit flavor -By Default using small
vaibhavjayas4136f5d2018-08-17 07:01:05 +0000160flavor: small
161# Segregation for Different environment (Small and Large)
162resources:
163 small:
164 limits:
165 cpu: 1
166 memory: 4Gi
167 requests:
168 cpu: 10m
169 memory: 1Gi
170 large:
171 limits:
172 cpu: 2
173 memory: 8Gi
174 requests:
175 cpu: 20m
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000176 memory: 2Gi
Jorge Hernandezd128b202019-02-14 13:52:59 -0600177 unlimited: {}