aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 2 | # Copyright (C) 2022-2023 Nordix Foundation. |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 3 | # ================================================================================ |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | # SPDX-License-Identifier: Apache-2.0 |
| 17 | # ============LICENSE_END========================================================= |
| 18 | |
| 19 | ################################################################# |
| 20 | # Global configuration defaults. |
| 21 | ################################################################# |
| 22 | global: |
| 23 | persistence: {} |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 24 | kafkaTopics: |
| 25 | acRuntimeTopic: |
| 26 | name: &acRuntimeTopic policy.clamp-runtime-acm |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 27 | |
| 28 | ################################################################# |
| 29 | # Secrets metaconfig |
| 30 | ################################################################# |
| 31 | secrets: |
| 32 | - uid: restserver-secret |
| 33 | type: basicAuth |
| 34 | externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}' |
| 35 | login: '{{ .Values.restServer.user }}' |
| 36 | password: '{{ .Values.restServer.password }}' |
| 37 | passwordPolicy: required |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 38 | |
| 39 | ################################################################# |
| 40 | # Application configuration defaults. |
| 41 | ################################################################# |
| 42 | # application image |
saul.gill | 1fa9c25 | 2024-05-20 15:34:32 +0100 | [diff] [blame] | 43 | image: onap/policy-clamp-ac-a1pms-ppnt:7.1.3 |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 44 | pullPolicy: Always |
| 45 | |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 46 | componentName: &componentName policy-clamp-ac-a1pms-ppnt |
| 47 | |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 48 | # application configuration |
| 49 | restServer: |
| 50 | user: participantUser |
| 51 | password: zb!XztG34 |
| 52 | |
| 53 | a1pmsconfig: |
| 54 | a1pms: |
| 55 | baseUrl: http://a1policymanagement.onap:8081 |
| 56 | headers: |
| 57 | content-type: application/json |
| 58 | endpoints: |
| 59 | health: /a1-policy/v2/rics |
| 60 | services: /a1-policy/v2/services |
| 61 | service: /a1-policy/v2/services/{service_id} |
| 62 | |
| 63 | # flag to enable debugging - application support required |
| 64 | debugEnabled: false |
| 65 | |
| 66 | # default number of instances |
| 67 | replicaCount: 1 |
| 68 | |
| 69 | nodeSelector: {} |
| 70 | |
| 71 | affinity: {} |
| 72 | ingress: |
| 73 | enabled: false |
| 74 | |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 75 | serviceMesh: |
| 76 | authorizationPolicy: |
| 77 | authorizedPrincipals: |
rameshiyer27 | bc8a6a4 | 2024-03-11 17:18:11 +0000 | [diff] [blame] | 78 | - serviceAccount: strimzi-kafka-read |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 79 | |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 80 | # probe configuration parameters |
| 81 | liveness: |
Andreas Geissler | c50f089 | 2023-06-14 14:21:31 +0200 | [diff] [blame] | 82 | initialDelaySeconds: 60 |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 83 | periodSeconds: 10 |
| 84 | # necessary to disable liveness probe when setting breakpoints |
| 85 | # in debugger so K8s doesn't restart unresponsive container |
| 86 | enabled: true |
Fiete Ostkamp | 7044e68 | 2023-04-19 13:25:18 +0000 | [diff] [blame] | 87 | port: http-a1pms-api |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 88 | |
| 89 | readiness: |
Andreas Geissler | c50f089 | 2023-06-14 14:21:31 +0200 | [diff] [blame] | 90 | initialDelaySeconds: 60 |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 91 | periodSeconds: 10 |
Fiete Ostkamp | 7044e68 | 2023-04-19 13:25:18 +0000 | [diff] [blame] | 92 | port: http-a1pms-api |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 93 | |
| 94 | service: |
| 95 | type: ClusterIP |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 96 | name: *componentName |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 97 | ports: |
Fiete Ostkamp | 7044e68 | 2023-04-19 13:25:18 +0000 | [diff] [blame] | 98 | - name: http-a1pms-api |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 99 | port: 8086 |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 100 | |
| 101 | flavor: small |
| 102 | resources: |
| 103 | small: |
| 104 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 105 | cpu: "1" |
| 106 | memory: "1Gi" |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 107 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 108 | cpu: "0.5" |
| 109 | memory: "1Gi" |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 110 | large: |
| 111 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 112 | cpu: "2" |
| 113 | memory: "2Gi" |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 114 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 115 | cpu: "1" |
| 116 | memory: "2Gi" |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 117 | unlimited: {} |
| 118 | #Pods Service Account |
| 119 | serviceAccount: |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 120 | nameOverride: *componentName |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 121 | roles: |
| 122 | - create |
| 123 | |
| 124 | config: |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 125 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 126 | # All the added properties must be in "key: value" format instead of yaml. |
| 127 | # additional: |
| 128 | # spring.config.max-size: 200 |
| 129 | # spring.config.min-size: 10 |
| 130 | |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 131 | # Strimzi Kafka config |
| 132 | kafkaUser: |
| 133 | authenticationType: scram-sha-512 |
| 134 | acls: |
| 135 | - name: *componentName |
| 136 | type: group |
| 137 | operations: [Read] |
| 138 | - name: *acRuntimeTopic |
| 139 | type: topic |
| 140 | operations: [Read, Write] |