blob: 4842503fcc8c59143094c65b330f57855168a00f [file] [log] [blame]
rameshiyer2701b8cc02021-09-21 15:07:50 +01001# ============LICENSE_START=======================================================
efiacor6910bbe2023-03-03 14:53:16 +00002# Copyright (C) 2021-2023 Nordix Foundation.
rameshiyer2701b8cc02021-09-21 15:07:50 +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:
rameshiyer2701b8cc02021-09-21 15:07:50 +010023 persistence: {}
efiacor6910bbe2023-03-03 14:53:16 +000024 #Strimzi Kafka properties
25 useStrimziKafka: set-via-parent-chart-global-value
26 kafkaTopics:
27 acRuntimeTopic:
28 name: &acRuntimeTopic policy.clamp-runtime-acm
rameshiyer2701b8cc02021-09-21 15:07:50 +010029
30#################################################################
31# Secrets metaconfig
32#################################################################
33secrets:
34 - uid: restserver-secret
35 type: basicAuth
36 externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}'
37 login: '{{ .Values.restServer.user }}'
38 password: '{{ .Values.restServer.password }}'
39 passwordPolicy: required
rameshiyer2701b8cc02021-09-21 15:07:50 +010040
41#################################################################
42# Application configuration defaults.
43#################################################################
44# application image
liamfallon81745872023-05-24 12:14:59 +010045image: onap/policy-clamp-ac-http-ppnt:6.4.3
rameshiyer2701b8cc02021-09-21 15:07:50 +010046pullPolicy: Always
47
efiacor6910bbe2023-03-03 14:53:16 +000048componentName: &componentName policy-clamp-ac-http-ppnt
49
rameshiyer2701b8cc02021-09-21 15:07:50 +010050# application configuration
51restServer:
52 user: participantUser
53 password: zb!XztG34
54
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000055# flag to enable debugging - application support required
56debugEnabled: false
57
rameshiyer2701b8cc02021-09-21 15:07:50 +010058# default number of instances
59replicaCount: 1
60
61nodeSelector: {}
62
63affinity: {}
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000064ingress:
65 enabled: false
66
AndrewLamb7ef78ae2023-04-20 16:24:13 +010067serviceMesh:
68 authorizationPolicy:
69 authorizedPrincipals:
70 - serviceAccount: message-router-read
71
rameshiyer2701b8cc02021-09-21 15:07:50 +010072# probe configuration parameters
73liveness:
Andreas Geisslerc50f0892023-06-14 14:21:31 +020074 initialDelaySeconds: 60
rameshiyer2701b8cc02021-09-21 15:07:50 +010075 periodSeconds: 10
76 # necessary to disable liveness probe when setting breakpoints
77 # in debugger so K8s doesn't restart unresponsive container
78 enabled: true
79 port: http-api
80
81readiness:
Andreas Geisslerc50f0892023-06-14 14:21:31 +020082 initialDelaySeconds: 60
rameshiyer2701b8cc02021-09-21 15:07:50 +010083 periodSeconds: 10
84 port: http-api
guillaume.lambert600dc982021-10-20 20:42:32 +020085
rameshiyer2701b8cc02021-09-21 15:07:50 +010086service:
87 type: ClusterIP
efiacor6910bbe2023-03-03 14:53:16 +000088 name: *componentName
rameshiyer2701b8cc02021-09-21 15:07:50 +010089 ports:
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000090 - name: http-api
91 port: 8084
rameshiyer2701b8cc02021-09-21 15:07:50 +010092
93flavor: small
94resources:
95 small:
96 limits:
97 cpu: 1
98 memory: 4Gi
99 requests:
100 cpu: 100m
101 memory: 1Gi
102 large:
103 limits:
104 cpu: 2
105 memory: 8Gi
106 requests:
107 cpu: 200m
108 memory: 2Gi
109 unlimited: {}
rameshiyer2701b8cc02021-09-21 15:07:50 +0100110#Pods Service Account
111serviceAccount:
efiacor6910bbe2023-03-03 14:53:16 +0000112 nameOverride: *componentName
rameshiyer2701b8cc02021-09-21 15:07:50 +0100113 roles:
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000114 - read
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100115
116config:
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100117# Any new property can be added in the env by setting in overrides in the format mentioned below
118# All the added properties must be in "key: value" format instead of yaml.
119# additional:
120# spring.config.max-size: 200
121# spring.config.min-size: 10
122
efiacor6910bbe2023-03-03 14:53:16 +0000123# Strimzi Kafka config
124kafkaUser:
125 authenticationType: scram-sha-512
126 acls:
127 - name: *componentName
128 type: group
129 operations: [Read]
130 - name: *acRuntimeTopic
131 type: topic
132 operations: [Read, Write]
133
134readinessCheck:
135 wait_for:
136 - message-router