jhh | d74fe9f | 2021-04-15 11:04:39 -0500 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs |
| 2 | # Copyright © 2017, 2021 Bell Canada |
jhh | 0d1c0e8 | 2022-04-08 14:36:15 -0500 | [diff] [blame] | 3 | # Modifications Copyright © 2018-2022 AT&T Intellectual Property |
Andreas Geissler | 5768113 | 2024-07-29 10:18:26 +0200 | [diff] [blame^] | 4 | # Modifications Copyright © 2024 Deutsche Telekom |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 5 | # |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | |
| 18 | ################################################################# |
| 19 | # Global configuration defaults. |
| 20 | ################################################################# |
| 21 | global: |
| 22 | nodePortPrefix: 302 |
jhh | 0109659 | 2019-09-04 07:47:25 -0500 | [diff] [blame] | 23 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 24 | ################################################################# |
Krzysztof Opasiak | 68b1c92 | 2020-03-26 23:59:36 +0100 | [diff] [blame] | 25 | # Secrets metaconfig |
| 26 | ################################################################# |
| 27 | secrets: |
| 28 | - uid: db-secret |
| 29 | type: basicAuth |
| 30 | externalSecret: '{{ tpl (default "" .Values.db.credsExternalSecret) . }}' |
| 31 | login: '{{ .Values.db.user }}' |
| 32 | password: '{{ .Values.db.password }}' |
| 33 | passwordPolicy: required |
jhh | 0d1c0e8 | 2022-04-08 14:36:15 -0500 | [diff] [blame] | 34 | - uid: telemetry-creds |
| 35 | type: basicAuth |
| 36 | externalSecret: '{{ tpl (default "" .Values.telemetry.credsExternalSecret) . }}' |
| 37 | login: '{{ .Values.telemetry.user }}' |
| 38 | password: '{{ .Values.telemetry.password }}' |
| 39 | passwordPolicy: required |
Krzysztof Opasiak | 68b1c92 | 2020-03-26 23:59:36 +0100 | [diff] [blame] | 40 | |
| 41 | ################################################################# |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 42 | # Application configuration defaults. |
| 43 | ################################################################# |
| 44 | # application image |
saul.gill | 1fa9c25 | 2024-05-20 15:34:32 +0100 | [diff] [blame] | 45 | image: onap/policy-pdpd-cl:2.1.3 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 46 | pullPolicy: Always |
| 47 | |
| 48 | # flag to enable debugging - application support required |
| 49 | debugEnabled: false |
| 50 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 51 | # default number of instances |
Jorge Hernandez | d9f7545 | 2018-06-04 11:18:52 -0500 | [diff] [blame] | 52 | replicaCount: 1 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 53 | |
| 54 | nodeSelector: {} |
| 55 | |
| 56 | affinity: {} |
| 57 | |
| 58 | # probe configuration parameters |
| 59 | liveness: |
Jorge Hernandez | 432aa31 | 2018-06-04 18:20:43 -0500 | [diff] [blame] | 60 | initialDelaySeconds: 180 |
jhh | 0d1c0e8 | 2022-04-08 14:36:15 -0500 | [diff] [blame] | 61 | periodSeconds: 60 |
| 62 | timeoutSeconds: 10 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 63 | # necessary to disable liveness probe when setting breakpoints |
| 64 | # in debugger so K8s doesn't restart unresponsive container |
Jorge Hernandez | 328eadb | 2018-05-15 07:52:21 -0500 | [diff] [blame] | 65 | enabled: true |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 66 | |
| 67 | readiness: |
Jorge Hernandez | d9f7545 | 2018-06-04 11:18:52 -0500 | [diff] [blame] | 68 | initialDelaySeconds: 60 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 69 | periodSeconds: 10 |
| 70 | |
| 71 | service: |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 72 | type: ClusterIP |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 73 | name: policy-drools-pdp |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 74 | internalPort: 6969 |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 75 | ports: |
| 76 | - name: http |
| 77 | port: 6969 |
| 78 | - name: http-2 |
| 79 | port: 9696 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 80 | |
| 81 | ingress: |
| 82 | enabled: false |
| 83 | |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 84 | serviceMesh: |
| 85 | authorizationPolicy: |
| 86 | authorizedPrincipals: |
rameshiyer27 | bc8a6a4 | 2024-03-11 17:18:11 +0000 | [diff] [blame] | 87 | - serviceAccount: strimzi-kafka-read |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 88 | |
jhh | 0109659 | 2019-09-04 07:47:25 -0500 | [diff] [blame] | 89 | server: |
jhh | ed6839f | 2020-05-08 12:28:27 -0500 | [diff] [blame] | 90 | jvmOpts: -server -XshowSettings:vm |
jhh | 0109659 | 2019-09-04 07:47:25 -0500 | [diff] [blame] | 91 | |
jhh | 0109659 | 2019-09-04 07:47:25 -0500 | [diff] [blame] | 92 | telemetry: |
| 93 | user: demo@people.osaaf.org |
| 94 | password: demo123456! |
| 95 | |
| 96 | nexus: |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 97 | name: policy-nexus |
| 98 | port: 8081 |
jhh | 8534fea | 2019-09-20 14:35:20 -0500 | [diff] [blame] | 99 | user: admin |
jhh | 0109659 | 2019-09-04 07:47:25 -0500 | [diff] [blame] | 100 | password: admin123 |
jhh | d2b9ed8 | 2019-12-10 17:15:28 -0600 | [diff] [blame] | 101 | offline: true |
jhh | 0109659 | 2019-09-04 07:47:25 -0500 | [diff] [blame] | 102 | |
| 103 | db: |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 104 | name: policy-mariadb |
Andreas Geissler | cfd8434 | 2023-08-16 17:18:49 +0200 | [diff] [blame] | 105 | user: policy-user |
jhh | 0109659 | 2019-09-04 07:47:25 -0500 | [diff] [blame] | 106 | password: policy_user |
| 107 | |
| 108 | pap: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 109 | user: policyadmin |
jhh | 0109659 | 2019-09-04 07:47:25 -0500 | [diff] [blame] | 110 | password: zb!XztG34 |
| 111 | |
| 112 | pdp: |
| 113 | user: healthcheck |
| 114 | password: zb!XztG34 |
| 115 | |
jhh | df5484e | 2020-04-06 15:08:35 -0500 | [diff] [blame] | 116 | papl: |
| 117 | user: testpap |
| 118 | password: alpha123 |
| 119 | |
| 120 | pdpl: |
| 121 | user: testpdp |
| 122 | password: alpha123 |
| 123 | |
jhh | 0109659 | 2019-09-04 07:47:25 -0500 | [diff] [blame] | 124 | aai: |
| 125 | user: policy@policy.onap.org |
| 126 | password: demo123456! |
| 127 | |
| 128 | so: |
| 129 | user: InfraPortalClient |
| 130 | password: password1$ |
| 131 | |
| 132 | vfc: |
| 133 | user: |
| 134 | password: |
| 135 | |
| 136 | sdnc: |
| 137 | user: admin |
| 138 | password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
| 139 | |
| 140 | dmaap: |
| 141 | brmsgw: |
| 142 | key: |
| 143 | password: |
| 144 | pap: |
| 145 | key: |
| 146 | password: |
| 147 | |
Rashmi Pujar | 3cfa4cc | 2019-10-17 16:05:50 -0400 | [diff] [blame] | 148 | cds: |
| 149 | grpc: |
| 150 | user: ccsdkapps |
| 151 | password: ccsdkapps |
| 152 | svcName: cds-blueprints-processor-grpc |
| 153 | svcPort: 9111 |
| 154 | |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 155 | # Resource Limit flavor -By Default using small |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 156 | # Segregation for Different environment (small, large, or unlimited) |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 157 | flavor: small |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 158 | resources: |
| 159 | small: |
| 160 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 161 | cpu: "1" |
Andreas Geissler | 8cbb3d9 | 2024-03-12 16:44:56 +0100 | [diff] [blame] | 162 | memory: "800Mi" |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 163 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 164 | cpu: "0.5" |
Andreas Geissler | 8cbb3d9 | 2024-03-12 16:44:56 +0100 | [diff] [blame] | 165 | memory: "800Mi" |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 166 | large: |
| 167 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 168 | cpu: "2" |
| 169 | memory: "1.6Gi" |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 170 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 171 | cpu: "1" |
| 172 | memory: "1.6Gi" |
Pamela Dragosh | 54048d3 | 2018-11-09 07:09:41 -0500 | [diff] [blame] | 173 | unlimited: {} |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 174 | |
Andreas Geissler | 5768113 | 2024-07-29 10:18:26 +0200 | [diff] [blame^] | 175 | securityContext: |
| 176 | user_id: 100 |
| 177 | group_id: 102 |
| 178 | |
| 179 | dirSizes: |
| 180 | emptyDir: |
| 181 | sizeLimit: 1Gi |
| 182 | logDir: |
| 183 | sizeLimit: 500Mi |
| 184 | |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 185 | #Pods Service Account |
| 186 | serviceAccount: |
| 187 | nameOverride: policy-drools-pdp |
| 188 | roles: |
| 189 | - read |
jhh | 0d1c0e8 | 2022-04-08 14:36:15 -0500 | [diff] [blame] | 190 | |
jhh | 0d1c0e8 | 2022-04-08 14:36:15 -0500 | [diff] [blame] | 191 | metrics: |
| 192 | serviceMonitor: |
| 193 | # Override the labels based on the Prometheus config parameter: serviceMonitorSelector. |
| 194 | # The default operator for prometheus enforces the below label. |
| 195 | labels: |
| 196 | release: prometheus |
| 197 | enabled: true |
| 198 | port: policy-drools-pdp-9696 |
| 199 | interval: 60s |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 200 | isHttps: false |
jhh | 0d1c0e8 | 2022-04-08 14:36:15 -0500 | [diff] [blame] | 201 | basicAuth: |
| 202 | enabled: true |
| 203 | externalSecretNameSuffix: policy-drools-pdp-telemetry-creds |
| 204 | externalSecretUserKey: login |
| 205 | externalSecretPasswordKey: password |
| 206 | selector: |
| 207 | app: '{{ include "common.name" . }}' |
| 208 | chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}' |
| 209 | release: '{{ include "common.release" . }}' |
| 210 | heritage: '{{ .Release.Service }}' |
rameshiyer27 | bc8a6a4 | 2024-03-11 17:18:11 +0000 | [diff] [blame] | 211 | |
| 212 | config: |
| 213 | # Event consumption (kafka) properties |
| 214 | kafka: |
| 215 | consumer: |
| 216 | groupId: policy-drools-pdp |
| 217 | app: |
| 218 | listener: |
| 219 | policyPdpPapTopic: policy-pdp-pap |
| 220 | |
| 221 | # Strimzi Kafka config |
| 222 | kafkaUser: |
| 223 | authenticationType: scram-sha-512 |
| 224 | acls: |
| 225 | - name: policy-drools-pdp |
| 226 | type: group |
| 227 | operations: [ Create, Describe, Read, Write ] |
| 228 | - name: policy-pdp-pap |
| 229 | type: topic |
| 230 | patternType: prefix |
| 231 | operations: [ Create, Describe, Read, Write ] |