Merge "[LOG] Fix log charts to be compatibile with k8s 1.16+ and helm 3"
[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
28       portName: mysql-policy
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" "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
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-nexus:
71   enabled: false
72
73 #################################################################
74 # DB configuration defaults.
75 #################################################################
76
77 repository: nexus3.onap.org:10001
78 pullPolicy: Always
79
80 mariadb:
81   image: mariadb:10.5.8
82
83 subChartsOnly:
84   enabled: true
85
86 # flag to enable debugging - application support required
87 debugEnabled: false
88
89 # default number of instances
90 replicaCount: 1
91
92 nodeSelector: {}
93
94 affinity: {}
95
96 # probe configuration parameters
97 liveness:
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
104 readiness:
105   initialDelaySeconds: 10
106   periodSeconds: 10
107
108 mariadb-galera:
109   # mariadb-galera.config and global.mariadb.config must be equals
110   config:
111     <<: *mariadbConfig
112     userName: policy_user
113     mariadbRootPasswordExternalSecret: *dbRootPassSecretName
114     userCredentialsExternalSecret: *dbSecretName
115   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
122   externalConfig: |-
123     [mysqld]
124     lower_case_table_names = 1
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