blob: 83839f80bfe8001190696dcf01120f3ba53b088f [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
25 useStrimziKafka: set-via-parent-chart-global-value
26 kafkaTopics:
27 acRuntimeTopic:
28 name: &acRuntimeTopic policy.clamp-runtime-acm
rameshiyer27ff176652021-09-21 15:19:05 +010029
30#################################################################
31# Secrets metaconfig
32#################################################################
33secrets:
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000034 - uid: restserver-secret
35 type: basicAuth
36 externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}'
37 login: '{{ .Values.restServer.participantppnt.user }}'
38 password: '{{ .Values.restServer.participantppnt.password }}'
39 passwordPolicy: required
rameshiyer27ff176652021-09-21 15:19:05 +010040 - uid: api-secret
41 type: basicAuth
42 externalSecret: '{{ tpl (default "" .Values.restServer.apiUserExternalSecret) . }}'
43 login: '{{ .Values.restServer.api.user }}'
44 password: '{{ .Values.restServer.api.password }}'
45 passwordPolicy: required
46 - uid: pap-secret
47 type: basicAuth
48 externalSecret: '{{ tpl (default "" .Values.restServer.papUserExternalSecret) . }}'
49 login: '{{ .Values.restServer.pap.user }}'
50 password: '{{ .Values.restServer.pap.password }}'
51 passwordPolicy: required
rameshiyer27ff176652021-09-21 15:19:05 +010052
53#################################################################
54# Application configuration defaults.
55#################################################################
56# application image
saul.gill5e611402023-03-02 11:49:23 +000057image: onap/policy-clamp-ac-pf-ppnt:6.4.1
rameshiyer27ff176652021-09-21 15:19:05 +010058pullPolicy: Always
59
efiacor6910bbe2023-03-03 14:53:16 +000060componentName: &componentName policy-clamp-ac-pf-ppnt
61
rameshiyer27ff176652021-09-21 15:19:05 +010062# flag to enable debugging - application support required
63debugEnabled: false
64
65# default number of instances
66replicaCount: 1
67
68# application configuration
69restServer:
70 api:
adheli.tavaresf3656cd2021-11-10 14:54:32 +000071 user: policyadmin
rameshiyer27ff176652021-09-21 15:19:05 +010072 password: none
73 pap:
adheli.tavaresf3656cd2021-11-10 14:54:32 +000074 user: policyadmin
rameshiyer27ff176652021-09-21 15:19:05 +010075 password: none
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000076 participantppnt:
77 user: participantUser
78 password: none
rameshiyer27ff176652021-09-21 15:19:05 +010079
80nodeSelector: {}
81
82affinity: {}
efiacor6910bbe2023-03-03 14:53:16 +000083
rameshiyer27ff176652021-09-21 15:19:05 +010084ingress:
85 enabled: false
86
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000087# probe configuration parameters
88liveness:
89 initialDelaySeconds: 20
90 periodSeconds: 10
91 # necessary to disable liveness probe when setting breakpoints
92 # in debugger so K8s doesn't restart unresponsive container
93 enabled: true
94 port: http-api
95
96readiness:
97 initialDelaySeconds: 20
98 periodSeconds: 10
99 port: http-api
100
101service:
102 type: ClusterIP
efiacor6910bbe2023-03-03 14:53:16 +0000103 name: *componentName
Andreas Geisslerf10c5552023-03-21 18:09:46 +0100104 internalPort: 8085
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000105 ports:
106 - name: http-api
107 port: 8085
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000108
rameshiyer27ff176652021-09-21 15:19:05 +0100109flavor: small
110resources:
111 small:
112 limits:
113 cpu: 1
114 memory: 4Gi
115 requests:
116 cpu: 100m
117 memory: 1Gi
118 large:
119 limits:
120 cpu: 2
121 memory: 8Gi
122 requests:
123 cpu: 200m
124 memory: 2Gi
125 unlimited: {}
126#Pods Service Account
127serviceAccount:
efiacor6910bbe2023-03-03 14:53:16 +0000128 nameOverride: *componentName
rameshiyer27ff176652021-09-21 15:19:05 +0100129 roles:
130 - read
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100131
132config:
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100133# Any new property can be added in the env by setting in overrides in the format mentioned below
134# All the added properties must be in "key: value" format instead of yaml.
135# additional:
136# spring.config.max-size: 200
137# spring.config.min-size: 10
efiacor6910bbe2023-03-03 14:53:16 +0000138
139# Strimzi Kafka config
140kafkaUser:
141 authenticationType: scram-sha-512
142 acls:
143 - name: *componentName
144 type: group
145 operations: [Read]
146 - name: *acRuntimeTopic
147 type: topic
148 operations: [Read, Write]
149
150readinessCheck:
151 wait_for:
152 - message-router