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 |
| 26 | useStrimziKafka: set-via-parent-chart-global-value |
| 27 | kafkaTopics: |
| 28 | acRuntimeTopic: |
| 29 | name: &acRuntimeTopic policy.clamp-runtime-acm |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 30 | |
| 31 | ################################################################# |
| 32 | # Secrets metaconfig |
| 33 | ################################################################# |
| 34 | secrets: |
| 35 | - uid: restserver-secret |
| 36 | type: basicAuth |
| 37 | externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}' |
| 38 | login: '{{ .Values.restServer.user }}' |
| 39 | password: '{{ .Values.restServer.password }}' |
| 40 | passwordPolicy: required |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 41 | |
| 42 | ################################################################# |
| 43 | # Application configuration defaults. |
| 44 | ################################################################# |
| 45 | # application image |
saul.gill | 5e61140 | 2023-03-02 11:49:23 +0000 | [diff] [blame] | 46 | image: onap/policy-clamp-ac-k8s-ppnt:6.4.1 |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 47 | pullPolicy: Always |
| 48 | |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 49 | componentName: &componentName policy-clamp-ac-k8s-ppnt |
| 50 | |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 51 | # flag to enable debugging - application support required |
| 52 | debugEnabled: false |
| 53 | |
| 54 | # application configuration |
| 55 | restServer: |
| 56 | user: participantUser |
| 57 | password: zb!XztG34 |
| 58 | |
| 59 | # default number of instances |
| 60 | replicaCount: 1 |
| 61 | |
| 62 | nodeSelector: {} |
| 63 | |
| 64 | affinity: {} |
| 65 | # probe configuration parameters |
| 66 | liveness: |
| 67 | initialDelaySeconds: 20 |
| 68 | periodSeconds: 10 |
| 69 | # necessary to disable liveness probe when setting breakpoints |
| 70 | # in debugger so K8s doesn't restart unresponsive container |
| 71 | enabled: true |
| 72 | port: http-api |
| 73 | |
| 74 | readiness: |
| 75 | initialDelaySeconds: 20 |
| 76 | periodSeconds: 10 |
| 77 | port: http-api |
guillaume.lambert | 600dc98 | 2021-10-20 20:42:32 +0200 | [diff] [blame] | 78 | |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 79 | service: |
| 80 | type: ClusterIP |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 81 | name: *componentName |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 82 | ports: |
| 83 | - name: http-api |
| 84 | port: 8083 |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 85 | |
| 86 | ingress: |
| 87 | enabled: false |
| 88 | |
| 89 | flavor: small |
| 90 | resources: |
| 91 | small: |
| 92 | limits: |
| 93 | cpu: 1 |
| 94 | memory: 4Gi |
| 95 | requests: |
| 96 | cpu: 100m |
| 97 | memory: 1Gi |
| 98 | large: |
| 99 | limits: |
| 100 | cpu: 2 |
| 101 | memory: 8Gi |
| 102 | requests: |
| 103 | cpu: 200m |
| 104 | memory: 2Gi |
| 105 | unlimited: {} |
| 106 | |
| 107 | #Pods Service Account |
| 108 | serviceAccount: |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 109 | nameOverride: *componentName |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 110 | roles: |
| 111 | - create |
rameshiyer27 | 3c81b1d | 2022-07-18 16:54:51 +0100 | [diff] [blame] | 112 | # Update the config here for permitting repositories and protocols |
| 113 | repoList: |
| 114 | helm: |
| 115 | repos: |
| 116 | - |
| 117 | repoName: kong |
| 118 | address: https://charts.konghq.com |
| 119 | - |
| 120 | repoName: bitnami |
| 121 | address: https://charts.bitnami.com/bitnami |
| 122 | |
| 123 | protocols: |
| 124 | - http |
| 125 | - https |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 126 | |
| 127 | config: |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 128 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 129 | # All the added properties must be in "key: value" format instead of yaml. |
| 130 | # additional: |
| 131 | # spring.config.max-size: 200 |
| 132 | # spring.config.min-size: 10 |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 133 | |
| 134 | # Strimzi Kafka config |
| 135 | kafkaUser: |
| 136 | authenticationType: scram-sha-512 |
| 137 | acls: |
| 138 | - name: *componentName |
| 139 | type: group |
| 140 | operations: [Read] |
| 141 | - name: *acRuntimeTopic |
| 142 | type: topic |
| 143 | operations: [Read, Write] |
| 144 | |
| 145 | readinessCheck: |
| 146 | wait_for: |
| 147 | - message-router |