blob: 33483e18a50b7b40db032916ea100ec372afb876 [file] [log] [blame]
mmis9cb50292018-09-19 00:31:35 +01001# ============LICENSE_START=======================================================
2# Copyright (C) 2018 Ericsson. All rights reserved.
jhh999c2242021-02-24 12:10:02 -06003# Modifications Copyright (C) 2019-2021 AT&T Intellectual Property.
efiacorab235f42023-02-15 11:51:52 +00004# Modifications Copyright (C) 2023 Nordix Foundation
mmis9cb50292018-09-19 00:31:35 +01005# ================================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18# SPDX-License-Identifier: Apache-2.0
19# ============LICENSE_END=========================================================
20
21#################################################################
Dominik Mizyn4aa534f2020-04-14 18:03:53 +020022# Secrets metaconfig
23#################################################################
24secrets:
25 - uid: restserver-creds
26 type: basicAuth
27 externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}'
28 login: '{{ .Values.restServer.user }}'
29 password: '{{ .Values.restServer.password }}'
30 passwordPolicy: required
31 - uid: apiparameters-creds
32 type: basicAuth
33 externalSecret: '{{ tpl (default "" .Values.apiParameters.credsExternalSecret) . }}'
34 login: '{{ .Values.apiParameters.user }}'
35 password: '{{ .Values.apiParameters.password }}'
36 passwordPolicy: required
37 - uid: papparameters-creds
38 type: basicAuth
39 externalSecret: '{{ tpl (default "" .Values.papParameters.credsExternalSecret) . }}'
40 login: '{{ .Values.papParameters.user }}'
41 password: '{{ .Values.papParameters.password }}'
42 passwordPolicy: required
43 - uid: sdcbe-creds
44 type: basicAuth
45 externalSecret: '{{ tpl (default "" .Values.sdcBe.credsExternalSecret) . }}'
46 login: '{{ .Values.sdcBe.user }}'
47 password: '{{ .Values.sdcBe.password }}'
48 passwordPolicy: required
efiacorab235f42023-02-15 11:51:52 +000049
Dominik Mizyn4aa534f2020-04-14 18:03:53 +020050#################################################################
mmis9cb50292018-09-19 00:31:35 +010051# Global configuration defaults.
52#################################################################
53global:
54 persistence: {}
jhhd4258672020-08-09 12:08:08 -050055 aafEnabled: true
mmis9cb50292018-09-19 00:31:35 +010056
57#################################################################
58# Application configuration defaults.
59#################################################################
60# application image
saul.gillef208b02023-04-26 16:16:05 +010061image: onap/policy-distribution:2.9.2
mmis9cb50292018-09-19 00:31:35 +010062pullPolicy: Always
63
64# flag to enable debugging - application support required
65debugEnabled: false
66
efiacorab235f42023-02-15 11:51:52 +000067#Strimzi Kafka User def
68kafkaUser:
69 acls:
70 - name: policy-distribution
71 type: group
72 operations: [Read]
73 - name: SDC-DISTR
74 type: topic
75 patternType: prefix
76 operations: [Read, Write]
mmis9cb50292018-09-19 00:31:35 +010077
Dominik Mizyn4aa534f2020-04-14 18:03:53 +020078restServer:
79 user: healthcheck
80 password: zb!XztG34
81apiParameters:
adheli.tavaresf3656cd2021-11-10 14:54:32 +000082 user: policyadmin
Dominik Mizyn4aa534f2020-04-14 18:03:53 +020083 password: zb!XztG34
84papParameters:
adheli.tavaresf3656cd2021-11-10 14:54:32 +000085 user: policyadmin
Dominik Mizyn4aa534f2020-04-14 18:03:53 +020086 password: zb!XztG34
87sdcBe:
88 user: policy
89 password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
90
mmis9cb50292018-09-19 00:31:35 +010091# default number of instances
92replicaCount: 1
93
94nodeSelector: {}
95
96affinity: {}
97
98# probe configuration parameters
99liveness:
100 initialDelaySeconds: 20
101 periodSeconds: 10
102 # necessary to disable liveness probe when setting breakpoints
103 # in debugger so K8s doesn't restart unresponsive container
104 enabled: true
105
106readiness:
107 initialDelaySeconds: 20
108 periodSeconds: 10
109
110service:
111 type: ClusterIP
112 name: policy-distribution
mmis9cb50292018-09-19 00:31:35 +0100113 internalPort: 6969
Andreas Geisslerf10c5552023-03-21 18:09:46 +0100114 ports:
115 - name: http
116 port: 6969
mmis9cb50292018-09-19 00:31:35 +0100117
118ingress:
119 enabled: false
120
AndrewLamb7ef78ae2023-04-20 16:24:13 +0100121serviceMesh:
122 authorizationPolicy:
123 authorizedPrincipals:
124 - serviceAccount: policy-pap-read
125
jhhd4258672020-08-09 12:08:08 -0500126flavor: small
127resources:
128 small:
129 limits:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200130 cpu: 999
131 memory: 0.5Gi
jhhd4258672020-08-09 12:08:08 -0500132 requests:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200133 cpu: 0.5
134 memory: 0.5Gi
jhhd4258672020-08-09 12:08:08 -0500135 large:
136 limits:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200137 cpu: 999
138 memory: 1Gi
jhhd4258672020-08-09 12:08:08 -0500139 requests:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200140 cpu: 1
141 memory: 1Gi
jhhd4258672020-08-09 12:08:08 -0500142 unlimited: {}
farida azmyc1178372021-04-11 12:55:33 +0200143
144#Pods Service Account
145serviceAccount:
146 nameOverride: policy-distribution
147 roles:
148 - read
Rashmi Pujara8b09262022-03-15 21:58:57 -0400149
Rashmi Pujara8b09262022-03-15 21:58:57 -0400150metrics:
151 serviceMonitor:
152 # Override the labels based on the Prometheus config parameter: serviceMonitorSelector.
153 # The default operator for prometheus enforces the below label.
154 labels:
155 release: prometheus
156 enabled: true
157 port: policy-distribution
158 interval: 60s
Andreas Geisslerf10c5552023-03-21 18:09:46 +0100159 isHttps: false
Rashmi Pujara8b09262022-03-15 21:58:57 -0400160 basicAuth:
161 enabled: true
162 externalSecretNameSuffix: policy-distribution-restserver-creds
163 externalSecretUserKey: login
164 externalSecretPasswordKey: password
165 selector:
166 app: '{{ include "common.name" . }}'
167 chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
168 release: '{{ include "common.release" . }}'
169 heritage: '{{ .Release.Service }}'