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