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 | #Strimzi Kafka properties |
| 25 | useStrimziKafka: set-via-parent-chart-global-value |
| 26 | kafkaTopics: |
| 27 | acRuntimeTopic: |
| 28 | name: &acRuntimeTopic policy.clamp-runtime-acm |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 29 | |
| 30 | ################################################################# |
| 31 | # Secrets metaconfig |
| 32 | ################################################################# |
| 33 | secrets: |
| 34 | - uid: restserver-secret |
| 35 | type: basicAuth |
| 36 | externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}' |
| 37 | login: '{{ .Values.restServer.user }}' |
| 38 | password: '{{ .Values.restServer.password }}' |
| 39 | passwordPolicy: required |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 40 | |
| 41 | ################################################################# |
| 42 | # Application configuration defaults. |
| 43 | ################################################################# |
| 44 | # application image |
saul.gill | ef208b0 | 2023-04-26 16:16:05 +0100 | [diff] [blame] | 45 | image: onap/policy-clamp-ac-a1pms-ppnt:6.4.2 |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 46 | pullPolicy: Always |
| 47 | |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 48 | componentName: &componentName policy-clamp-ac-a1pms-ppnt |
| 49 | |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 50 | # application configuration |
| 51 | restServer: |
| 52 | user: participantUser |
| 53 | password: zb!XztG34 |
| 54 | |
| 55 | a1pmsconfig: |
| 56 | a1pms: |
| 57 | baseUrl: http://a1policymanagement.onap:8081 |
| 58 | headers: |
| 59 | content-type: application/json |
| 60 | endpoints: |
| 61 | health: /a1-policy/v2/rics |
| 62 | services: /a1-policy/v2/services |
| 63 | service: /a1-policy/v2/services/{service_id} |
| 64 | |
| 65 | # flag to enable debugging - application support required |
| 66 | debugEnabled: false |
| 67 | |
| 68 | # default number of instances |
| 69 | replicaCount: 1 |
| 70 | |
| 71 | nodeSelector: {} |
| 72 | |
| 73 | affinity: {} |
| 74 | ingress: |
| 75 | enabled: false |
| 76 | |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 77 | serviceMesh: |
| 78 | authorizationPolicy: |
| 79 | authorizedPrincipals: |
| 80 | - serviceAccount: message-router-read |
| 81 | |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 82 | # probe configuration parameters |
| 83 | liveness: |
| 84 | initialDelaySeconds: 20 |
| 85 | periodSeconds: 10 |
| 86 | # necessary to disable liveness probe when setting breakpoints |
| 87 | # in debugger so K8s doesn't restart unresponsive container |
| 88 | enabled: true |
Fiete Ostkamp | 7044e68 | 2023-04-19 13:25:18 +0000 | [diff] [blame] | 89 | port: http-a1pms-api |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 90 | |
| 91 | readiness: |
| 92 | initialDelaySeconds: 20 |
| 93 | periodSeconds: 10 |
Fiete Ostkamp | 7044e68 | 2023-04-19 13:25:18 +0000 | [diff] [blame] | 94 | port: http-a1pms-api |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 95 | |
| 96 | service: |
| 97 | type: ClusterIP |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 98 | name: *componentName |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 99 | ports: |
Fiete Ostkamp | 7044e68 | 2023-04-19 13:25:18 +0000 | [diff] [blame] | 100 | - name: http-a1pms-api |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 101 | port: 8086 |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 102 | |
| 103 | flavor: small |
| 104 | resources: |
| 105 | small: |
| 106 | limits: |
| 107 | cpu: 1 |
| 108 | memory: 4Gi |
| 109 | requests: |
| 110 | cpu: 100m |
| 111 | memory: 1Gi |
| 112 | large: |
| 113 | limits: |
| 114 | cpu: 2 |
| 115 | memory: 8Gi |
| 116 | requests: |
| 117 | cpu: 200m |
| 118 | memory: 2Gi |
| 119 | unlimited: {} |
| 120 | #Pods Service Account |
| 121 | serviceAccount: |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 122 | nameOverride: *componentName |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 123 | roles: |
| 124 | - create |
| 125 | |
| 126 | config: |
aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame] | 127 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 128 | # All the added properties must be in "key: value" format instead of yaml. |
| 129 | # additional: |
| 130 | # spring.config.max-size: 200 |
| 131 | # spring.config.min-size: 10 |
| 132 | |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 133 | # Strimzi Kafka config |
| 134 | kafkaUser: |
| 135 | authenticationType: scram-sha-512 |
| 136 | acls: |
| 137 | - name: *componentName |
| 138 | type: group |
| 139 | operations: [Read] |
| 140 | - name: *acRuntimeTopic |
| 141 | type: topic |
| 142 | operations: [Read, Write] |
| 143 | |
| 144 | readinessCheck: |
| 145 | wait_for: |
| 146 | - message-router |