blob: 0ec4be4726a4de717569ad32aff6713e2b4e9ee9 [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
saul.gill5e611402023-03-02 11:49:23 +000052image: onap/policy-clamp-runtime-acm:6.4.1
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
122flavor: small
123resources:
124 small:
125 limits:
126 cpu: 1
127 memory: 4Gi
128 requests:
129 cpu: 100m
130 memory: 1Gi
131 large:
132 limits:
133 cpu: 2
134 memory: 8Gi
135 requests:
136 cpu: 200m
137 memory: 2Gi
138 unlimited: {}
139
140#Pods Service Account
141serviceAccount:
efiacor6910bbe2023-03-03 14:53:16 +0000142 nameOverride: *componentName
saul.gill7124a4b2021-09-09 12:02:49 +0100143 roles:
144 - read
efiacor6910bbe2023-03-03 14:53:16 +0000145
146readinessCheck:
147 wait_for:
148 - message-router
149
150wait_for_job_container:
151 containers:
152 - '{{ include "common.release" . }}-policy-galera-config'