Merge "[POLICY] Add configurable acm parameters"
[oom.git] / kubernetes / policy / components / policy-clamp-runtime-acm / values.yaml
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2021-2023 Nordix Foundation.
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 #  SPDX-License-Identifier: Apache-2.0
17 #  ============LICENSE_END=========================================================
18
19 #################################################################
20 # Global configuration defaults.
21 #################################################################
22 global:
23   nodePortPrefixExt: 304
24   persistence: {}
25   #Strimzi Kafka properties
26   useStrimziKafka: set-via-parent-chart-global-value
27   kafkaTopics:
28     acRuntimeTopic:
29       name: &acRuntimeTopic policy.clamp-runtime-acm
30
31 #################################################################
32 # Secrets metaconfig
33 #################################################################
34 secrets:
35   - uid: db-secret
36     type: basicAuth
37     externalSecret: '{{ tpl (default "" .Values.db.credsExternalSecret) . }}'
38     login: '{{ .Values.db.user }}'
39     password: '{{ .Values.db.password }}'
40     passwordPolicy: required
41   - uid: runtime-secret
42     type: basicAuth
43     externalSecret: '{{ tpl (default "" .Values.config.appUserExternalSecret) . }}'
44     login: '{{ .Values.config.policyAppUserName }}'
45     password: '{{ .Values.config.policyAppUserPassword }}'
46     passwordPolicy: required
47
48 #################################################################
49 # Application configuration defaults.
50 #################################################################
51 # application image
52 image: onap/policy-clamp-runtime-acm:6.4.3
53 pullPolicy: Always
54
55 componentName: &componentName policy-clamp-runtime-acm
56
57 # flag to enable debugging - application support required
58 debugEnabled: false
59
60 # application configuration
61 config:
62   policyAppUserName: runtimeUser
63   policyAppUserPassword: none
64 # Any new property can be added in the env by setting in overrides in the format mentioned below
65 # All the added properties must be in "key: value" format instead of yaml.
66 # additional:
67 #   spring.config.max-size: 200
68 #   spring.config.min-size: 10
69
70 # Strimzi Kafka config
71 kafkaUser:
72   authenticationType: scram-sha-512
73   acls:
74     - name: *componentName
75       type: group
76       operations: [Read]
77     - name: *acRuntimeTopic
78       type: topic
79       operations: [Read, Write]
80
81 kafkaTopic:
82   - name: *acRuntimeTopic
83
84 db:
85   user: policy-user
86   password: policy_user
87   service:
88     name: policy-mariadb
89     internalPort: 3306
90
91 # default number of instances
92 replicaCount: 1
93
94 nodeSelector: {}
95
96 affinity: {}
97
98 # probe configuration parameters
99 liveness:
100   initialDelaySeconds: 60
101   periodSeconds: 10
102   # necessary to disable liveness probe when setting breakpoints
103   # in debugger so K8s doesn't restart unresponsive container
104   enabled: true
105   port: http-api
106
107 readiness:
108   initialDelaySeconds: 60
109   periodSeconds: 10
110   port: http-api
111
112 service:
113   type: ClusterIP
114   name: *componentName
115   ports:
116   - name: http-api
117     port: 6969
118
119 ingress:
120   enabled: false
121
122 serviceMesh:
123   authorizationPolicy:
124     authorizedPrincipals:
125       - serviceAccount: message-router-read
126       - serviceAccount: policy-gui-read
127
128 flavor: small
129 resources:
130   small:
131     limits:
132       cpu: 1
133       memory: 1Gi
134     requests:
135       cpu: 0.5
136       memory: 1Gi
137   large:
138     limits:
139       cpu: 2
140       memory: 2Gi
141     requests:
142       cpu: 1
143       memory: 2Gi
144   unlimited: {}
145
146 #Pods Service Account
147 serviceAccount:
148   nameOverride: *componentName
149   roles:
150     - read
151
152 readinessCheck:
153   wait_for:
154     - message-router
155
156 wait_for_job_container:
157   containers:
158     - '{{ include "common.release" . }}-policy-galera-config'
159
160 customNaming:
161   toscaElementName: org.onap.policy.clamp.acm.AutomationCompositionElement
162   toscaCompositionName: org.onap.policy.clamp.acm.AutomationComposition