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