blob: 407f5dd7244233f02381207f0acbb1af4322ea72 [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:
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
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
saul.gill99649272023-12-12 16:14:52 +000045image: onap/policy-clamp-ac-k8s-ppnt:7.1.0
rameshiyer2701b8cc02021-09-21 15:07:50 +010046pullPolicy: Always
47
efiacor6910bbe2023-03-03 14:53:16 +000048componentName: &componentName policy-clamp-ac-k8s-ppnt
49
rameshiyer2701b8cc02021-09-21 15:07:50 +010050# flag to enable debugging - application support required
51debugEnabled: false
52
53# application configuration
54restServer:
55 user: participantUser
56 password: zb!XztG34
57
58# default number of instances
59replicaCount: 1
60
61nodeSelector: {}
62
63affinity: {}
64# probe configuration parameters
65liveness:
Andreas Geisslerc50f0892023-06-14 14:21:31 +020066 initialDelaySeconds: 60
rameshiyer2701b8cc02021-09-21 15:07:50 +010067 periodSeconds: 10
68 # necessary to disable liveness probe when setting breakpoints
69 # in debugger so K8s doesn't restart unresponsive container
70 enabled: true
71 port: http-api
72
73readiness:
Andreas Geisslerc50f0892023-06-14 14:21:31 +020074 initialDelaySeconds: 60
rameshiyer2701b8cc02021-09-21 15:07:50 +010075 periodSeconds: 10
76 port: http-api
guillaume.lambert600dc982021-10-20 20:42:32 +020077
rameshiyer2701b8cc02021-09-21 15:07:50 +010078service:
79 type: ClusterIP
efiacor6910bbe2023-03-03 14:53:16 +000080 name: *componentName
rameshiyer2701b8cc02021-09-21 15:07:50 +010081 ports:
82 - name: http-api
83 port: 8083
rameshiyer2701b8cc02021-09-21 15:07:50 +010084
85ingress:
86 enabled: false
87
AndrewLamb7ef78ae2023-04-20 16:24:13 +010088serviceMesh:
89 authorizationPolicy:
90 authorizedPrincipals:
rameshiyer27bc8a6a42024-03-11 17:18:11 +000091 - serviceAccount: strimzi-kafka-read
AndrewLamb7ef78ae2023-04-20 16:24:13 +010092
rameshiyer2701b8cc02021-09-21 15:07:50 +010093flavor: small
94resources:
95 small:
96 limits:
Andreas Geissler47537432024-02-27 08:55:23 +010097 cpu: "1"
98 memory: "1Gi"
rameshiyer2701b8cc02021-09-21 15:07:50 +010099 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100100 cpu: "0.5"
101 memory: "1Gi"
rameshiyer2701b8cc02021-09-21 15:07:50 +0100102 large:
103 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100104 cpu: "2"
105 memory: "2Gi"
rameshiyer2701b8cc02021-09-21 15:07:50 +0100106 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100107 cpu: "1"
108 memory: "2Gi"
rameshiyer2701b8cc02021-09-21 15:07:50 +0100109 unlimited: {}
110
111#Pods Service Account
112serviceAccount:
efiacor6910bbe2023-03-03 14:53:16 +0000113 nameOverride: *componentName
rameshiyer2701b8cc02021-09-21 15:07:50 +0100114 roles:
115 - create
rameshiyer273c81b1d2022-07-18 16:54:51 +0100116# Update the config here for permitting repositories and protocols
117repoList:
118 helm:
119 repos:
120 -
121 repoName: kong
122 address: https://charts.konghq.com
123 -
124 repoName: bitnami
125 address: https://charts.bitnami.com/bitnami
126
127 protocols:
128 - http
129 - https
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100130
131config:
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100132# Any new property can be added in the env by setting in overrides in the format mentioned below
133# All the added properties must be in "key: value" format instead of yaml.
134# additional:
135# spring.config.max-size: 200
136# spring.config.min-size: 10
efiacor6910bbe2023-03-03 14:53:16 +0000137
138# Strimzi Kafka config
139kafkaUser:
140 authenticationType: scram-sha-512
141 acls:
142 - name: *componentName
143 type: group
144 operations: [Read]
145 - name: *acRuntimeTopic
146 type: topic
147 operations: [Read, Write]
148