rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 2 | # Copyright (C) 2021-2023 Nordix Foundation. |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [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: |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 23 | persistence: {} |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 24 | aafEnabled: false |
| 25 | #Strimzi Kafka properties |
| 26 | useStrimziKafka: set-via-parent-chart-global-value |
| 27 | kafkaTopics: |
| 28 | acRuntimeTopic: |
| 29 | name: &acRuntimeTopic policy.clamp-runtime-acm |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 30 | |
| 31 | ################################################################# |
| 32 | # Secrets metaconfig |
| 33 | ################################################################# |
| 34 | secrets: |
| 35 | - uid: restserver-secret |
| 36 | type: basicAuth |
| 37 | externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}' |
| 38 | login: '{{ .Values.restServer.user }}' |
| 39 | password: '{{ .Values.restServer.password }}' |
| 40 | passwordPolicy: required |
| 41 | - uid: keystore-password |
| 42 | type: password |
| 43 | externalSecret: '{{ tpl (default "" .Values.certStores.keyStorePasswordExternalSecret) . }}' |
| 44 | password: '{{ .Values.certStores.keyStorePassword }}' |
| 45 | passwordPolicy: required |
| 46 | - uid: truststore-password |
| 47 | type: password |
| 48 | externalSecret: '{{ tpl (default "" .Values.certStores.trustStorePasswordExternalSecret) . }}' |
| 49 | password: '{{ .Values.certStores.trustStorePassword }}' |
| 50 | passwordPolicy: required |
| 51 | |
| 52 | certStores: |
| 53 | keyStorePassword: Pol1cy_0nap |
| 54 | trustStorePassword: Pol1cy_0nap |
| 55 | |
| 56 | certInitializer: |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 57 | nameOverride: policy-clamp-ac-http-ppnt-cert-initializer |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 58 | aafDeployFqi: deployer@people.osaaf.org |
| 59 | aafDeployPass: demo123456! |
| 60 | fqdn: policy |
| 61 | fqi: policy@policy.onap.org |
| 62 | public_fqdn: policy.onap.org |
| 63 | cadi_latitude: "0.0" |
| 64 | cadi_longitude: "0.0" |
| 65 | credsPath: /opt/app/osaaf/local |
| 66 | app_ns: org.osaaf.aaf |
| 67 | uid: 100 |
| 68 | gid: 101 |
| 69 | aaf_add_config: > |
| 70 | echo "export KEYSTORE='{{ .Values.credsPath }}/org.onap.policy.p12'" > {{ .Values.credsPath }}/.ci; |
| 71 | echo "export KEYSTORE_PASSWD='${cadi_keystore_password_p12}'" >> {{ .Values.credsPath }}/.ci; |
| 72 | chown -R {{ .Values.uid }}:{{ .Values.gid }} $(dirname {{ .Values.credsPath }}); |
| 73 | |
| 74 | |
| 75 | ################################################################# |
| 76 | # Application configuration defaults. |
| 77 | ################################################################# |
| 78 | # application image |
saul.gill | 5e61140 | 2023-03-02 11:49:23 +0000 | [diff] [blame] | 79 | image: onap/policy-clamp-ac-http-ppnt:6.4.1 |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 80 | pullPolicy: Always |
| 81 | |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 82 | componentName: &componentName policy-clamp-ac-http-ppnt |
| 83 | |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 84 | # application configuration |
| 85 | restServer: |
| 86 | user: participantUser |
| 87 | password: zb!XztG34 |
| 88 | |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 89 | # flag to enable debugging - application support required |
| 90 | debugEnabled: false |
| 91 | |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 92 | # default number of instances |
| 93 | replicaCount: 1 |
| 94 | |
| 95 | nodeSelector: {} |
| 96 | |
| 97 | affinity: {} |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 98 | ingress: |
| 99 | enabled: false |
| 100 | |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 101 | # probe configuration parameters |
| 102 | liveness: |
| 103 | initialDelaySeconds: 20 |
| 104 | periodSeconds: 10 |
| 105 | # necessary to disable liveness probe when setting breakpoints |
| 106 | # in debugger so K8s doesn't restart unresponsive container |
| 107 | enabled: true |
| 108 | port: http-api |
| 109 | |
| 110 | readiness: |
| 111 | initialDelaySeconds: 20 |
| 112 | periodSeconds: 10 |
| 113 | port: http-api |
guillaume.lambert | 600dc98 | 2021-10-20 20:42:32 +0200 | [diff] [blame] | 114 | |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 115 | service: |
| 116 | type: ClusterIP |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 117 | name: *componentName |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 118 | useNodePortExt: true |
| 119 | ports: |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 120 | - name: http-api |
| 121 | port: 8084 |
| 122 | nodePort: 42 |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 123 | |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 124 | |
| 125 | flavor: small |
| 126 | resources: |
| 127 | small: |
| 128 | limits: |
| 129 | cpu: 1 |
| 130 | memory: 4Gi |
| 131 | requests: |
| 132 | cpu: 100m |
| 133 | memory: 1Gi |
| 134 | large: |
| 135 | limits: |
| 136 | cpu: 2 |
| 137 | memory: 8Gi |
| 138 | requests: |
| 139 | cpu: 200m |
| 140 | memory: 2Gi |
| 141 | unlimited: {} |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 142 | #Pods Service Account |
| 143 | serviceAccount: |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 144 | nameOverride: *componentName |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 145 | roles: |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 146 | - read |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 147 | |
| 148 | config: |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 149 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 150 | # All the added properties must be in "key: value" format instead of yaml. |
| 151 | # additional: |
| 152 | # spring.config.max-size: 200 |
| 153 | # spring.config.min-size: 10 |
| 154 | |
efiacor | 6910bbe | 2023-03-03 14:53:16 +0000 | [diff] [blame] | 155 | # Strimzi Kafka config |
| 156 | kafkaUser: |
| 157 | authenticationType: scram-sha-512 |
| 158 | acls: |
| 159 | - name: *componentName |
| 160 | type: group |
| 161 | operations: [Read] |
| 162 | - name: *acRuntimeTopic |
| 163 | type: topic |
| 164 | operations: [Read, Write] |
| 165 | |
| 166 | readinessCheck: |
| 167 | wait_for: |
| 168 | - message-router |