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