Merge "[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-clamp-be:
70   enabled: true
71   db: *dbSecretsHook
72 policy-clamp-fe:
73   enabled: true
74 policy-nexus:
75   enabled: false
76
77 #################################################################
78 # DB configuration defaults.
79 #################################################################
80
81 repository: nexus3.onap.org:10001
82 pullPolicy: Always
83
84 mariadb:
85   image: mariadb:10.5.8
86
87 subChartsOnly:
88   enabled: true
89
90 # flag to enable debugging - application support required
91 debugEnabled: false
92
93 # default number of instances
94 replicaCount: 1
95
96 nodeSelector: {}
97
98 affinity: {}
99
100 # probe configuration parameters
101 liveness:
102   initialDelaySeconds: 10
103   periodSeconds: 10
104   # necessary to disable liveness probe when setting breakpoints
105   # in debugger so K8s doesn't restart unresponsive container
106   enabled: true
107
108 readiness:
109   initialDelaySeconds: 10
110   periodSeconds: 10
111
112 mariadb-galera:
113   # mariadb-galera.config and global.mariadb.config must be equals
114   db:
115     user: policy_user
116     # password:
117     externalSecret: *dbSecretName
118     name: &mysqlDbName policyadmin
119   rootUser:
120     externalSecret: *dbRootPassSecretName
121   nameOverride: *policy-mariadb
122   # mariadb-galera.service and global.mariadb.service must be equals
123   service: *mariadbService
124   replicaCount: 1
125   persistence:
126     enabled: true
127     mountSubPath: policy/maria/data
128   serviceAccount:
129     nameOverride: *policy-mariadb
130
131 # Resource Limit flavor -By Default using small
132 # Segregation for Different environment (small, large, or unlimited)
133 flavor: small
134 resources:
135   small:
136     limits:
137       cpu: 1
138       memory: 4Gi
139     requests:
140       cpu: 100m
141       memory: 1Gi
142   large:
143     limits:
144       cpu: 2
145       memory: 8Gi
146     requests:
147       cpu: 200m
148       memory: 2Gi
149   unlimited: {}
150