mmis | 9cb5029 | 2018-09-19 00:31:35 +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. |
efiacor | ab235f4 | 2023-02-15 11:51:52 +0000 | [diff] [blame] | 4 | # Modifications Copyright (C) 2023 Nordix Foundation |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [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 | # SPDX-License-Identifier: Apache-2.0 |
| 19 | # ============LICENSE_END========================================================= |
| 20 | |
| 21 | ################################################################# |
Dominik Mizyn | 4aa534f | 2020-04-14 18:03:53 +0200 | [diff] [blame] | 22 | # Secrets metaconfig |
| 23 | ################################################################# |
| 24 | secrets: |
| 25 | - uid: restserver-creds |
| 26 | type: basicAuth |
| 27 | externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}' |
| 28 | login: '{{ .Values.restServer.user }}' |
| 29 | password: '{{ .Values.restServer.password }}' |
| 30 | passwordPolicy: required |
| 31 | - uid: apiparameters-creds |
| 32 | type: basicAuth |
| 33 | externalSecret: '{{ tpl (default "" .Values.apiParameters.credsExternalSecret) . }}' |
| 34 | login: '{{ .Values.apiParameters.user }}' |
| 35 | password: '{{ .Values.apiParameters.password }}' |
| 36 | passwordPolicy: required |
| 37 | - uid: papparameters-creds |
| 38 | type: basicAuth |
| 39 | externalSecret: '{{ tpl (default "" .Values.papParameters.credsExternalSecret) . }}' |
| 40 | login: '{{ .Values.papParameters.user }}' |
| 41 | password: '{{ .Values.papParameters.password }}' |
| 42 | passwordPolicy: required |
| 43 | - uid: sdcbe-creds |
| 44 | type: basicAuth |
| 45 | externalSecret: '{{ tpl (default "" .Values.sdcBe.credsExternalSecret) . }}' |
| 46 | login: '{{ .Values.sdcBe.user }}' |
| 47 | password: '{{ .Values.sdcBe.password }}' |
| 48 | passwordPolicy: required |
efiacor | ab235f4 | 2023-02-15 11:51:52 +0000 | [diff] [blame] | 49 | |
Dominik Mizyn | 4aa534f | 2020-04-14 18:03:53 +0200 | [diff] [blame] | 50 | ################################################################# |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 51 | # Global configuration defaults. |
| 52 | ################################################################# |
| 53 | global: |
| 54 | persistence: {} |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 55 | aafEnabled: true |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 56 | |
| 57 | ################################################################# |
| 58 | # Application configuration defaults. |
| 59 | ################################################################# |
| 60 | # application image |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 61 | image: onap/policy-distribution:2.9.2 |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 62 | pullPolicy: Always |
| 63 | |
| 64 | # flag to enable debugging - application support required |
| 65 | debugEnabled: false |
| 66 | |
efiacor | ab235f4 | 2023-02-15 11:51:52 +0000 | [diff] [blame] | 67 | #Strimzi Kafka User def |
| 68 | kafkaUser: |
| 69 | acls: |
| 70 | - name: policy-distribution |
| 71 | type: group |
| 72 | operations: [Read] |
| 73 | - name: SDC-DISTR |
| 74 | type: topic |
| 75 | patternType: prefix |
| 76 | operations: [Read, Write] |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 77 | |
Dominik Mizyn | 4aa534f | 2020-04-14 18:03:53 +0200 | [diff] [blame] | 78 | restServer: |
| 79 | user: healthcheck |
| 80 | password: zb!XztG34 |
| 81 | apiParameters: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 82 | user: policyadmin |
Dominik Mizyn | 4aa534f | 2020-04-14 18:03:53 +0200 | [diff] [blame] | 83 | password: zb!XztG34 |
| 84 | papParameters: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 85 | user: policyadmin |
Dominik Mizyn | 4aa534f | 2020-04-14 18:03:53 +0200 | [diff] [blame] | 86 | password: zb!XztG34 |
| 87 | sdcBe: |
| 88 | user: policy |
| 89 | password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
| 90 | |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 91 | # default number of instances |
| 92 | replicaCount: 1 |
| 93 | |
| 94 | nodeSelector: {} |
| 95 | |
| 96 | affinity: {} |
| 97 | |
| 98 | # probe configuration parameters |
| 99 | liveness: |
| 100 | initialDelaySeconds: 20 |
| 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 | |
| 106 | readiness: |
| 107 | initialDelaySeconds: 20 |
| 108 | periodSeconds: 10 |
| 109 | |
| 110 | service: |
| 111 | type: ClusterIP |
| 112 | name: policy-distribution |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 113 | internalPort: 6969 |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 114 | ports: |
| 115 | - name: http |
| 116 | port: 6969 |
mmis | 9cb5029 | 2018-09-19 00:31:35 +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: |
| 124 | - serviceAccount: policy-pap-read |
| 125 | |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 126 | flavor: small |
| 127 | resources: |
| 128 | small: |
| 129 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 130 | cpu: 999 |
| 131 | memory: 0.5Gi |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 132 | requests: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 133 | cpu: 0.5 |
| 134 | memory: 0.5Gi |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 135 | large: |
| 136 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 137 | cpu: 999 |
| 138 | memory: 1Gi |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 139 | requests: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 140 | cpu: 1 |
| 141 | memory: 1Gi |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 142 | unlimited: {} |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 143 | |
| 144 | #Pods Service Account |
| 145 | serviceAccount: |
| 146 | nameOverride: policy-distribution |
| 147 | roles: |
| 148 | - read |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 149 | |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 150 | metrics: |
| 151 | serviceMonitor: |
| 152 | # Override the labels based on the Prometheus config parameter: serviceMonitorSelector. |
| 153 | # The default operator for prometheus enforces the below label. |
| 154 | labels: |
| 155 | release: prometheus |
| 156 | enabled: true |
| 157 | port: policy-distribution |
| 158 | interval: 60s |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 159 | isHttps: false |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 160 | basicAuth: |
| 161 | enabled: true |
| 162 | externalSecretNameSuffix: policy-distribution-restserver-creds |
| 163 | externalSecretUserKey: login |
| 164 | externalSecretPasswordKey: password |
| 165 | selector: |
| 166 | app: '{{ include "common.name" . }}' |
| 167 | chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}' |
| 168 | release: '{{ include "common.release" . }}' |
| 169 | heritage: '{{ .Release.Service }}' |