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: |
| 23 | nodePortPrefixExt: 304 |
| 24 | persistence: {} |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 25 | #Strimzi Kafka properties |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 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-k8s-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-k8s-ppnt |
| 49 | |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 50 | # flag to enable debugging - application support required |
| 51 | debugEnabled: false |
| 52 | |
| 53 | # application configuration |
| 54 | restServer: |
| 55 | user: participantUser |
| 56 | password: zb!XztG34 |
| 57 | |
| 58 | # default number of instances |
| 59 | replicaCount: 1 |
| 60 | |
| 61 | nodeSelector: {} |
| 62 | |
| 63 | affinity: {} |
| 64 | # probe configuration parameters |
| 65 | liveness: |
Andreas Geissler | c50f089 | 2023-06-14 14:21:31 +0200 | [diff] [blame] | 66 | initialDelaySeconds: 60 |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 67 | periodSeconds: 10 |
| 68 | # necessary to disable liveness probe when setting breakpoints |
| 69 | # in debugger so K8s doesn't restart unresponsive container |
| 70 | enabled: true |
| 71 | port: http-api |
| 72 | |
| 73 | readiness: |
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 | port: http-api |
guillaume.lambert | 600dc98 | 2021-10-20 20:42:32 +0200 | [diff] [blame] | 77 | |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 78 | service: |
| 79 | type: ClusterIP |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 80 | name: *componentName |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 81 | ports: |
| 82 | - name: http-api |
| 83 | port: 8083 |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 84 | |
| 85 | ingress: |
| 86 | enabled: false |
| 87 | |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 88 | serviceMesh: |
| 89 | authorizationPolicy: |
| 90 | authorizedPrincipals: |
rameshiyer27 | bc8a6a4 | 2024-03-11 17:18:11 +0000 | [diff] [blame^] | 91 | - serviceAccount: strimzi-kafka-read |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 92 | |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 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: {} |
| 110 | |
| 111 | #Pods Service Account |
| 112 | serviceAccount: |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 113 | nameOverride: *componentName |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 114 | roles: |
| 115 | - create |
rameshiyer27 | 3c81b1d | 2022-07-18 16:54:51 +0100 | [diff] [blame] | 116 | # Update the config here for permitting repositories and protocols |
| 117 | repoList: |
| 118 | helm: |
| 119 | repos: |
| 120 | - |
| 121 | repoName: kong |
| 122 | address: https://charts.konghq.com |
| 123 | - |
| 124 | repoName: bitnami |
| 125 | address: https://charts.bitnami.com/bitnami |
| 126 | |
| 127 | protocols: |
| 128 | - http |
| 129 | - https |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 130 | |
| 131 | config: |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 132 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 133 | # All the added properties must be in "key: value" format instead of yaml. |
| 134 | # additional: |
| 135 | # spring.config.max-size: 200 |
| 136 | # spring.config.min-size: 10 |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 137 | |
| 138 | # Strimzi Kafka config |
| 139 | kafkaUser: |
| 140 | authenticationType: scram-sha-512 |
| 141 | acls: |
| 142 | - name: *componentName |
| 143 | type: group |
| 144 | operations: [Read] |
| 145 | - name: *acRuntimeTopic |
| 146 | type: topic |
| 147 | operations: [Read, Write] |
| 148 | |