a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2022 Bell Canada. All rights reserved. |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 3 | # Modifications Copyright © 2022 Nordix Foundation |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 4 | # ================================================================================ |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # |
| 17 | # SPDX-License-Identifier: Apache-2.0 |
| 18 | # ============LICENSE_END========================================================= |
| 19 | |
| 20 | spring: |
| 21 | security: |
| 22 | user: |
| 23 | name: "${RESTSERVER_USER}" |
| 24 | password: "${RESTSERVER_PASSWORD}" |
| 25 | http: |
| 26 | converters: |
| 27 | preferred-json-mapper: gson |
| 28 | datasource: |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 29 | {{ if not .Values.global.postgres.localCluster }} |
| 30 | url: jdbc:mariadb://{{ .Values.db.service.name }}:{{ .Values.db.service.internalPort }}/policyadmin |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 31 | driverClassName: org.mariadb.jdbc.Driver |
| 32 | username: "${SQL_USER}" |
| 33 | password: "${SQL_PASSWORD}" |
Prakhar Pandey | a8a47e0 | 2022-04-14 12:15:00 -0400 | [diff] [blame] | 34 | hikari: |
| 35 | maximumPoolSize: 20 |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 36 | jpa: |
| 37 | properties: |
| 38 | hibernate: |
| 39 | dialect: org.hibernate.dialect.MariaDB103Dialect |
| 40 | hibernate: |
| 41 | ddl-auto: none |
| 42 | naming: |
| 43 | physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl |
| 44 | implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 45 | {{- else }} |
| 46 | url: jdbc:postgresql://{{ .Values.db.service.pgName }}:{{ .Values.db.service.internalPgPort }}/policyadmin |
| 47 | driverClassName: org.postgresql.Driver |
| 48 | username: "${SQL_USER}" |
| 49 | password: "${SQL_PASSWORD}" |
| 50 | hikari: |
| 51 | connectionTimeout: 30000 |
| 52 | idleTimeout: 600000 |
| 53 | maxLifetime: 1800000 |
| 54 | maximumPoolSize: 10 |
| 55 | jpa: |
| 56 | hibernate: |
| 57 | ddl-auto: none |
| 58 | naming: |
| 59 | physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl |
| 60 | implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy |
| 61 | properties: |
| 62 | hibernate: |
| 63 | dialect: org.hibernate.dialect.PostgreSQLDialect |
| 64 | format_sql: true |
| 65 | {{ end }} |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 66 | |
| 67 | server: |
| 68 | port: 6969 |
| 69 | ssl: |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 70 | enabled: false |
saul.gill | 5e61140 | 2023-03-02 11:49:23 +0000 | [diff] [blame] | 71 | servlet: |
| 72 | context-path: /policy/pap/v1 |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 73 | |
| 74 | pap: |
| 75 | name: PapGroup |
| 76 | aaf: false |
saul.gill | 5e61140 | 2023-03-02 11:49:23 +0000 | [diff] [blame] | 77 | topic: |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 78 | pdp-pap.name: {{ .Values.config.kafka.topics.policyPdpPap }} |
| 79 | notification.name: {{ .Values.config.kafka.topics.policyNotification }} |
| 80 | heartbeat.name: {{ .Values.config.kafka.topics.policyHeartbeat }} |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 81 | pdpParameters: |
| 82 | heartBeatMs: 120000 |
| 83 | updateParameters: |
| 84 | maxRetryCount: 1 |
| 85 | maxWaitMs: 30000 |
| 86 | stateChangeParameters: |
| 87 | maxRetryCount: 1 |
| 88 | maxWaitMs: 30000 |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 89 | savePdpStatisticsInDb: true |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 90 | topicParameterGroup: |
| 91 | topicSources: |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 92 | - useHttps: false |
| 93 | fetchTimeout: 15000 |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 94 | topic: {{ .Values.config.kafka.topics.policyPdpPap }} |
| 95 | servers: |
rameshiyer27 | bc8a6a4 | 2024-03-11 17:18:11 +0000 | [diff] [blame^] | 96 | - {{ include "common.release" . }}-{{ .Values.global.kafkaBootstrap }} |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 97 | topicCommInfrastructure: kafka |
| 98 | additionalProps: |
| 99 | group.id : {{ .Values.config.kafka.consumer.groupId }} |
| 100 | security.protocol: SASL_PLAINTEXT |
| 101 | sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }} |
| 102 | sasl.jaas.config: ${JAASLOGIN} |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 103 | - useHttps: false |
| 104 | fetchTimeout: 15000 |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 105 | topic: {{ .Values.config.kafka.topics.policyHeartbeat }} |
| 106 | effectiveTopic: {{ .Values.config.kafka.topics.policyPdpPap }} |
| 107 | servers: |
rameshiyer27 | bc8a6a4 | 2024-03-11 17:18:11 +0000 | [diff] [blame^] | 108 | - {{ include "common.release" . }}-{{ .Values.global.kafkaBootstrap }} |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 109 | topicCommInfrastructure: kafka |
| 110 | additionalProps: |
| 111 | group.id : {{ .Values.config.kafka.consumer.groupId }} |
| 112 | security.protocol: SASL_PLAINTEXT |
| 113 | sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }} |
| 114 | sasl.jaas.config: ${JAASLOGIN} |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 115 | topicSinks: |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 116 | - useHttps: false |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 117 | topic: {{ .Values.config.kafka.topics.policyPdpPap }} |
| 118 | servers: |
rameshiyer27 | bc8a6a4 | 2024-03-11 17:18:11 +0000 | [diff] [blame^] | 119 | - {{ include "common.release" . }}-{{ .Values.global.kafkaBootstrap }} |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 120 | topicCommInfrastructure: kafka |
| 121 | additionalProps: |
| 122 | group.id : {{ .Values.config.kafka.consumer.groupId }} |
| 123 | security.protocol: SASL_PLAINTEXT |
| 124 | sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }} |
| 125 | sasl.jaas.config: ${JAASLOGIN} |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 126 | - useHttps: false |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 127 | topic: {{ .Values.config.kafka.topics.policyNotification }} |
| 128 | servers: |
rameshiyer27 | bc8a6a4 | 2024-03-11 17:18:11 +0000 | [diff] [blame^] | 129 | - {{ include "common.release" . }}-{{ .Values.global.kafkaBootstrap }} |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 130 | topicCommInfrastructure: kafka |
| 131 | additionalProps: |
| 132 | group.id : {{ .Values.config.kafka.consumer.groupId }} |
| 133 | security.protocol: SASL_PLAINTEXT |
| 134 | sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }} |
| 135 | sasl.jaas.config: ${JAASLOGIN} |
rameshiyer27 | bc8a6a4 | 2024-03-11 17:18:11 +0000 | [diff] [blame^] | 136 | |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 137 | # If Strimzi Kafka to be used for communication, replace following configuration for topicSources and topicSinks |
| 138 | # servers: |
| 139 | # - {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092 |
| 140 | # topicCommInfrastructure: kafka |
| 141 | # additionalProps: |
| 142 | # security.protocol: SASL_PLAINTEXT |
| 143 | # sasl.mechanism: SCRAM-SHA-512 |
| 144 | # sasl.jaas.config: ${JAASLOGIN} |
| 145 | |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 146 | healthCheckRestClientParameters: |
| 147 | - clientName: api |
| 148 | hostname: policy-api |
| 149 | port: 6969 |
| 150 | userName: "${API_USER}" |
| 151 | password: "${API_PASSWORD}" |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 152 | useHttps: false |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 153 | basePath: policy/api/v1/healthcheck |
| 154 | - clientName: distribution |
| 155 | hostname: policy-distribution |
| 156 | port: 6969 |
| 157 | userName: "${DISTRIBUTION_USER}" |
| 158 | password: "${DISTRIBUTION_PASSWORD}" |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 159 | useHttps: false |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 160 | basePath: healthcheck |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 161 | |
| 162 | management: |
| 163 | endpoints: |
| 164 | web: |
| 165 | base-path: / |
| 166 | exposure: |
| 167 | include: health, metrics, prometheus |
| 168 | path-mapping.prometheus: metrics |