5478e5baa8ecf4dbad18ec7c4fb95af31280d493
[oom.git] / kubernetes / policy / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018-2020 AT&T Intellectual Property
3 # Modifications Copyright (C) 2021 Nordix Foundation.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 #################################################################
18 # Global configuration defaults.
19 #################################################################
20 global:
21   aafEnabled: true
22   mariadb:
23     # '&mariadbConfig' means we "store" the values for  later use in the file
24     # with '*mariadbConfig' pointer.
25     config: &mariadbConfig
26       mysqlDatabase: policyadmin
27     service: &mariadbService
28       name: &policy-mariadb policy-mariadb
29       internalPort: 3306
30
31 #################################################################
32 # Secrets metaconfig
33 #################################################################
34 secrets:
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" "rootUser" "externalSecret")) .) (hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "rootUser" "externalSecret"))}}'
39     password: '{{ (index .Values "mariadb-galera" "rootUser" "password") }}'
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" "db" "externalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
45     login: '{{ index .Values "mariadb-galera" "db" "user" }}'
46     password: '{{ index .Values "mariadb-galera" "db" "password" }}'
47     passwordPolicy: generate
48
49 db: &dbSecretsHook
50   credsExternalSecret: *dbSecretName
51
52 policy-api:
53   enabled: true
54   db: *dbSecretsHook
55 policy-pap:
56   enabled: true
57   db: *dbSecretsHook
58 policy-xacml-pdp:
59   enabled: true
60   db: *dbSecretsHook
61 policy-apex-pdp:
62   enabled: true
63   db: *dbSecretsHook
64 policy-drools-pdp:
65   enabled: true
66   db: *dbSecretsHook
67 policy-distribution:
68   enabled: true
69   db: *dbSecretsHook
70 policy-clamp-be:
71   enabled: true
72   db: *dbSecretsHook
73 policy-clamp-fe:
74   enabled: true
75 policy-nexus:
76   enabled: false
77
78 #################################################################
79 # DB configuration defaults.
80 #################################################################
81
82 repository: nexus3.onap.org:10001
83 pullPolicy: Always
84
85 mariadb:
86   image: mariadb:10.5.8
87
88 dbmigrator:
89   image: onap/policy-db-migrator:2.3.0
90   schema: policyadmin
91   policy_home: "/opt/app/policy"
92
93 subChartsOnly:
94   enabled: true
95
96 # flag to enable debugging - application support required
97 debugEnabled: false
98
99 # default number of instances
100 replicaCount: 1
101
102 nodeSelector: {}
103
104 affinity: {}
105
106 # probe configuration parameters
107 liveness:
108   initialDelaySeconds: 10
109   periodSeconds: 10
110   # necessary to disable liveness probe when setting breakpoints
111   # in debugger so K8s doesn't restart unresponsive container
112   enabled: true
113
114 readiness:
115   initialDelaySeconds: 10
116   periodSeconds: 10
117
118 mariadb-galera:
119   # mariadb-galera.config and global.mariadb.config must be equals
120   db:
121     user: policy_user
122     # password:
123     externalSecret: *dbSecretName
124     name: &mysqlDbName policyadmin
125   rootUser:
126     externalSecret: *dbRootPassSecretName
127   nameOverride: *policy-mariadb
128   # mariadb-galera.service and global.mariadb.service must be equals
129   service: *mariadbService
130   replicaCount: 1
131   persistence:
132     enabled: true
133     mountSubPath: policy/maria/data
134   serviceAccount:
135     nameOverride: *policy-mariadb
136
137 # Resource Limit flavor -By Default using small
138 # Segregation for Different environment (small, large, or unlimited)
139 flavor: small
140 resources:
141   small:
142     limits:
143       cpu: 1
144       memory: 4Gi
145     requests:
146       cpu: 100m
147       memory: 1Gi
148   large:
149     limits:
150       cpu: 2
151       memory: 8Gi
152     requests:
153       cpu: 200m
154       memory: 2Gi
155   unlimited: {}
156
157 #Pods Service Account
158 serviceAccount:
159   nameOverride: policy
160   roles:
161     - read