mmis | 9597113 | 2018-07-17 00:13:13 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2018 Ericsson. All rights reserved. |
jhh | 999c224 | 2021-02-24 12:10:02 -0600 | [diff] [blame] | 3 | # Modifications Copyright (C) 2019-2021 AT&T Intellectual Property. |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 4 | # Modifications Copyright © 2022 Nordix Foundation |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 5 | # Modification (C) 2023 Deutsche Telekom. All rights reserved. |
mmis | 9597113 | 2018-07-17 00:13:13 +0100 | [diff] [blame] | 6 | # ================================================================================ |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| 18 | # |
| 19 | # SPDX-License-Identifier: Apache-2.0 |
| 20 | # ============LICENSE_END========================================================= |
| 21 | |
| 22 | ################################################################# |
| 23 | # Global configuration defaults. |
| 24 | ################################################################# |
| 25 | global: |
| 26 | nodePortPrefix: 302 |
| 27 | persistence: {} |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 28 | useStrimziKafkaPf: set-via-parent-chart-global-value |
mmis | 9597113 | 2018-07-17 00:13:13 +0100 | [diff] [blame] | 29 | |
| 30 | ################################################################# |
Dominik Mizyn | b8c44b4 | 2020-04-21 10:48:27 +0200 | [diff] [blame] | 31 | # Secrets metaconfig |
| 32 | ################################################################# |
| 33 | secrets: |
| 34 | - uid: restserver-creds |
| 35 | type: basicAuth |
| 36 | externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}' |
| 37 | login: '{{ .Values.restServer.user }}' |
| 38 | password: '{{ .Values.restServer.password }}' |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 39 | - uid: policy-kafka-user |
| 40 | externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}' |
| 41 | type: genericKV |
| 42 | envs: |
| 43 | - name: sasl.jaas.config |
| 44 | value: '{{ .Values.config.someConfig }}' |
| 45 | policy: generate |
Dominik Mizyn | b8c44b4 | 2020-04-21 10:48:27 +0200 | [diff] [blame] | 46 | |
| 47 | ################################################################# |
mmis | 9597113 | 2018-07-17 00:13:13 +0100 | [diff] [blame] | 48 | # Application configuration defaults. |
| 49 | ################################################################# |
| 50 | # application image |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 51 | image: onap/policy-apex-pdp:2.9.2 |
mmis | 9597113 | 2018-07-17 00:13:13 +0100 | [diff] [blame] | 52 | pullPolicy: Always |
| 53 | |
| 54 | # flag to enable debugging - application support required |
| 55 | debugEnabled: false |
| 56 | |
| 57 | # application configuration |
| 58 | |
Dominik Mizyn | b8c44b4 | 2020-04-21 10:48:27 +0200 | [diff] [blame] | 59 | restServer: |
| 60 | user: healthcheck |
| 61 | password: zb!XztG34 |
Dominik Mizyn | b8c44b4 | 2020-04-21 10:48:27 +0200 | [diff] [blame] | 62 | |
mmis | 9597113 | 2018-07-17 00:13:13 +0100 | [diff] [blame] | 63 | # default number of instances |
| 64 | replicaCount: 1 |
| 65 | |
| 66 | nodeSelector: {} |
| 67 | |
| 68 | affinity: {} |
| 69 | |
| 70 | # probe configuration parameters |
| 71 | liveness: |
| 72 | initialDelaySeconds: 20 |
| 73 | periodSeconds: 10 |
| 74 | # necessary to disable liveness probe when setting breakpoints |
| 75 | # in debugger so K8s doesn't restart unresponsive container |
| 76 | enabled: true |
| 77 | |
| 78 | readiness: |
| 79 | initialDelaySeconds: 20 |
| 80 | periodSeconds: 10 |
| 81 | |
| 82 | service: |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 83 | type: ClusterIP |
mmis | 9597113 | 2018-07-17 00:13:13 +0100 | [diff] [blame] | 84 | name: policy-apex-pdp |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 85 | internalPort: 6969 |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 86 | ports: |
| 87 | - name: http |
| 88 | port: 6969 |
mmis | 9597113 | 2018-07-17 00:13:13 +0100 | [diff] [blame] | 89 | |
| 90 | ingress: |
| 91 | enabled: false |
| 92 | |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 93 | serviceMesh: |
| 94 | authorizationPolicy: |
| 95 | authorizedPrincipals: |
| 96 | - serviceAccount: message-router-read |
| 97 | |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 98 | # Resource Limit flavor -By Default using small |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 99 | # Segregation for Different environment (Small and Large) |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 100 | flavor: small |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 101 | resources: |
| 102 | small: |
| 103 | limits: |
| 104 | cpu: 1 |
| 105 | memory: 4Gi |
| 106 | requests: |
| 107 | cpu: 10m |
| 108 | memory: 1Gi |
| 109 | large: |
| 110 | limits: |
| 111 | cpu: 2 |
| 112 | memory: 8Gi |
| 113 | requests: |
| 114 | cpu: 20m |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 115 | memory: 2Gi |
Pamela Dragosh | 54048d3 | 2018-11-09 07:09:41 -0500 | [diff] [blame] | 116 | unlimited: {} |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 117 | |
| 118 | #Pods Service Account |
| 119 | serviceAccount: |
| 120 | nameOverride: policy-apex-pdp |
| 121 | roles: |
| 122 | - read |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 123 | |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 124 | metrics: |
| 125 | serviceMonitor: |
| 126 | # Override the labels based on the Prometheus config parameter: serviceMonitorSelector. |
| 127 | # The default operator for prometheus enforces the below label. |
| 128 | labels: |
| 129 | release: prometheus |
| 130 | enabled: true |
| 131 | port: policy-apex-pdp |
| 132 | interval: 60s |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 133 | isHttps: false |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 134 | basicAuth: |
| 135 | enabled: true |
| 136 | externalSecretNameSuffix: policy-apex-pdp-restserver-creds |
| 137 | externalSecretUserKey: login |
| 138 | externalSecretPasswordKey: password |
| 139 | selector: |
| 140 | app: '{{ include "common.name" . }}' |
| 141 | chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}' |
| 142 | release: '{{ include "common.release" . }}' |
| 143 | heritage: '{{ .Release.Service }}' |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 144 | |
| 145 | # application configuration |
| 146 | config: |
| 147 | # Event consumption (kafka) properties |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 148 | useStrimziKafkaPf: true |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 149 | kafkaBootstrap: strimzi-kafka-bootstrap |
| 150 | kafka: |
| 151 | consumer: |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 152 | groupId: policy-apex |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 153 | app: |
| 154 | listener: |
| 155 | policyPdpPapTopic: policy-pdp-pap |
| 156 | # If targeting a custom kafka cluster, ie useStrimziKakfa: false |
| 157 | # uncomment below config and target your kafka bootstrap servers, |
| 158 | # along with any other security config. |
| 159 | # |
| 160 | # eventConsumption: |
| 161 | # spring.kafka.bootstrap-servers: <kafka-bootstrap>:9092 |
| 162 | # spring.kafka.security.protocol: PLAINTEXT |
| 163 | # spring.kafka.consumer.group-id: policy-group |
| 164 | # |
| 165 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 166 | # All the added properties must be in "key: value" format instead of yaml. |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 167 | kafkaUser: |
| 168 | authenticationType: scram-sha-512 |
| 169 | acls: |
| 170 | - name: policy-apex |
| 171 | type: group |
| 172 | operations: [Create, Describe, Read, Write] |
| 173 | - name: policy-pdp-pap |
| 174 | type: topic |
| 175 | patternType: prefix |
| 176 | operations: [Create, Describe, Read, Write] |
| 177 | - name: policy-heartbeat |
| 178 | type: topic |
| 179 | patternType: prefix |
| 180 | operations: [Create, Describe, Read, Write] |
| 181 | |
| 182 | readinessCheck: |
| 183 | wait_for: |
| 184 | - message-router |