blob: ac74011463603d99c0b7e0fb3e298c24a84c429c [file] [log] [blame]
aravind.est8d728302022-12-07 12:26:28 +00001# ============LICENSE_START=======================================================
efiacor6910bbe2023-03-03 14:53:16 +00002# Copyright (C) 2022-2023 Nordix Foundation.
aravind.est8d728302022-12-07 12:26:28 +00003# ================================================================================
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
aravind.est8d728302022-12-07 12:26:28 +000029
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
aravind.est8d728302022-12-07 12:26:28 +000040
41#################################################################
42# Application configuration defaults.
43#################################################################
44# application image
saul.gill99649272023-12-12 16:14:52 +000045image: onap/policy-clamp-ac-a1pms-ppnt:7.1.0
aravind.est8d728302022-12-07 12:26:28 +000046pullPolicy: Always
47
efiacor6910bbe2023-03-03 14:53:16 +000048componentName: &componentName policy-clamp-ac-a1pms-ppnt
49
aravind.est8d728302022-12-07 12:26:28 +000050# application configuration
51restServer:
52 user: participantUser
53 password: zb!XztG34
54
55a1pmsconfig:
56 a1pms:
57 baseUrl: http://a1policymanagement.onap:8081
58 headers:
59 content-type: application/json
60 endpoints:
61 health: /a1-policy/v2/rics
62 services: /a1-policy/v2/services
63 service: /a1-policy/v2/services/{service_id}
64
65# flag to enable debugging - application support required
66debugEnabled: false
67
68# default number of instances
69replicaCount: 1
70
71nodeSelector: {}
72
73affinity: {}
74ingress:
75 enabled: false
76
AndrewLamb7ef78ae2023-04-20 16:24:13 +010077serviceMesh:
78 authorizationPolicy:
79 authorizedPrincipals:
80 - serviceAccount: message-router-read
81
aravind.est8d728302022-12-07 12:26:28 +000082# probe configuration parameters
83liveness:
Andreas Geisslerc50f0892023-06-14 14:21:31 +020084 initialDelaySeconds: 60
aravind.est8d728302022-12-07 12:26:28 +000085 periodSeconds: 10
86 # necessary to disable liveness probe when setting breakpoints
87 # in debugger so K8s doesn't restart unresponsive container
88 enabled: true
Fiete Ostkamp7044e682023-04-19 13:25:18 +000089 port: http-a1pms-api
aravind.est8d728302022-12-07 12:26:28 +000090
91readiness:
Andreas Geisslerc50f0892023-06-14 14:21:31 +020092 initialDelaySeconds: 60
aravind.est8d728302022-12-07 12:26:28 +000093 periodSeconds: 10
Fiete Ostkamp7044e682023-04-19 13:25:18 +000094 port: http-a1pms-api
aravind.est8d728302022-12-07 12:26:28 +000095
96service:
97 type: ClusterIP
efiacor6910bbe2023-03-03 14:53:16 +000098 name: *componentName
aravind.est8d728302022-12-07 12:26:28 +000099 ports:
Fiete Ostkamp7044e682023-04-19 13:25:18 +0000100 - name: http-a1pms-api
aravind.est8d728302022-12-07 12:26:28 +0000101 port: 8086
aravind.est8d728302022-12-07 12:26:28 +0000102
103flavor: small
104resources:
105 small:
106 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100107 cpu: "1"
108 memory: "1Gi"
aravind.est8d728302022-12-07 12:26:28 +0000109 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100110 cpu: "0.5"
111 memory: "1Gi"
aravind.est8d728302022-12-07 12:26:28 +0000112 large:
113 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100114 cpu: "2"
115 memory: "2Gi"
aravind.est8d728302022-12-07 12:26:28 +0000116 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100117 cpu: "1"
118 memory: "2Gi"
aravind.est8d728302022-12-07 12:26:28 +0000119 unlimited: {}
120#Pods Service Account
121serviceAccount:
efiacor6910bbe2023-03-03 14:53:16 +0000122 nameOverride: *componentName
aravind.est8d728302022-12-07 12:26:28 +0000123 roles:
124 - create
125
126config:
aravind.est8d728302022-12-07 12:26:28 +0000127# Any new property can be added in the env by setting in overrides in the format mentioned below
128# All the added properties must be in "key: value" format instead of yaml.
129# additional:
130# spring.config.max-size: 200
131# spring.config.min-size: 10
132
efiacor6910bbe2023-03-03 14:53:16 +0000133# Strimzi Kafka config
134kafkaUser:
135 authenticationType: scram-sha-512
136 acls:
137 - name: *componentName
138 type: group
139 operations: [Read]
140 - name: *acRuntimeTopic
141 type: topic
142 operations: [Read, Write]
143
144readinessCheck:
145 wait_for:
146 - message-router