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: {} |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 28 | aafEnabled: true |
Krzysztof Opasiak | 3d9dc8b | 2020-03-31 23:05:16 +0200 | [diff] [blame] | 29 | |
| 30 | ################################################################# |
| 31 | # Secrets metaconfig |
| 32 | ################################################################# |
| 33 | secrets: |
| 34 | - uid: db-secret |
| 35 | type: basicAuth |
| 36 | externalSecret: '{{ tpl (default "" .Values.db.credsExternalSecret) . }}' |
| 37 | login: '{{ .Values.db.user }}' |
| 38 | password: '{{ .Values.db.password }}' |
| 39 | passwordPolicy: required |
Dominik Mizyn | 389fca1 | 2020-04-09 22:37:00 +0200 | [diff] [blame] | 40 | - uid: restserver-secret |
| 41 | type: basicAuth |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 42 | externalSecret: '{{ tpl (default "" .Values.restServer.papUserExternalSecret) . }}' |
Dominik Mizyn | 389fca1 | 2020-04-09 22:37:00 +0200 | [diff] [blame] | 43 | login: '{{ .Values.restServer.user }}' |
| 44 | password: '{{ .Values.restServer.password }}' |
| 45 | passwordPolicy: required |
| 46 | - uid: api-secret |
| 47 | type: basicAuth |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 48 | externalSecret: '{{ tpl (default "" .Values.restServer.apiUserExternalSecret) . }}' |
Dominik Mizyn | 389fca1 | 2020-04-09 22:37:00 +0200 | [diff] [blame] | 49 | login: '{{ .Values.healthCheckRestClient.api.user }}' |
| 50 | password: '{{ .Values.healthCheckRestClient.api.password }}' |
| 51 | passwordPolicy: required |
| 52 | - uid: distribution-secret |
| 53 | type: basicAuth |
| 54 | externalSecret: '{{ tpl (default "" .Values.healthCheckRestClient.distribution.credsExternalSecret) . }}' |
| 55 | login: '{{ .Values.healthCheckRestClient.distribution.user }}' |
| 56 | password: '{{ .Values.healthCheckRestClient.distribution.password }}' |
| 57 | passwordPolicy: required |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 58 | - uid: keystore-password |
| 59 | type: password |
| 60 | externalSecret: '{{ tpl (default "" .Values.certStores.keyStorePasswordExternalSecret) . }}' |
| 61 | password: '{{ .Values.certStores.keyStorePassword }}' |
| 62 | passwordPolicy: required |
| 63 | - uid: truststore-password |
| 64 | type: password |
| 65 | externalSecret: '{{ tpl (default "" .Values.certStores.trustStorePasswordExternalSecret) . }}' |
| 66 | password: '{{ .Values.certStores.trustStorePassword }}' |
| 67 | passwordPolicy: required |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 68 | - uid: policy-kafka-user |
| 69 | externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}' |
| 70 | type: genericKV |
| 71 | envs: |
| 72 | - name: sasl.jaas.config |
| 73 | value: '{{ .Values.config.someConfig }}' |
| 74 | policy: generate |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 75 | |
| 76 | certStores: |
| 77 | keyStorePassword: Pol1cy_0nap |
| 78 | trustStorePassword: Pol1cy_0nap |
| 79 | |
| 80 | certInitializer: |
| 81 | nameOverride: policy-pap-cert-initializer |
| 82 | aafDeployFqi: deployer@people.osaaf.org |
| 83 | aafDeployPass: demo123456! |
| 84 | fqdn: policy |
| 85 | fqi: policy@policy.onap.org |
| 86 | public_fqdn: policy.onap.org |
| 87 | cadi_latitude: "0.0" |
| 88 | cadi_longitude: "0.0" |
| 89 | credsPath: /opt/app/osaaf/local |
| 90 | app_ns: org.osaaf.aaf |
| 91 | uid: 100 |
| 92 | gid: 101 |
| 93 | aaf_add_config: > |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 94 | echo "export KEYSTORE='{{ .Values.credsPath }}/org.onap.policy.p12'" > {{ .Values.credsPath }}/.ci; |
| 95 | echo "export KEYSTORE_PASSWD='${cadi_keystore_password_p12}'" >> {{ .Values.credsPath }}/.ci; |
| 96 | chown -R {{ .Values.uid }}:{{ .Values.gid }} $(dirname {{ .Values.credsPath }}); |
| 97 | |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 98 | |
| 99 | ################################################################# |
| 100 | # Application configuration defaults. |
| 101 | ################################################################# |
| 102 | # application image |
liamfallon | cbb7281 | 2022-10-21 18:13:29 +0100 | [diff] [blame] | 103 | image: onap/policy-pap:2.7.1 |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 104 | pullPolicy: Always |
| 105 | |
| 106 | # flag to enable debugging - application support required |
| 107 | debugEnabled: false |
| 108 | |
| 109 | # application configuration |
| 110 | |
Krzysztof Opasiak | 3d9dc8b | 2020-03-31 23:05:16 +0200 | [diff] [blame] | 111 | db: |
| 112 | user: policy_user |
| 113 | password: policy_user |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 114 | service: |
| 115 | name: policy-mariadb |
| 116 | internalPort: 3306 |
| 117 | |
Dominik Mizyn | 389fca1 | 2020-04-09 22:37:00 +0200 | [diff] [blame] | 118 | restServer: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 119 | user: policyadmin |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 120 | password: zb!XztG34 |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 121 | |
Dominik Mizyn | 389fca1 | 2020-04-09 22:37:00 +0200 | [diff] [blame] | 122 | healthCheckRestClient: |
| 123 | api: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 124 | user: policyadmin |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 125 | password: none |
Dominik Mizyn | 389fca1 | 2020-04-09 22:37:00 +0200 | [diff] [blame] | 126 | distribution: |
| 127 | user: healthcheck |
| 128 | password: zb!XztG34 |
Krzysztof Opasiak | 3d9dc8b | 2020-03-31 23:05:16 +0200 | [diff] [blame] | 129 | |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 130 | # default number of instances |
| 131 | replicaCount: 1 |
| 132 | |
| 133 | nodeSelector: {} |
| 134 | |
| 135 | affinity: {} |
| 136 | |
| 137 | # probe configuration parameters |
| 138 | liveness: |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 139 | initialDelaySeconds: 60 |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 140 | periodSeconds: 10 |
| 141 | # necessary to disable liveness probe when setting breakpoints |
| 142 | # in debugger so K8s doesn't restart unresponsive container |
| 143 | enabled: true |
Bruno Sakoto | 0644c26 | 2020-05-22 16:56:35 -0400 | [diff] [blame] | 144 | port: http-api |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 145 | |
| 146 | readiness: |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 147 | initialDelaySeconds: 10 |
| 148 | periodSeconds: 120 |
Bruno Sakoto | 0644c26 | 2020-05-22 16:56:35 -0400 | [diff] [blame] | 149 | port: http-api |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 150 | api: /policy/pap/v1/healthcheck |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 151 | successThreshold: 1 |
| 152 | failureThreshold: 3 |
| 153 | timeout: 60 |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 154 | |
| 155 | service: |
| 156 | type: ClusterIP |
| 157 | name: policy-pap |
Bruno Sakoto | 0644c26 | 2020-05-22 16:56:35 -0400 | [diff] [blame] | 158 | useNodePortExt: true |
| 159 | ports: |
| 160 | - name: http-api |
| 161 | port: 6969 |
| 162 | nodePort: 42 |
ramverma | 1a3b8ad | 2019-02-25 12:45:11 +0000 | [diff] [blame] | 163 | |
| 164 | ingress: |
| 165 | enabled: false |
| 166 | |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 167 | flavor: small |
| 168 | resources: |
| 169 | small: |
| 170 | limits: |
| 171 | cpu: 1 |
| 172 | memory: 4Gi |
| 173 | requests: |
| 174 | cpu: 100m |
| 175 | memory: 1Gi |
| 176 | large: |
| 177 | limits: |
| 178 | cpu: 2 |
| 179 | memory: 8Gi |
| 180 | requests: |
| 181 | cpu: 200m |
| 182 | memory: 2Gi |
| 183 | unlimited: {} |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 184 | |
| 185 | #Pods Service Account |
| 186 | serviceAccount: |
| 187 | nameOverride: policy-pap |
| 188 | roles: |
| 189 | - read |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 190 | |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [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: http-api |
| 199 | interval: 60s |
| 200 | isHttps: true |
| 201 | basicAuth: |
| 202 | enabled: true |
| 203 | externalSecretNameSuffix: policy-pap-user-creds |
| 204 | externalSecretUserKey: login |
| 205 | externalSecretPasswordKey: password |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 206 | |
| 207 | # application configuration |
| 208 | config: |
| 209 | # Event consumption (kafka) properties |
| 210 | useStrimziKafka: true |
| 211 | kafkaBootstrap: strimzi-kafka-bootstrap |
| 212 | kafka: |
| 213 | consumer: |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 214 | groupId: policy-group |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 215 | app: |
| 216 | listener: |
| 217 | policyPdpPapTopic: policy-pdp-pap |
| 218 | # If targeting a custom kafka cluster, ie useStrimziKakfa: false |
| 219 | # uncomment below config and target your kafka bootstrap servers, |
| 220 | # along with any other security config. |
| 221 | # |
| 222 | # eventConsumption: |
| 223 | # spring.kafka.bootstrap-servers: <kafka-bootstrap>:9092 |
| 224 | # spring.kafka.security.protocol: PLAINTEXT |
| 225 | # spring.kafka.consumer.group-id: policy-group |
| 226 | # |
| 227 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 228 | # All the added properties must be in "key: value" format instead of yaml. |