blob: 5c897c23e4fafcda3722726c15883255d89e096c [file] [log] [blame]
rameshiyer2701b8cc02021-09-21 15:07:50 +01001# ============LICENSE_START=======================================================
efiacor6910bbe2023-03-03 14:53:16 +00002# Copyright (C) 2021-2023 Nordix Foundation.
rameshiyer2701b8cc02021-09-21 15:07:50 +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:
rameshiyer2701b8cc02021-09-21 15:07:50 +010023 persistence: {}
efiacor6910bbe2023-03-03 14:53:16 +000024 aafEnabled: false
25 #Strimzi Kafka properties
26 useStrimziKafka: set-via-parent-chart-global-value
27 kafkaTopics:
28 acRuntimeTopic:
29 name: &acRuntimeTopic policy.clamp-runtime-acm
rameshiyer2701b8cc02021-09-21 15:07:50 +010030
31#################################################################
32# Secrets metaconfig
33#################################################################
34secrets:
35 - uid: restserver-secret
36 type: basicAuth
37 externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}'
38 login: '{{ .Values.restServer.user }}'
39 password: '{{ .Values.restServer.password }}'
40 passwordPolicy: required
41 - uid: keystore-password
42 type: password
43 externalSecret: '{{ tpl (default "" .Values.certStores.keyStorePasswordExternalSecret) . }}'
44 password: '{{ .Values.certStores.keyStorePassword }}'
45 passwordPolicy: required
46 - uid: truststore-password
47 type: password
48 externalSecret: '{{ tpl (default "" .Values.certStores.trustStorePasswordExternalSecret) . }}'
49 password: '{{ .Values.certStores.trustStorePassword }}'
50 passwordPolicy: required
51
52certStores:
53 keyStorePassword: Pol1cy_0nap
54 trustStorePassword: Pol1cy_0nap
55
56certInitializer:
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000057 nameOverride: policy-clamp-ac-http-ppnt-cert-initializer
rameshiyer2701b8cc02021-09-21 15:07:50 +010058 aafDeployFqi: deployer@people.osaaf.org
59 aafDeployPass: demo123456!
60 fqdn: policy
61 fqi: policy@policy.onap.org
62 public_fqdn: policy.onap.org
63 cadi_latitude: "0.0"
64 cadi_longitude: "0.0"
65 credsPath: /opt/app/osaaf/local
66 app_ns: org.osaaf.aaf
67 uid: 100
68 gid: 101
69 aaf_add_config: >
70 echo "export KEYSTORE='{{ .Values.credsPath }}/org.onap.policy.p12'" > {{ .Values.credsPath }}/.ci;
71 echo "export KEYSTORE_PASSWD='${cadi_keystore_password_p12}'" >> {{ .Values.credsPath }}/.ci;
72 chown -R {{ .Values.uid }}:{{ .Values.gid }} $(dirname {{ .Values.credsPath }});
73
74
75#################################################################
76# Application configuration defaults.
77#################################################################
78# application image
saul.gill5e611402023-03-02 11:49:23 +000079image: onap/policy-clamp-ac-http-ppnt:6.4.1
rameshiyer2701b8cc02021-09-21 15:07:50 +010080pullPolicy: Always
81
efiacor6910bbe2023-03-03 14:53:16 +000082componentName: &componentName policy-clamp-ac-http-ppnt
83
rameshiyer2701b8cc02021-09-21 15:07:50 +010084# application configuration
85restServer:
86 user: participantUser
87 password: zb!XztG34
88
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000089# flag to enable debugging - application support required
90debugEnabled: false
91
rameshiyer2701b8cc02021-09-21 15:07:50 +010092# default number of instances
93replicaCount: 1
94
95nodeSelector: {}
96
97affinity: {}
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000098ingress:
99 enabled: false
100
rameshiyer2701b8cc02021-09-21 15:07:50 +0100101# probe configuration parameters
102liveness:
103 initialDelaySeconds: 20
104 periodSeconds: 10
105 # necessary to disable liveness probe when setting breakpoints
106 # in debugger so K8s doesn't restart unresponsive container
107 enabled: true
108 port: http-api
109
110readiness:
111 initialDelaySeconds: 20
112 periodSeconds: 10
113 port: http-api
guillaume.lambert600dc982021-10-20 20:42:32 +0200114
rameshiyer2701b8cc02021-09-21 15:07:50 +0100115service:
116 type: ClusterIP
efiacor6910bbe2023-03-03 14:53:16 +0000117 name: *componentName
rameshiyer2701b8cc02021-09-21 15:07:50 +0100118 useNodePortExt: true
119 ports:
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000120 - name: http-api
121 port: 8084
122 nodePort: 42
rameshiyer2701b8cc02021-09-21 15:07:50 +0100123
rameshiyer2701b8cc02021-09-21 15:07:50 +0100124
125flavor: small
126resources:
127 small:
128 limits:
129 cpu: 1
130 memory: 4Gi
131 requests:
132 cpu: 100m
133 memory: 1Gi
134 large:
135 limits:
136 cpu: 2
137 memory: 8Gi
138 requests:
139 cpu: 200m
140 memory: 2Gi
141 unlimited: {}
rameshiyer2701b8cc02021-09-21 15:07:50 +0100142#Pods Service Account
143serviceAccount:
efiacor6910bbe2023-03-03 14:53:16 +0000144 nameOverride: *componentName
rameshiyer2701b8cc02021-09-21 15:07:50 +0100145 roles:
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000146 - read
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100147
148config:
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100149# Any new property can be added in the env by setting in overrides in the format mentioned below
150# All the added properties must be in "key: value" format instead of yaml.
151# additional:
152# spring.config.max-size: 200
153# spring.config.min-size: 10
154
efiacor6910bbe2023-03-03 14:53:16 +0000155# Strimzi Kafka config
156kafkaUser:
157 authenticationType: scram-sha-512
158 acls:
159 - name: *componentName
160 type: group
161 operations: [Read]
162 - name: *acRuntimeTopic
163 type: topic
164 operations: [Read, Write]
165
166readinessCheck:
167 wait_for:
168 - message-router