[DCAEGEN2] Update cm-container and consul-loader
[oom.git] / kubernetes / policy / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018-2020 AT&T Intellectual Property
3 #
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
16 #################################################################
17 # Global configuration defaults.
18 #################################################################
19 global:
20   aafEnabled: true
21   mariadb:
22     # '&mariadbConfig' means we "store" the values for  later use in the file
23     # with '*mariadbConfig' pointer.
24     config: &mariadbConfig
25       mysqlDatabase: policyadmin
26     service: &mariadbService
27       name: &policy-mariadb policy-mariadb
28       internalPort: 3306
29
30 #################################################################
31 # Secrets metaconfig
32 #################################################################
33 secrets:
34   - uid: db-root-password
35     name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password'
36     type: password
37     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") }}'
39     policy: generate
40   - uid: db-secret
41     name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret'
42     type: basicAuth
43     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" }}'
46     passwordPolicy: generate
47
48 db: &dbSecretsHook
49   credsExternalSecret: *dbSecretName
50
51 policy-api:
52   enabled: true
53   db: *dbSecretsHook
54 policy-pap:
55   enabled: true
56   db: *dbSecretsHook
57 policy-xacml-pdp:
58   enabled: true
59   db: *dbSecretsHook
60 policy-apex-pdp:
61   enabled: true
62   db: *dbSecretsHook
63 policy-drools-pdp:
64   enabled: true
65   db: *dbSecretsHook
66 policy-distribution:
67   enabled: true
68   db: *dbSecretsHook
69 policy-nexus:
70   enabled: false
71
72 #################################################################
73 # DB configuration defaults.
74 #################################################################
75
76 repository: nexus3.onap.org:10001
77 pullPolicy: Always
78
79 mariadb:
80   image: mariadb:10.5.8
81
82 subChartsOnly:
83   enabled: true
84
85 # flag to enable debugging - application support required
86 debugEnabled: false
87
88 # default number of instances
89 replicaCount: 1
90
91 nodeSelector: {}
92
93 affinity: {}
94
95 # probe configuration parameters
96 liveness:
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
103 readiness:
104   initialDelaySeconds: 10
105   periodSeconds: 10
106
107 mariadb-galera:
108   # mariadb-galera.config and global.mariadb.config must be equals
109   db:
110     user: policy_user
111     # password:
112     externalSecret: *dbSecretName
113     name: &mysqlDbName policyadmin
114   rootUser:
115     externalSecret: *dbRootPassSecretName
116   nameOverride: *policy-mariadb
117   # 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
123   serviceAccount:
124     nameOverride: *policy-mariadb
125
126 # Resource Limit flavor -By Default using small
127 # Segregation for Different environment (small, large, or unlimited)
128 flavor: small
129 resources:
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