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 |
| 25 | useStrimziKafka: set-via-parent-chart-global-value |
| 26 | kafkaTopics: |
| 27 | acRuntimeTopic: |
| 28 | name: &acRuntimeTopic policy.clamp-runtime-acm |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 29 | |
| 30 | ################################################################# |
| 31 | # Secrets metaconfig |
| 32 | ################################################################# |
| 33 | secrets: |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 34 | - uid: restserver-secret |
| 35 | type: basicAuth |
| 36 | externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}' |
| 37 | login: '{{ .Values.restServer.participantppnt.user }}' |
| 38 | password: '{{ .Values.restServer.participantppnt.password }}' |
| 39 | passwordPolicy: required |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 40 | - uid: api-secret |
| 41 | type: basicAuth |
| 42 | externalSecret: '{{ tpl (default "" .Values.restServer.apiUserExternalSecret) . }}' |
| 43 | login: '{{ .Values.restServer.api.user }}' |
| 44 | password: '{{ .Values.restServer.api.password }}' |
| 45 | passwordPolicy: required |
| 46 | - uid: pap-secret |
| 47 | type: basicAuth |
| 48 | externalSecret: '{{ tpl (default "" .Values.restServer.papUserExternalSecret) . }}' |
| 49 | login: '{{ .Values.restServer.pap.user }}' |
| 50 | password: '{{ .Values.restServer.pap.password }}' |
| 51 | passwordPolicy: required |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 52 | |
| 53 | ################################################################# |
| 54 | # Application configuration defaults. |
| 55 | ################################################################# |
| 56 | # application image |
liamfallon | 2d0db7c | 2023-11-14 14:07:33 +0100 | [diff] [blame] | 57 | image: onap/policy-clamp-ac-pf-ppnt:7.0.3 |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 58 | pullPolicy: Always |
| 59 | |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 60 | componentName: &componentName policy-clamp-ac-pf-ppnt |
| 61 | |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 62 | # flag to enable debugging - application support required |
| 63 | debugEnabled: false |
| 64 | |
| 65 | # default number of instances |
| 66 | replicaCount: 1 |
| 67 | |
| 68 | # application configuration |
| 69 | restServer: |
| 70 | api: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 71 | user: policyadmin |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 72 | password: none |
| 73 | pap: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 74 | user: policyadmin |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 75 | password: none |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 76 | participantppnt: |
| 77 | user: participantUser |
| 78 | password: none |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 79 | |
| 80 | nodeSelector: {} |
| 81 | |
| 82 | affinity: {} |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 83 | |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 84 | ingress: |
| 85 | enabled: false |
| 86 | |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 87 | serviceMesh: |
| 88 | authorizationPolicy: |
| 89 | authorizedPrincipals: |
| 90 | - serviceAccount: message-router-read |
| 91 | |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 92 | # probe configuration parameters |
| 93 | liveness: |
Andreas Geissler | c50f089 | 2023-06-14 14:21:31 +0200 | [diff] [blame] | 94 | initialDelaySeconds: 60 |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 95 | periodSeconds: 10 |
| 96 | # necessary to disable liveness probe when setting breakpoints |
| 97 | # in debugger so K8s doesn't restart unresponsive container |
| 98 | enabled: true |
| 99 | port: http-api |
| 100 | |
| 101 | readiness: |
Andreas Geissler | c50f089 | 2023-06-14 14:21:31 +0200 | [diff] [blame] | 102 | initialDelaySeconds: 60 |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 103 | periodSeconds: 10 |
| 104 | port: http-api |
| 105 | |
| 106 | service: |
| 107 | type: ClusterIP |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 108 | name: *componentName |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 109 | internalPort: 8085 |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 110 | ports: |
| 111 | - name: http-api |
| 112 | port: 8085 |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 113 | |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 114 | flavor: small |
| 115 | resources: |
| 116 | small: |
| 117 | limits: |
vladimir turok | db8167b | 2023-09-20 11:09:21 +0200 | [diff] [blame] | 118 | cpu: 1 |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 119 | memory: 1Gi |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 120 | requests: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 121 | cpu: 0.5 |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 122 | memory: 1Gi |
| 123 | large: |
| 124 | limits: |
vladimir turok | db8167b | 2023-09-20 11:09:21 +0200 | [diff] [blame] | 125 | cpu: 2 |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 126 | memory: 2Gi |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 127 | requests: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 128 | cpu: 1 |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 129 | memory: 2Gi |
| 130 | unlimited: {} |
| 131 | #Pods Service Account |
| 132 | serviceAccount: |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 133 | nameOverride: *componentName |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 134 | roles: |
| 135 | - read |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 136 | |
| 137 | config: |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 138 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 139 | # All the added properties must be in "key: value" format instead of yaml. |
| 140 | # additional: |
| 141 | # spring.config.max-size: 200 |
| 142 | # spring.config.min-size: 10 |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 143 | |
| 144 | # Strimzi Kafka config |
| 145 | kafkaUser: |
| 146 | authenticationType: scram-sha-512 |
| 147 | acls: |
| 148 | - name: *componentName |
| 149 | type: group |
| 150 | operations: [Read] |
| 151 | - name: *acRuntimeTopic |
| 152 | type: topic |
| 153 | operations: [Read, Write] |
| 154 | |
| 155 | readinessCheck: |
| 156 | wait_for: |
| 157 | - message-router |