blob: 6bde39dd51e4b22171fe4a09c94d97c0ab1beed3 [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 kafkaTopics:
25 acRuntimeTopic:
26 name: &acRuntimeTopic policy.clamp-runtime-acm
aravind.est8d728302022-12-07 12:26:28 +000027
28#################################################################
29# Secrets metaconfig
30#################################################################
31secrets:
32 - uid: restserver-secret
33 type: basicAuth
34 externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}'
35 login: '{{ .Values.restServer.user }}'
36 password: '{{ .Values.restServer.password }}'
37 passwordPolicy: required
aravind.est8d728302022-12-07 12:26:28 +000038
39#################################################################
40# Application configuration defaults.
41#################################################################
42# application image
saul.gill1fa9c252024-05-20 15:34:32 +010043image: onap/policy-clamp-ac-a1pms-ppnt:7.1.3
aravind.est8d728302022-12-07 12:26:28 +000044pullPolicy: Always
45
efiacor6910bbe2023-03-03 14:53:16 +000046componentName: &componentName policy-clamp-ac-a1pms-ppnt
47
aravind.est8d728302022-12-07 12:26:28 +000048# application configuration
49restServer:
50 user: participantUser
51 password: zb!XztG34
52
53a1pmsconfig:
54 a1pms:
55 baseUrl: http://a1policymanagement.onap:8081
56 headers:
57 content-type: application/json
58 endpoints:
59 health: /a1-policy/v2/rics
60 services: /a1-policy/v2/services
61 service: /a1-policy/v2/services/{service_id}
62
63# flag to enable debugging - application support required
64debugEnabled: false
65
66# default number of instances
67replicaCount: 1
68
69nodeSelector: {}
70
71affinity: {}
72ingress:
73 enabled: false
74
AndrewLamb7ef78ae2023-04-20 16:24:13 +010075serviceMesh:
76 authorizationPolicy:
77 authorizedPrincipals:
rameshiyer27bc8a6a42024-03-11 17:18:11 +000078 - serviceAccount: strimzi-kafka-read
AndrewLamb7ef78ae2023-04-20 16:24:13 +010079
aravind.est8d728302022-12-07 12:26:28 +000080# probe configuration parameters
81liveness:
Andreas Geisslerc50f0892023-06-14 14:21:31 +020082 initialDelaySeconds: 60
aravind.est8d728302022-12-07 12:26:28 +000083 periodSeconds: 10
84 # necessary to disable liveness probe when setting breakpoints
85 # in debugger so K8s doesn't restart unresponsive container
86 enabled: true
Fiete Ostkamp7044e682023-04-19 13:25:18 +000087 port: http-a1pms-api
aravind.est8d728302022-12-07 12:26:28 +000088
89readiness:
Andreas Geisslerc50f0892023-06-14 14:21:31 +020090 initialDelaySeconds: 60
aravind.est8d728302022-12-07 12:26:28 +000091 periodSeconds: 10
Fiete Ostkamp7044e682023-04-19 13:25:18 +000092 port: http-a1pms-api
aravind.est8d728302022-12-07 12:26:28 +000093
94service:
95 type: ClusterIP
efiacor6910bbe2023-03-03 14:53:16 +000096 name: *componentName
aravind.est8d728302022-12-07 12:26:28 +000097 ports:
Fiete Ostkamp7044e682023-04-19 13:25:18 +000098 - name: http-a1pms-api
aravind.est8d728302022-12-07 12:26:28 +000099 port: 8086
aravind.est8d728302022-12-07 12:26:28 +0000100
101flavor: small
102resources:
103 small:
104 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100105 cpu: "1"
106 memory: "1Gi"
aravind.est8d728302022-12-07 12:26:28 +0000107 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100108 cpu: "0.5"
109 memory: "1Gi"
aravind.est8d728302022-12-07 12:26:28 +0000110 large:
111 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100112 cpu: "2"
113 memory: "2Gi"
aravind.est8d728302022-12-07 12:26:28 +0000114 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100115 cpu: "1"
116 memory: "2Gi"
aravind.est8d728302022-12-07 12:26:28 +0000117 unlimited: {}
118#Pods Service Account
119serviceAccount:
efiacor6910bbe2023-03-03 14:53:16 +0000120 nameOverride: *componentName
aravind.est8d728302022-12-07 12:26:28 +0000121 roles:
122 - create
123
124config:
aravind.est8d728302022-12-07 12:26:28 +0000125# Any new property can be added in the env by setting in overrides in the format mentioned below
126# All the added properties must be in "key: value" format instead of yaml.
127# additional:
128# spring.config.max-size: 200
129# spring.config.min-size: 10
130
efiacor6910bbe2023-03-03 14:53:16 +0000131# Strimzi Kafka config
132kafkaUser:
133 authenticationType: scram-sha-512
134 acls:
135 - name: *componentName
136 type: group
137 operations: [Read]
138 - name: *acRuntimeTopic
139 type: topic
140 operations: [Read, Write]