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 |
saul.gill | 5e61140 | 2023-03-02 11:49:23 +0000 | [diff] [blame] | 52 | image: onap/policy-clamp-runtime-acm:6.4.1 |
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 | |
| 122 | flavor: small |
| 123 | resources: |
| 124 | small: |
| 125 | limits: |
| 126 | cpu: 1 |
| 127 | memory: 4Gi |
| 128 | requests: |
| 129 | cpu: 100m |
| 130 | memory: 1Gi |
| 131 | large: |
| 132 | limits: |
| 133 | cpu: 2 |
| 134 | memory: 8Gi |
| 135 | requests: |
| 136 | cpu: 200m |
| 137 | memory: 2Gi |
| 138 | unlimited: {} |
| 139 | |
| 140 | #Pods Service Account |
| 141 | serviceAccount: |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 142 | nameOverride: *componentName |
saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 143 | roles: |
| 144 | - read |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 145 | |
| 146 | readinessCheck: |
| 147 | wait_for: |
| 148 | - message-router |
| 149 | |
| 150 | wait_for_job_container: |
| 151 | containers: |
| 152 | - '{{ include "common.release" . }}-policy-galera-config' |