rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 2 | # Copyright (C) 2021-2023 Nordix Foundation. |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 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: {} |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 24 | #Strimzi Kafka properties |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 25 | kafkaTopics: |
| 26 | acRuntimeTopic: |
| 27 | name: &acRuntimeTopic policy.clamp-runtime-acm |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 28 | |
| 29 | ################################################################# |
| 30 | # Secrets metaconfig |
| 31 | ################################################################# |
| 32 | secrets: |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 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 |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 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 |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 51 | |
| 52 | ################################################################# |
| 53 | # Application configuration defaults. |
| 54 | ################################################################# |
| 55 | # application image |
saul.gill | 9964927 | 2023-12-12 16:14:52 +0000 | [diff] [blame] | 56 | image: onap/policy-clamp-ac-pf-ppnt:7.1.0 |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 57 | pullPolicy: Always |
| 58 | |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 59 | componentName: &componentName policy-clamp-ac-pf-ppnt |
| 60 | |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 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: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 70 | user: policyadmin |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 71 | password: none |
| 72 | pap: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 73 | user: policyadmin |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 74 | password: none |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 75 | participantppnt: |
| 76 | user: participantUser |
| 77 | password: none |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 78 | |
| 79 | nodeSelector: {} |
| 80 | |
| 81 | affinity: {} |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 82 | |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 83 | ingress: |
| 84 | enabled: false |
| 85 | |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 86 | serviceMesh: |
| 87 | authorizationPolicy: |
| 88 | authorizedPrincipals: |
rameshiyer27 | bc8a6a4 | 2024-03-11 17:18:11 +0000 | [diff] [blame^] | 89 | - serviceAccount: strimzi-kafka-read |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 90 | |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 91 | # probe configuration parameters |
| 92 | liveness: |
Andreas Geissler | c50f089 | 2023-06-14 14:21:31 +0200 | [diff] [blame] | 93 | initialDelaySeconds: 60 |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 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: |
Andreas Geissler | c50f089 | 2023-06-14 14:21:31 +0200 | [diff] [blame] | 101 | initialDelaySeconds: 60 |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 102 | periodSeconds: 10 |
| 103 | port: http-api |
| 104 | |
| 105 | service: |
| 106 | type: ClusterIP |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 107 | name: *componentName |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 108 | internalPort: 8085 |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 109 | ports: |
| 110 | - name: http-api |
| 111 | port: 8085 |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 112 | |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 113 | flavor: small |
| 114 | resources: |
| 115 | small: |
| 116 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 117 | cpu: "1" |
| 118 | memory: "1Gi" |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 119 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 120 | cpu: "0.5" |
| 121 | memory: "1Gi" |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 122 | large: |
| 123 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 124 | cpu: "2" |
| 125 | memory: "2Gi" |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 126 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 127 | cpu: "1" |
| 128 | memory: "2Gi" |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 129 | unlimited: {} |
| 130 | #Pods Service Account |
| 131 | serviceAccount: |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 132 | nameOverride: *componentName |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 133 | roles: |
| 134 | - read |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 135 | |
| 136 | config: |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 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 |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 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] |