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: {} |
| 28 | |
| 29 | ################################################################# |
Dominik Mizyn | b8c44b4 | 2020-04-21 10:48:27 +0200 | [diff] [blame] | 30 | # Secrets metaconfig |
| 31 | ################################################################# |
| 32 | secrets: |
| 33 | - uid: restserver-creds |
| 34 | type: basicAuth |
| 35 | externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}' |
| 36 | login: '{{ .Values.restServer.user }}' |
| 37 | password: '{{ .Values.restServer.password }}' |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 38 | - uid: policy-kafka-user |
| 39 | externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}' |
| 40 | type: genericKV |
| 41 | envs: |
| 42 | - name: sasl.jaas.config |
| 43 | value: '{{ .Values.config.someConfig }}' |
| 44 | policy: generate |
Dominik Mizyn | b8c44b4 | 2020-04-21 10:48:27 +0200 | [diff] [blame] | 45 | |
| 46 | ################################################################# |
mmis | 9597113 | 2018-07-17 00:13:13 +0100 | [diff] [blame] | 47 | # Application configuration defaults. |
| 48 | ################################################################# |
| 49 | # application image |
saul.gill | 82b27e6 | 2024-04-26 12:45:10 +0100 | [diff] [blame] | 50 | image: onap/policy-apex-pdp:3.1.2 |
mmis | 9597113 | 2018-07-17 00:13:13 +0100 | [diff] [blame] | 51 | pullPolicy: Always |
| 52 | |
| 53 | # flag to enable debugging - application support required |
| 54 | debugEnabled: false |
| 55 | |
| 56 | # application configuration |
| 57 | |
Dominik Mizyn | b8c44b4 | 2020-04-21 10:48:27 +0200 | [diff] [blame] | 58 | restServer: |
| 59 | user: healthcheck |
| 60 | password: zb!XztG34 |
Dominik Mizyn | b8c44b4 | 2020-04-21 10:48:27 +0200 | [diff] [blame] | 61 | |
mmis | 9597113 | 2018-07-17 00:13:13 +0100 | [diff] [blame] | 62 | # default number of instances |
| 63 | replicaCount: 1 |
| 64 | |
| 65 | nodeSelector: {} |
| 66 | |
| 67 | affinity: {} |
| 68 | |
| 69 | # probe configuration parameters |
| 70 | liveness: |
| 71 | initialDelaySeconds: 20 |
| 72 | periodSeconds: 10 |
| 73 | # necessary to disable liveness probe when setting breakpoints |
| 74 | # in debugger so K8s doesn't restart unresponsive container |
| 75 | enabled: true |
| 76 | |
| 77 | readiness: |
| 78 | initialDelaySeconds: 20 |
| 79 | periodSeconds: 10 |
| 80 | |
| 81 | service: |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 82 | type: ClusterIP |
mmis | 9597113 | 2018-07-17 00:13:13 +0100 | [diff] [blame] | 83 | name: policy-apex-pdp |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 84 | internalPort: 6969 |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 85 | ports: |
| 86 | - name: http |
| 87 | port: 6969 |
mmis | 9597113 | 2018-07-17 00:13:13 +0100 | [diff] [blame] | 88 | |
| 89 | ingress: |
| 90 | enabled: false |
| 91 | |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 92 | serviceMesh: |
| 93 | authorizationPolicy: |
| 94 | authorizedPrincipals: |
rameshiyer27 | bc8a6a4 | 2024-03-11 17:18:11 +0000 | [diff] [blame] | 95 | - serviceAccount: strimzi-kafka-read |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 96 | |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 97 | # Resource Limit flavor -By Default using small |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 98 | # Segregation for Different environment (Small and Large) |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 99 | flavor: small |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 100 | resources: |
| 101 | small: |
| 102 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 103 | cpu: "1" |
| 104 | memory: "1Gi" |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 105 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 106 | cpu: "0.5" |
| 107 | memory: "1Gi" |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 108 | large: |
| 109 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 110 | cpu: "2" |
| 111 | memory: "2Gi" |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 112 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 113 | cpu: "1" |
| 114 | memory: "2Gi" |
Pamela Dragosh | 54048d3 | 2018-11-09 07:09:41 -0500 | [diff] [blame] | 115 | unlimited: {} |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 116 | |
| 117 | #Pods Service Account |
| 118 | serviceAccount: |
| 119 | nameOverride: policy-apex-pdp |
| 120 | roles: |
| 121 | - read |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 122 | |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 123 | metrics: |
| 124 | serviceMonitor: |
| 125 | # Override the labels based on the Prometheus config parameter: serviceMonitorSelector. |
| 126 | # The default operator for prometheus enforces the below label. |
| 127 | labels: |
| 128 | release: prometheus |
| 129 | enabled: true |
| 130 | port: policy-apex-pdp |
| 131 | interval: 60s |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 132 | isHttps: false |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 133 | basicAuth: |
| 134 | enabled: true |
| 135 | externalSecretNameSuffix: policy-apex-pdp-restserver-creds |
| 136 | externalSecretUserKey: login |
| 137 | externalSecretPasswordKey: password |
| 138 | selector: |
| 139 | app: '{{ include "common.name" . }}' |
| 140 | chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}' |
| 141 | release: '{{ include "common.release" . }}' |
| 142 | heritage: '{{ .Release.Service }}' |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 143 | |
| 144 | # application configuration |
| 145 | config: |
| 146 | # Event consumption (kafka) properties |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 147 | kafka: |
| 148 | consumer: |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 149 | groupId: policy-apex |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 150 | app: |
| 151 | listener: |
| 152 | policyPdpPapTopic: policy-pdp-pap |
rameshiyer27 | bc8a6a4 | 2024-03-11 17:18:11 +0000 | [diff] [blame] | 153 | |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 154 | kafkaUser: |
| 155 | authenticationType: scram-sha-512 |
| 156 | acls: |
| 157 | - name: policy-apex |
| 158 | type: group |
| 159 | operations: [Create, Describe, Read, Write] |
| 160 | - name: policy-pdp-pap |
| 161 | type: topic |
| 162 | patternType: prefix |
| 163 | operations: [Create, Describe, Read, Write] |
| 164 | - name: policy-heartbeat |
| 165 | type: topic |
| 166 | patternType: prefix |
| 167 | operations: [Create, Describe, Read, Write] |