rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 2 | # Copyright (C) 2021-2022 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: |
| 23 | nodePortPrefixExt: 304 |
| 24 | persistence: {} |
| 25 | aafEnabled: true |
| 26 | |
| 27 | ################################################################# |
| 28 | # Secrets metaconfig |
| 29 | ################################################################# |
| 30 | secrets: |
| 31 | - uid: restserver-secret |
| 32 | type: basicAuth |
| 33 | externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}' |
| 34 | login: '{{ .Values.restServer.user }}' |
| 35 | password: '{{ .Values.restServer.password }}' |
| 36 | passwordPolicy: required |
| 37 | - uid: keystore-password |
| 38 | type: password |
| 39 | externalSecret: '{{ tpl (default "" .Values.certStores.keyStorePasswordExternalSecret) . }}' |
| 40 | password: '{{ .Values.certStores.keyStorePassword }}' |
| 41 | passwordPolicy: required |
| 42 | - uid: truststore-password |
| 43 | type: password |
| 44 | externalSecret: '{{ tpl (default "" .Values.certStores.trustStorePasswordExternalSecret) . }}' |
| 45 | password: '{{ .Values.certStores.trustStorePassword }}' |
| 46 | passwordPolicy: required |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 47 | - uid: policy-kafka-user |
| 48 | externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}' |
| 49 | type: genericKV |
| 50 | envs: |
| 51 | - name: sasl.jaas.config |
| 52 | value: '{{ .Values.config.someConfig }}' |
| 53 | policy: generate |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 54 | |
| 55 | certStores: |
| 56 | keyStorePassword: Pol1cy_0nap |
| 57 | trustStorePassword: Pol1cy_0nap |
| 58 | |
| 59 | certInitializer: |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 60 | nameOverride: policy-clamp-ac-k8s-ppnt-cert-initializer |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 61 | aafDeployFqi: deployer@people.osaaf.org |
| 62 | aafDeployPass: demo123456! |
| 63 | fqdn: policy |
| 64 | fqi: policy@policy.onap.org |
| 65 | public_fqdn: policy.onap.org |
| 66 | cadi_latitude: "0.0" |
| 67 | cadi_longitude: "0.0" |
| 68 | credsPath: /opt/app/osaaf/local |
| 69 | app_ns: org.osaaf.aaf |
| 70 | uid: 100 |
| 71 | gid: 101 |
| 72 | aaf_add_config: > |
| 73 | echo "export KEYSTORE='{{ .Values.credsPath }}/org.onap.policy.p12'" > {{ .Values.credsPath }}/.ci; |
| 74 | echo "export KEYSTORE_PASSWD='${cadi_keystore_password_p12}'" >> {{ .Values.credsPath }}/.ci; |
| 75 | chown -R {{ .Values.uid }}:{{ .Values.gid }} $(dirname {{ .Values.credsPath }}); |
| 76 | |
| 77 | |
| 78 | ################################################################# |
| 79 | # Application configuration defaults. |
| 80 | ################################################################# |
| 81 | # application image |
liamfallon | cbb7281 | 2022-10-21 18:13:29 +0100 | [diff] [blame] | 82 | image: onap/policy-clamp-ac-k8s-ppnt:6.3.1 |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 83 | pullPolicy: Always |
| 84 | |
| 85 | # flag to enable debugging - application support required |
| 86 | debugEnabled: false |
| 87 | |
| 88 | # application configuration |
| 89 | restServer: |
| 90 | user: participantUser |
| 91 | password: zb!XztG34 |
| 92 | |
| 93 | # default number of instances |
| 94 | replicaCount: 1 |
| 95 | |
| 96 | nodeSelector: {} |
| 97 | |
| 98 | affinity: {} |
| 99 | # probe configuration parameters |
| 100 | liveness: |
| 101 | initialDelaySeconds: 20 |
| 102 | periodSeconds: 10 |
| 103 | # necessary to disable liveness probe when setting breakpoints |
| 104 | # in debugger so K8s doesn't restart unresponsive container |
| 105 | enabled: true |
| 106 | port: http-api |
| 107 | |
| 108 | readiness: |
| 109 | initialDelaySeconds: 20 |
| 110 | periodSeconds: 10 |
| 111 | port: http-api |
guillaume.lambert | 600dc98 | 2021-10-20 20:42:32 +0200 | [diff] [blame] | 112 | |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 113 | service: |
| 114 | type: ClusterIP |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 115 | name: policy-clamp-ac-k8s-ppnt |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 116 | useNodePortExt: true |
| 117 | ports: |
| 118 | - name: http-api |
| 119 | port: 8083 |
| 120 | nodePort: 42 |
| 121 | |
| 122 | ingress: |
| 123 | enabled: false |
| 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: {} |
| 142 | |
| 143 | #Pods Service Account |
| 144 | serviceAccount: |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 145 | nameOverride: policy-clamp-ac-k8s-ppnt |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 146 | roles: |
| 147 | - create |
rameshiyer27 | 3c81b1d | 2022-07-18 16:54:51 +0100 | [diff] [blame] | 148 | # Update the config here for permitting repositories and protocols |
| 149 | repoList: |
| 150 | helm: |
| 151 | repos: |
| 152 | - |
| 153 | repoName: kong |
| 154 | address: https://charts.konghq.com |
| 155 | - |
| 156 | repoName: bitnami |
| 157 | address: https://charts.bitnami.com/bitnami |
| 158 | |
| 159 | protocols: |
| 160 | - http |
| 161 | - https |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 162 | |
| 163 | config: |
| 164 | # Event consumption (kafka) properties |
| 165 | useStrimziKafka: true |
| 166 | kafkaBootstrap: strimzi-kafka-bootstrap |
| 167 | kafka: |
| 168 | consumer: |
| 169 | groupId: policy-group |
| 170 | app: |
| 171 | listener: |
| 172 | acRuntimeTopic: policy-acruntime-participant |
| 173 | # If targeting a custom kafka cluster, ie useStrimziKakfa: false |
| 174 | # uncomment below config and target your kafka bootstrap servers, |
| 175 | # along with any other security config. |
| 176 | # |
| 177 | # eventConsumption: |
| 178 | # spring.kafka.bootstrap-servers: <kafka-bootstrap>:9092 |
| 179 | # spring.kafka.security.protocol: PLAINTEXT |
| 180 | # spring.kafka.consumer.group-id: policy-group |
| 181 | # |
| 182 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 183 | # All the added properties must be in "key: value" format instead of yaml. |
| 184 | # additional: |
| 185 | # spring.config.max-size: 200 |
| 186 | # spring.config.min-size: 10 |