blob: b76369901952a24d45cb51cd77de075612726dea [file] [log] [blame]
rameshiyer27ff176652021-09-21 15:19:05 +01001# ============LICENSE_START=======================================================
efiacor6910bbe2023-03-03 14:53:16 +00002# Copyright (C) 2021-2023 Nordix Foundation.
rameshiyer27ff176652021-09-21 15:19:05 +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 persistence: {}
efiacor6910bbe2023-03-03 14:53:16 +000024 #Strimzi Kafka properties
efiacor6910bbe2023-03-03 14:53:16 +000025 kafkaTopics:
26 acRuntimeTopic:
27 name: &acRuntimeTopic policy.clamp-runtime-acm
rameshiyer27ff176652021-09-21 15:19:05 +010028
29#################################################################
30# Secrets metaconfig
31#################################################################
32secrets:
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000033 - uid: restserver-secret
34 type: basicAuth
35 externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}'
36 login: '{{ .Values.restServer.participantppnt.user }}'
37 password: '{{ .Values.restServer.participantppnt.password }}'
38 passwordPolicy: required
rameshiyer27ff176652021-09-21 15:19:05 +010039 - uid: api-secret
40 type: basicAuth
41 externalSecret: '{{ tpl (default "" .Values.restServer.apiUserExternalSecret) . }}'
42 login: '{{ .Values.restServer.api.user }}'
43 password: '{{ .Values.restServer.api.password }}'
44 passwordPolicy: required
45 - uid: pap-secret
46 type: basicAuth
47 externalSecret: '{{ tpl (default "" .Values.restServer.papUserExternalSecret) . }}'
48 login: '{{ .Values.restServer.pap.user }}'
49 password: '{{ .Values.restServer.pap.password }}'
50 passwordPolicy: required
rameshiyer27ff176652021-09-21 15:19:05 +010051
52#################################################################
53# Application configuration defaults.
54#################################################################
55# application image
saul.gill99649272023-12-12 16:14:52 +000056image: onap/policy-clamp-ac-pf-ppnt:7.1.0
rameshiyer27ff176652021-09-21 15:19:05 +010057pullPolicy: Always
58
efiacor6910bbe2023-03-03 14:53:16 +000059componentName: &componentName policy-clamp-ac-pf-ppnt
60
rameshiyer27ff176652021-09-21 15:19:05 +010061# flag to enable debugging - application support required
62debugEnabled: false
63
64# default number of instances
65replicaCount: 1
66
67# application configuration
68restServer:
69 api:
adheli.tavaresf3656cd2021-11-10 14:54:32 +000070 user: policyadmin
rameshiyer27ff176652021-09-21 15:19:05 +010071 password: none
72 pap:
adheli.tavaresf3656cd2021-11-10 14:54:32 +000073 user: policyadmin
rameshiyer27ff176652021-09-21 15:19:05 +010074 password: none
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000075 participantppnt:
76 user: participantUser
77 password: none
rameshiyer27ff176652021-09-21 15:19:05 +010078
79nodeSelector: {}
80
81affinity: {}
efiacor6910bbe2023-03-03 14:53:16 +000082
rameshiyer27ff176652021-09-21 15:19:05 +010083ingress:
84 enabled: false
85
AndrewLamb7ef78ae2023-04-20 16:24:13 +010086serviceMesh:
87 authorizationPolicy:
88 authorizedPrincipals:
rameshiyer27bc8a6a42024-03-11 17:18:11 +000089 - serviceAccount: strimzi-kafka-read
AndrewLamb7ef78ae2023-04-20 16:24:13 +010090
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000091# probe configuration parameters
92liveness:
Andreas Geisslerc50f0892023-06-14 14:21:31 +020093 initialDelaySeconds: 60
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000094 periodSeconds: 10
95 # necessary to disable liveness probe when setting breakpoints
96 # in debugger so K8s doesn't restart unresponsive container
97 enabled: true
98 port: http-api
99
100readiness:
Andreas Geisslerc50f0892023-06-14 14:21:31 +0200101 initialDelaySeconds: 60
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000102 periodSeconds: 10
103 port: http-api
104
105service:
106 type: ClusterIP
efiacor6910bbe2023-03-03 14:53:16 +0000107 name: *componentName
Andreas Geisslerf10c5552023-03-21 18:09:46 +0100108 internalPort: 8085
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000109 ports:
110 - name: http-api
111 port: 8085
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000112
rameshiyer27ff176652021-09-21 15:19:05 +0100113flavor: small
114resources:
115 small:
116 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100117 cpu: "1"
118 memory: "1Gi"
rameshiyer27ff176652021-09-21 15:19:05 +0100119 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100120 cpu: "0.5"
121 memory: "1Gi"
rameshiyer27ff176652021-09-21 15:19:05 +0100122 large:
123 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100124 cpu: "2"
125 memory: "2Gi"
rameshiyer27ff176652021-09-21 15:19:05 +0100126 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100127 cpu: "1"
128 memory: "2Gi"
rameshiyer27ff176652021-09-21 15:19:05 +0100129 unlimited: {}
130#Pods Service Account
131serviceAccount:
efiacor6910bbe2023-03-03 14:53:16 +0000132 nameOverride: *componentName
rameshiyer27ff176652021-09-21 15:19:05 +0100133 roles:
134 - read
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100135
136config:
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100137# Any new property can be added in the env by setting in overrides in the format mentioned below
138# All the added properties must be in "key: value" format instead of yaml.
139# additional:
140# spring.config.max-size: 200
141# spring.config.min-size: 10
efiacor6910bbe2023-03-03 14:53:16 +0000142
143# Strimzi Kafka config
144kafkaUser:
145 authenticationType: scram-sha-512
146 acls:
147 - name: *componentName
148 type: group
149 operations: [Read]
150 - name: *acRuntimeTopic
151 type: topic
152 operations: [Read, Write]