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