blob: cc399d38dacb690b16854332c03691564942508a [file] [log] [blame]
saul.gill7124a4b2021-09-09 12:02:49 +01001# ============LICENSE_START=======================================================
efiacor6910bbe2023-03-03 14:53:16 +00002# Copyright (C) 2021-2023 Nordix Foundation.
saul.gill7124a4b2021-09-09 12:02:49 +01003# ================================================================================
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#################################################################
22global:
23 nodePortPrefixExt: 304
24 persistence: {}
efiacor6910bbe2023-03-03 14:53:16 +000025 #Strimzi Kafka properties
efiacor6910bbe2023-03-03 14:53:16 +000026 kafkaTopics:
27 acRuntimeTopic:
28 name: &acRuntimeTopic policy.clamp-runtime-acm
saul.gill7124a4b2021-09-09 12:02:49 +010029
30#################################################################
31# Secrets metaconfig
32#################################################################
33secrets:
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
saul.gill7124a4b2021-09-09 12:02:49 +010040 - 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
saul.gill7124a4b2021-09-09 12:02:49 +010047#################################################################
48# Application configuration defaults.
49#################################################################
50# application image
saul.gill99649272023-12-12 16:14:52 +000051image: onap/policy-clamp-runtime-acm:7.1.0
saul.gill7124a4b2021-09-09 12:02:49 +010052pullPolicy: Always
53
efiacor6910bbe2023-03-03 14:53:16 +000054componentName: &componentName policy-clamp-runtime-acm
55
saul.gill7124a4b2021-09-09 12:02:49 +010056# flag to enable debugging - application support required
57debugEnabled: false
58
59# application configuration
60config:
61 policyAppUserName: runtimeUser
62 policyAppUserPassword: none
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +010063# 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
efiacor6910bbe2023-03-03 14:53:16 +000069# Strimzi Kafka config
70kafkaUser:
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
80kafkaTopic:
81 - name: *acRuntimeTopic
82
saul.gill7124a4b2021-09-09 12:02:49 +010083db:
Andreas Geisslercfd84342023-08-16 17:18:49 +020084 user: policy-user
saul.gill7124a4b2021-09-09 12:02:49 +010085 password: policy_user
86 service:
87 name: policy-mariadb
88 internalPort: 3306
89
90# default number of instances
91replicaCount: 1
92
93nodeSelector: {}
94
95affinity: {}
96
97# probe configuration parameters
98liveness:
Andreas Geisslerf10c5552023-03-21 18:09:46 +010099 initialDelaySeconds: 60
saul.gill7124a4b2021-09-09 12:02:49 +0100100 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
106readiness:
Andreas Geisslerf10c5552023-03-21 18:09:46 +0100107 initialDelaySeconds: 60
saul.gill7124a4b2021-09-09 12:02:49 +0100108 periodSeconds: 10
109 port: http-api
110
111service:
112 type: ClusterIP
efiacor6910bbe2023-03-03 14:53:16 +0000113 name: *componentName
saul.gill7124a4b2021-09-09 12:02:49 +0100114 ports:
115 - name: http-api
116 port: 6969
saul.gill7124a4b2021-09-09 12:02:49 +0100117
118ingress:
119 enabled: false
120
AndrewLamb7ef78ae2023-04-20 16:24:13 +0100121serviceMesh:
122 authorizationPolicy:
123 authorizedPrincipals:
rameshiyer27bc8a6a42024-03-11 17:18:11 +0000124 - serviceAccount: strimzi-kafka-read
AndrewLamb7ef78ae2023-04-20 16:24:13 +0100125 - serviceAccount: policy-gui-read
126
saul.gill7124a4b2021-09-09 12:02:49 +0100127flavor: small
128resources:
129 small:
130 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100131 cpu: "1"
132 memory: "1Gi"
saul.gill7124a4b2021-09-09 12:02:49 +0100133 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100134 cpu: "0.5"
135 memory: "1Gi"
saul.gill7124a4b2021-09-09 12:02:49 +0100136 large:
137 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100138 cpu: "2"
139 memory: "2Gi"
saul.gill7124a4b2021-09-09 12:02:49 +0100140 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100141 cpu: "1"
142 memory: "2Gi"
saul.gill7124a4b2021-09-09 12:02:49 +0100143 unlimited: {}
144
145#Pods Service Account
146serviceAccount:
efiacor6910bbe2023-03-03 14:53:16 +0000147 nameOverride: *componentName
saul.gill7124a4b2021-09-09 12:02:49 +0100148 roles:
149 - read
efiacor6910bbe2023-03-03 14:53:16 +0000150
efiacor6910bbe2023-03-03 14:53:16 +0000151wait_for_job_container:
152 containers:
saul.gillef208b02023-04-26 16:16:05 +0100153 - '{{ include "common.release" . }}-policy-galera-config'
rameshiyer276b20c092023-10-06 10:48:28 +0100154
155customNaming:
156 toscaElementName: org.onap.policy.clamp.acm.AutomationCompositionElement
157 toscaCompositionName: org.onap.policy.clamp.acm.AutomationComposition