Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / policy / components / policy-clamp-ac-pf-ppnt / values.yaml
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2021-2023 Nordix Foundation.
3 #  ================================================================================
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 #################################################################
22 global:
23   persistence: {}
24   #Strimzi Kafka properties
25   kafkaTopics:
26     acRuntimeTopic:
27       name: &acRuntimeTopic policy.clamp-runtime-acm
28
29 #################################################################
30 # Secrets metaconfig
31 #################################################################
32 secrets:
33   - uid: restserver-secret
34     type: basicAuth
35     externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}'
36     login: '{{ .Values.restServer.participantppnt.user }}'
37     password: '{{ .Values.restServer.participantppnt.password }}'
38     passwordPolicy: required
39   - uid: api-secret
40     type: basicAuth
41     externalSecret: '{{ tpl (default "" .Values.restServer.apiUserExternalSecret) . }}'
42     login: '{{ .Values.restServer.api.user }}'
43     password: '{{ .Values.restServer.api.password }}'
44     passwordPolicy: required
45   - uid: pap-secret
46     type: basicAuth
47     externalSecret: '{{ tpl (default "" .Values.restServer.papUserExternalSecret) . }}'
48     login: '{{ .Values.restServer.pap.user }}'
49     password: '{{ .Values.restServer.pap.password }}'
50     passwordPolicy: required
51
52 #################################################################
53 # Application configuration defaults.
54 #################################################################
55 # application image
56 image: onap/policy-clamp-ac-pf-ppnt:7.1.0
57 pullPolicy: Always
58
59 componentName: &componentName policy-clamp-ac-pf-ppnt
60
61 # flag to enable debugging - application support required
62 debugEnabled: false
63
64 # default number of instances
65 replicaCount: 1
66
67 # application configuration
68 restServer:
69   api:
70     user: policyadmin
71     password: none
72   pap:
73     user: policyadmin
74     password: none
75   participantppnt:
76     user: participantUser
77     password: none
78
79 nodeSelector: {}
80
81 affinity: {}
82
83 ingress:
84   enabled: false
85
86 serviceMesh:
87   authorizationPolicy:
88     authorizedPrincipals:
89       - serviceAccount: strimzi-kafka-read
90
91 # probe configuration parameters
92 liveness:
93   initialDelaySeconds: 60
94   periodSeconds: 10
95   # necessary to disable liveness probe when setting breakpoints
96   # in debugger so K8s doesn't restart unresponsive container
97   enabled: true
98   port: http-api
99
100 readiness:
101   initialDelaySeconds: 60
102   periodSeconds: 10
103   port: http-api
104
105 service:
106   type: ClusterIP
107   name: *componentName
108   internalPort: 8085
109   ports:
110     - name: http-api
111       port: 8085
112
113 flavor: small
114 resources:
115   small:
116     limits:
117       cpu: "1"
118       memory: "1Gi"
119     requests:
120       cpu: "0.5"
121       memory: "1Gi"
122   large:
123     limits:
124       cpu: "2"
125       memory: "2Gi"
126     requests:
127       cpu: "1"
128       memory: "2Gi"
129   unlimited: {}
130 #Pods Service Account
131 serviceAccount:
132   nameOverride: *componentName
133   roles:
134     - read
135
136 config:
137 # Any new property can be added in the env by setting in overrides in the format mentioned below
138 # All the added properties must be in "key: value" format instead of yaml.
139 # additional:
140 #   spring.config.max-size: 200
141 #   spring.config.min-size: 10
142
143 # Strimzi Kafka config
144 kafkaUser:
145   authenticationType: scram-sha-512
146   acls:
147     - name: *componentName
148       type: group
149       operations: [Read]
150     - name: *acRuntimeTopic
151       type: topic
152       operations: [Read, Write]