ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2019 Nordix Foundation. |
jhh | 999c224 | 2021-02-24 12:10:02 -0600 | [diff] [blame] | 3 | # Modifications Copyright (C) 2019-2021 AT&T Intellectual Property. |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 4 | # Modifications Copyright (C) 2020-2022 Bell Canada. All rights reserved. |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 5 | # Modifications Copyright © 2022 Nordix Foundation |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [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: |
Bruno Sakoto | 425d5be | 2020-05-20 07:25:41 -0400 | [diff] [blame] | 26 | nodePortPrefixExt: 304 |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 27 | persistence: {} |
Krzysztof Opasiak | 3d9dc8b | 2020-03-31 23:05:16 +0200 | [diff] [blame] | 28 | |
| 29 | ################################################################# |
| 30 | # Secrets metaconfig |
| 31 | ################################################################# |
| 32 | secrets: |
| 33 | - uid: db-secret |
| 34 | type: basicAuth |
| 35 | externalSecret: '{{ tpl (default "" .Values.db.credsExternalSecret) . }}' |
| 36 | login: '{{ .Values.db.user }}' |
| 37 | password: '{{ .Values.db.password }}' |
| 38 | passwordPolicy: required |
Dominik Mizyn | 389fca1 | 2020-04-09 22:37:00 +0200 | [diff] [blame] | 39 | - uid: restserver-secret |
| 40 | type: basicAuth |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 41 | externalSecret: '{{ tpl (default "" .Values.restServer.papUserExternalSecret) . }}' |
Dominik Mizyn | 389fca1 | 2020-04-09 22:37:00 +0200 | [diff] [blame] | 42 | login: '{{ .Values.restServer.user }}' |
| 43 | password: '{{ .Values.restServer.password }}' |
| 44 | passwordPolicy: required |
| 45 | - uid: api-secret |
| 46 | type: basicAuth |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 47 | externalSecret: '{{ tpl (default "" .Values.restServer.apiUserExternalSecret) . }}' |
Dominik Mizyn | 389fca1 | 2020-04-09 22:37:00 +0200 | [diff] [blame] | 48 | login: '{{ .Values.healthCheckRestClient.api.user }}' |
| 49 | password: '{{ .Values.healthCheckRestClient.api.password }}' |
| 50 | passwordPolicy: required |
| 51 | - uid: distribution-secret |
| 52 | type: basicAuth |
| 53 | externalSecret: '{{ tpl (default "" .Values.healthCheckRestClient.distribution.credsExternalSecret) . }}' |
| 54 | login: '{{ .Values.healthCheckRestClient.distribution.user }}' |
| 55 | password: '{{ .Values.healthCheckRestClient.distribution.password }}' |
| 56 | passwordPolicy: required |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 57 | - uid: policy-kafka-user |
| 58 | externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}' |
| 59 | type: genericKV |
| 60 | envs: |
| 61 | - name: sasl.jaas.config |
| 62 | value: '{{ .Values.config.someConfig }}' |
| 63 | policy: generate |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 64 | |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 65 | ################################################################# |
| 66 | # Application configuration defaults. |
| 67 | ################################################################# |
| 68 | # application image |
saul.gill | 5e61140 | 2023-03-02 11:49:23 +0000 | [diff] [blame] | 69 | image: onap/policy-pap:2.8.1 |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 70 | pullPolicy: Always |
| 71 | |
| 72 | # flag to enable debugging - application support required |
| 73 | debugEnabled: false |
| 74 | |
| 75 | # application configuration |
| 76 | |
Krzysztof Opasiak | 3d9dc8b | 2020-03-31 23:05:16 +0200 | [diff] [blame] | 77 | db: |
| 78 | user: policy_user |
| 79 | password: policy_user |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 80 | service: |
| 81 | name: policy-mariadb |
| 82 | internalPort: 3306 |
| 83 | |
Dominik Mizyn | 389fca1 | 2020-04-09 22:37:00 +0200 | [diff] [blame] | 84 | restServer: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 85 | user: policyadmin |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 86 | password: zb!XztG34 |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 87 | |
Dominik Mizyn | 389fca1 | 2020-04-09 22:37:00 +0200 | [diff] [blame] | 88 | healthCheckRestClient: |
| 89 | api: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 90 | user: policyadmin |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 91 | password: none |
Dominik Mizyn | 389fca1 | 2020-04-09 22:37:00 +0200 | [diff] [blame] | 92 | distribution: |
| 93 | user: healthcheck |
| 94 | password: zb!XztG34 |
Krzysztof Opasiak | 3d9dc8b | 2020-03-31 23:05:16 +0200 | [diff] [blame] | 95 | |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 96 | # default number of instances |
| 97 | replicaCount: 1 |
| 98 | |
| 99 | nodeSelector: {} |
| 100 | |
| 101 | affinity: {} |
| 102 | |
| 103 | # probe configuration parameters |
| 104 | liveness: |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 105 | initialDelaySeconds: 60 |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 106 | periodSeconds: 10 |
| 107 | # necessary to disable liveness probe when setting breakpoints |
| 108 | # in debugger so K8s doesn't restart unresponsive container |
| 109 | enabled: true |
Bruno Sakoto | 0644c26 | 2020-05-22 16:56:35 -0400 | [diff] [blame] | 110 | port: http-api |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 111 | |
| 112 | readiness: |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 113 | initialDelaySeconds: 10 |
| 114 | periodSeconds: 120 |
Bruno Sakoto | 0644c26 | 2020-05-22 16:56:35 -0400 | [diff] [blame] | 115 | port: http-api |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 116 | api: /policy/pap/v1/healthcheck |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 117 | successThreshold: 1 |
| 118 | failureThreshold: 3 |
| 119 | timeout: 60 |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 120 | |
| 121 | service: |
| 122 | type: ClusterIP |
| 123 | name: policy-pap |
Bruno Sakoto | 0644c26 | 2020-05-22 16:56:35 -0400 | [diff] [blame] | 124 | ports: |
| 125 | - name: http-api |
| 126 | port: 6969 |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 127 | |
| 128 | ingress: |
| 129 | enabled: false |
| 130 | |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 131 | flavor: small |
| 132 | resources: |
| 133 | small: |
| 134 | limits: |
| 135 | cpu: 1 |
| 136 | memory: 4Gi |
| 137 | requests: |
| 138 | cpu: 100m |
| 139 | memory: 1Gi |
| 140 | large: |
| 141 | limits: |
| 142 | cpu: 2 |
| 143 | memory: 8Gi |
| 144 | requests: |
| 145 | cpu: 200m |
| 146 | memory: 2Gi |
| 147 | unlimited: {} |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 148 | |
| 149 | #Pods Service Account |
| 150 | serviceAccount: |
| 151 | nameOverride: policy-pap |
| 152 | roles: |
| 153 | - read |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 154 | |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 155 | metrics: |
| 156 | serviceMonitor: |
| 157 | # Override the labels based on the Prometheus config parameter: serviceMonitorSelector. |
| 158 | # The default operator for prometheus enforces the below label. |
| 159 | labels: |
| 160 | release: prometheus |
| 161 | enabled: true |
| 162 | port: http-api |
| 163 | interval: 60s |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 164 | isHttps: false |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 165 | basicAuth: |
| 166 | enabled: true |
| 167 | externalSecretNameSuffix: policy-pap-user-creds |
| 168 | externalSecretUserKey: login |
| 169 | externalSecretPasswordKey: password |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 170 | |
| 171 | # application configuration |
| 172 | config: |
| 173 | # Event consumption (kafka) properties |
| 174 | useStrimziKafka: true |
| 175 | kafkaBootstrap: strimzi-kafka-bootstrap |
| 176 | kafka: |
| 177 | consumer: |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 178 | groupId: policy-group |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 179 | app: |
| 180 | listener: |
| 181 | policyPdpPapTopic: policy-pdp-pap |
| 182 | # If targeting a custom kafka cluster, ie useStrimziKakfa: false |
| 183 | # uncomment below config and target your kafka bootstrap servers, |
| 184 | # along with any other security config. |
| 185 | # |
| 186 | # eventConsumption: |
| 187 | # spring.kafka.bootstrap-servers: <kafka-bootstrap>:9092 |
| 188 | # spring.kafka.security.protocol: PLAINTEXT |
| 189 | # spring.kafka.consumer.group-id: policy-group |
| 190 | # |
| 191 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 192 | # All the added properties must be in "key: value" format instead of yaml. |