blob: 83e4350e7decf580f6139c935e3bc36ac1eda21f [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
26 useStrimziKafka: set-via-parent-chart-global-value
27 kafkaTopics:
28 acRuntimeTopic:
29 name: &acRuntimeTopic policy.clamp-runtime-acm
saul.gill7124a4b2021-09-09 12:02:49 +010030
31#################################################################
32# Secrets metaconfig
33#################################################################
34secrets:
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
saul.gill7124a4b2021-09-09 12:02:49 +010041 - 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
saul.gill7124a4b2021-09-09 12:02:49 +010048#################################################################
49# Application configuration defaults.
50#################################################################
51# application image
liamfallon81745872023-05-24 12:14:59 +010052image: onap/policy-clamp-runtime-acm:6.4.3
saul.gill7124a4b2021-09-09 12:02:49 +010053pullPolicy: Always
54
efiacor6910bbe2023-03-03 14:53:16 +000055componentName: &componentName policy-clamp-runtime-acm
56
saul.gill7124a4b2021-09-09 12:02:49 +010057# flag to enable debugging - application support required
58debugEnabled: false
59
60# application configuration
61config:
62 policyAppUserName: runtimeUser
63 policyAppUserPassword: none
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +010064# 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
efiacor6910bbe2023-03-03 14:53:16 +000070# Strimzi Kafka config
71kafkaUser:
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
81kafkaTopic:
82 - name: *acRuntimeTopic
83
saul.gill7124a4b2021-09-09 12:02:49 +010084db:
85 user: policy_user
86 password: policy_user
87 service:
88 name: policy-mariadb
89 internalPort: 3306
90
91# default number of instances
92replicaCount: 1
93
94nodeSelector: {}
95
96affinity: {}
97
98# probe configuration parameters
99liveness:
Andreas Geisslerf10c5552023-03-21 18:09:46 +0100100 initialDelaySeconds: 60
saul.gill7124a4b2021-09-09 12:02:49 +0100101 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
107readiness:
Andreas Geisslerf10c5552023-03-21 18:09:46 +0100108 initialDelaySeconds: 60
saul.gill7124a4b2021-09-09 12:02:49 +0100109 periodSeconds: 10
110 port: http-api
111
112service:
113 type: ClusterIP
efiacor6910bbe2023-03-03 14:53:16 +0000114 name: *componentName
saul.gill7124a4b2021-09-09 12:02:49 +0100115 ports:
116 - name: http-api
117 port: 6969
saul.gill7124a4b2021-09-09 12:02:49 +0100118
119ingress:
120 enabled: false
121
AndrewLamb7ef78ae2023-04-20 16:24:13 +0100122serviceMesh:
123 authorizationPolicy:
124 authorizedPrincipals:
125 - serviceAccount: message-router-read
126 - serviceAccount: policy-gui-read
127
saul.gill7124a4b2021-09-09 12:02:49 +0100128flavor: small
129resources:
130 small:
131 limits:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200132 cpu: 999
133 memory: 1Gi
saul.gill7124a4b2021-09-09 12:02:49 +0100134 requests:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200135 cpu: 0.5
136 memory: 1Gi
saul.gill7124a4b2021-09-09 12:02:49 +0100137 large:
138 limits:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200139 cpu: 999
140 memory: 2Gi
saul.gill7124a4b2021-09-09 12:02:49 +0100141 requests:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200142 cpu: 1
143 memory: 2Gi
saul.gill7124a4b2021-09-09 12:02:49 +0100144 unlimited: {}
145
146#Pods Service Account
147serviceAccount:
efiacor6910bbe2023-03-03 14:53:16 +0000148 nameOverride: *componentName
saul.gill7124a4b2021-09-09 12:02:49 +0100149 roles:
150 - read
efiacor6910bbe2023-03-03 14:53:16 +0000151
152readinessCheck:
153 wait_for:
154 - message-router
155
156wait_for_job_container:
157 containers:
saul.gillef208b02023-04-26 16:16:05 +0100158 - '{{ include "common.release" . }}-policy-galera-config'