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 | 5e61140 | 2023-03-02 11:49:23 +0000 | [diff] [blame] | 61 | image: onap/policy-distribution:2.9.1 |
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 | |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 121 | flavor: small |
| 122 | resources: |
| 123 | small: |
| 124 | limits: |
| 125 | cpu: 1 |
| 126 | memory: 4Gi |
| 127 | requests: |
| 128 | cpu: 100m |
| 129 | memory: 1Gi |
| 130 | large: |
| 131 | limits: |
| 132 | cpu: 2 |
| 133 | memory: 8Gi |
| 134 | requests: |
| 135 | cpu: 200m |
| 136 | memory: 2Gi |
| 137 | unlimited: {} |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 138 | |
| 139 | #Pods Service Account |
| 140 | serviceAccount: |
| 141 | nameOverride: policy-distribution |
| 142 | roles: |
| 143 | - read |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 144 | |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 145 | metrics: |
| 146 | serviceMonitor: |
| 147 | # Override the labels based on the Prometheus config parameter: serviceMonitorSelector. |
| 148 | # The default operator for prometheus enforces the below label. |
| 149 | labels: |
| 150 | release: prometheus |
| 151 | enabled: true |
| 152 | port: policy-distribution |
| 153 | interval: 60s |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 154 | isHttps: false |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 155 | basicAuth: |
| 156 | enabled: true |
| 157 | externalSecretNameSuffix: policy-distribution-restserver-creds |
| 158 | externalSecretUserKey: login |
| 159 | externalSecretPasswordKey: password |
| 160 | selector: |
| 161 | app: '{{ include "common.name" . }}' |
| 162 | chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}' |
| 163 | release: '{{ include "common.release" . }}' |
| 164 | heritage: '{{ .Release.Service }}' |