Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 1 | # Copyright (c) 2019 IBM, Bell Canada |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 2 | # Copyright (c) 2020 Samsung Electronics |
efiacor | ecbae13 | 2022-03-04 15:01:30 +0000 | [diff] [blame] | 3 | # Modification Copyright © 2022 Nordix Foundation |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 4 | # |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 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 | ################################################################# |
| 18 | # Global configuration defaults. |
| 19 | ################################################################# |
| 20 | global: |
| 21 | # Change to an unused port prefix range to prevent port conflicts |
| 22 | # with other instances running within the same k8s cluster |
Oleg Mitsura | 0197bf1 | 2019-05-03 15:03:55 -0400 | [diff] [blame] | 23 | nodePortPrefixExt: 304 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 24 | |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 25 | # image pull policy |
| 26 | pullPolicy: Always |
| 27 | |
| 28 | persistence: |
| 29 | mountPath: /dockerdata-nfs |
| 30 | |
Konrad Bańka | e332b24 | 2020-04-06 13:30:06 +0200 | [diff] [blame] | 31 | #This configuration specifies Service and port for SDNC OAM interface |
| 32 | sdncOamService: sdnc-oam |
| 33 | sdncOamPort: 8282 |
| 34 | |
Abdelmuhaimen Seaudi | 2b55c44 | 2021-09-19 09:02:22 +0000 | [diff] [blame] | 35 | #AAF is enabled by default |
| 36 | #aafEnabled: true |
| 37 | |
| 38 | #enable importCustomCerts to add custom CA to blueprint processor pod |
| 39 | #importCustomCertsEnabled: true |
| 40 | |
| 41 | #use below configmap to add custom CA certificates |
| 42 | #certificates with *.pem will be added to JAVA truststore $JAVA_HOME/lib/security/cacerts in the pod |
| 43 | #certificates with *.crt will be added to /etc/ssl/certs/ca-certificates.crt in the pod |
| 44 | #customCertsConfigMap: onap-cds-blueprints-processor-configmap |
| 45 | |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 46 | ################################################################# |
| 47 | # Secrets metaconfig |
| 48 | ################################################################# |
| 49 | secrets: |
| 50 | - uid: 'cds-db-user-creds' |
| 51 | type: basicAuth |
| 52 | externalSecret: '{{ tpl (default "" .Values.config.cdsDB.dbCredsExternalSecret) . }}' |
| 53 | login: '{{ .Values.config.cdsDB.dbUser }}' |
| 54 | password: '{{ .Values.config.cdsDB.dbPassword }}' |
| 55 | passwordPolicy: required |
Konrad Bańka | 031bdb7 | 2020-05-14 16:56:39 +0200 | [diff] [blame] | 56 | - uid: 'sdnc-db-root-pass' |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 57 | type: password |
Konrad Bańka | 031bdb7 | 2020-05-14 16:56:39 +0200 | [diff] [blame] | 58 | externalSecret: '{{ tpl (default "" .Values.config.sdncDB.dbRootPassExternalSecret) . }}' |
| 59 | password: '{{ .Values.config.sdncDB.dbRootPass }}' |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 60 | passwordPolicy: required |
efiacor | ecbae13 | 2022-03-04 15:01:30 +0000 | [diff] [blame] | 61 | - uid: cds-kafka-secret |
| 62 | externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}' |
| 63 | type: genericKV |
| 64 | envs: |
| 65 | - name: password |
| 66 | value: '{{ .Values.config.someConfig }}' |
| 67 | policy: generate |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 68 | |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 69 | ################################################################# |
Abdelmuhaimen Seaudi | 822eb09 | 2021-09-04 11:08:36 +0200 | [diff] [blame] | 70 | # AAF part |
| 71 | ################################################################# |
| 72 | certInitializer: |
Abdelmuhaimen Seaudi | 2b55c44 | 2021-09-19 09:02:22 +0000 | [diff] [blame] | 73 | nameOverride: cds-blueprints-processor-cert-initializer |
Abdelmuhaimen Seaudi | 822eb09 | 2021-09-04 11:08:36 +0200 | [diff] [blame] | 74 | aafDeployFqi: deployer@people.osaaf.org |
| 75 | aafDeployPass: demo123456! |
| 76 | # aafDeployCredsExternalSecret: some secret |
| 77 | fqdn: sdnc-cds |
| 78 | fqi: sdnc-cds@sdnc-cds.onap.org |
| 79 | public_fqdn: sdnc-cds.onap.org |
| 80 | cadi_longitude: "0.0" |
| 81 | cadi_latitude: "0.0" |
| 82 | app_ns: org.osaaf.aaf |
| 83 | credsPath: /opt/app/osaaf/local |
| 84 | fqi_namespace: org.onap.sdnc-cds |
Abdelmuhaimen Seaudi | 2b55c44 | 2021-09-19 09:02:22 +0000 | [diff] [blame] | 85 | #enable below if we need custom CA to be added to blueprint processor pod |
| 86 | #importCustomCertsEnabled: true |
| 87 | #truststoreMountpath: /opt/onap/cds |
| 88 | #truststoreOutputFileName: truststoreONAPall.jks |
Abdelmuhaimen Seaudi | 822eb09 | 2021-09-04 11:08:36 +0200 | [diff] [blame] | 89 | aaf_add_config: > |
| 90 | /opt/app/aaf_config/bin/agent.sh; |
| 91 | /opt/app/aaf_config/bin/agent.sh local showpass |
| 92 | {{.Values.fqi}} {{ .Values.fqdn }} > {{ .Values.credsPath }}/mycreds.prop |
| 93 | |
| 94 | ################################################################# |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 95 | # Application configuration defaults. |
| 96 | ################################################################# |
| 97 | # application image |
Dan Timoney | c8964e5 | 2022-03-30 07:51:50 -0400 | [diff] [blame] | 98 | image: onap/ccsdk-blueprintsprocessor:1.3.0 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 99 | pullPolicy: Always |
| 100 | |
| 101 | # flag to enable debugging - application support required |
| 102 | debugEnabled: false |
| 103 | |
| 104 | # application configuration |
| 105 | config: |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 106 | appConfigDir: /opt/app/onap/config |
Konrad Bańka | 031bdb7 | 2020-05-14 16:56:39 +0200 | [diff] [blame] | 107 | sdncDB: |
| 108 | dbService: mariadb-galera |
| 109 | dbPort: 3306 |
| 110 | dbName: sdnctl |
| 111 | #dbRootPass: Custom root password |
| 112 | dbRootPassExternalSecret: '{{ include "common.mariadb.secret.rootPassSecretName" ( dict "dot" . "chartName" .Values.config.sdncDB.dbService ) }}' |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 113 | cdsDB: |
| 114 | dbServer: cds-db |
| 115 | dbPort: 3306 |
| 116 | dbName: sdnctl |
Sylvain Desbureaux | 503b229 | 2020-11-21 22:29:17 +0100 | [diff] [blame] | 117 | dbUser: sdnctl |
| 118 | dbPassword: sdnctl |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 119 | # dbCredsExternalSecret: <some secret name> |
| 120 | # dbRootPassword: password |
| 121 | # dbRootPassExternalSecret |
efiacor | ecbae13 | 2022-03-04 15:01:30 +0000 | [diff] [blame] | 122 | someConfig: blah |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 123 | |
| 124 | # default number of instances |
Jozsef Csongvai | 08515b7 | 2021-04-28 17:04:57 -0400 | [diff] [blame] | 125 | replicaCount: 1 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 126 | |
| 127 | nodeSelector: {} |
| 128 | |
| 129 | affinity: {} |
| 130 | |
efiacor | ecbae13 | 2022-03-04 15:01:30 +0000 | [diff] [blame] | 131 | # If useStrimziKafka is true, the following also applies: |
| 132 | # strimzi will create an associated kafka user and the topics defined for Request and Audit elements below. |
| 133 | # The connection type must be kafka-scram-plain-text-auth |
| 134 | # The bootstrapServers will target the strimzi kafka cluster by default |
| 135 | useStrimziKafka: false |
| 136 | cdsKafkaUser: cds-kafka-user |
Prathamesh Morde | 93da127 | 2019-06-24 10:36:15 -0400 | [diff] [blame] | 137 | |
efiacor | ecbae13 | 2022-03-04 15:01:30 +0000 | [diff] [blame] | 138 | kafkaRequestConsumer: |
| 139 | enabled: false |
| 140 | type: kafka-scram-plain-text-auth |
| 141 | bootstrapServers: host:port |
| 142 | groupId: cds-consumer |
| 143 | topic: cds.blueprint-processor.self-service-api.request |
| 144 | clientId: request-receiver-client-id |
| 145 | pollMillSec: 1000 |
| 146 | kafkaRequestProducer: |
| 147 | type: kafka-scram-plain-text-auth |
| 148 | bootstrapServers: host:port |
| 149 | clientId: request-producer-client-id |
| 150 | topic: cds.blueprint-processor.self-service-api.response |
| 151 | enableIdempotence: false |
| 152 | kafkaAuditRequest: |
| 153 | enabled: false |
| 154 | type: kafka-scram-plain-text-auth |
| 155 | bootstrapServers: host:port |
| 156 | clientId: audit-request-producer-client-id |
| 157 | topic: cds.blueprint-processor.self-service-api.audit.request |
| 158 | enableIdempotence: false |
| 159 | kafkaAuditResponse: |
| 160 | type: kafka-scram-plain-text-auth |
| 161 | bootstrapServers: host:port |
| 162 | clientId: audit-response-producer-client-id |
| 163 | topic: cds.blueprint-processor.self-service-api.audit.response |
| 164 | enableIdempotence: false |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 165 | |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 166 | # probe configuration parameters |
Jozsef Csongvai | 08515b7 | 2021-04-28 17:04:57 -0400 | [diff] [blame] | 167 | startup: |
| 168 | initialDelaySeconds: 10 |
| 169 | failureThreshold: 30 |
| 170 | periodSeconds: 10 |
| 171 | |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 172 | liveness: |
Jozsef Csongvai | 08515b7 | 2021-04-28 17:04:57 -0400 | [diff] [blame] | 173 | initialDelaySeconds: 0 |
Oleg Mitsura | 3a62118 | 2019-10-09 12:40:11 -0400 | [diff] [blame] | 174 | periodSeconds: 20 |
| 175 | timeoutSeconds: 20 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 176 | # necessary to disable liveness probe when setting breakpoints |
| 177 | # in debugger so K8s doesn't restart unresponsive container |
| 178 | enabled: true |
| 179 | |
| 180 | readiness: |
Yang Xu | 435062b | 2019-06-17 01:19:37 -0400 | [diff] [blame] | 181 | initialDelaySeconds: 120 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 182 | periodSeconds: 10 |
Oleg Mitsura | 3a62118 | 2019-10-09 12:40:11 -0400 | [diff] [blame] | 183 | timeoutSeconds: 20 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 184 | |
| 185 | service: |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 186 | http: |
gummar | c7bd0e2 | 2020-03-05 18:57:12 +0000 | [diff] [blame] | 187 | type: ClusterIP |
Alexis de Talhouët | 63df163 | 2019-03-20 08:17:58 -0400 | [diff] [blame] | 188 | portName: blueprints-processor-http |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 189 | internalPort: 8080 |
| 190 | externalPort: 8080 |
| 191 | grpc: |
Oleg Mitsura | 0197bf1 | 2019-05-03 15:03:55 -0400 | [diff] [blame] | 192 | type: ClusterIP |
Alexis de Talhouët | 63df163 | 2019-03-20 08:17:58 -0400 | [diff] [blame] | 193 | portName: blueprints-processor-grpc |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 194 | internalPort: 9111 |
| 195 | externalPort: 9111 |
Sebastien Premont-Tendland | b679d7b | 2020-02-17 11:32:15 -0500 | [diff] [blame] | 196 | cluster: |
| 197 | type: ClusterIP |
| 198 | portName: blueprints-processor-cluster |
| 199 | internalPort: 5701 |
| 200 | externalPort: 5701 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 201 | |
| 202 | persistence: |
Alexis de Talhouët | 108e28f | 2019-04-14 18:54:56 -0400 | [diff] [blame] | 203 | volumeReclaimPolicy: Retain |
| 204 | accessMode: ReadWriteMany |
| 205 | size: 2Gi |
| 206 | enabled: true |
| 207 | mountSubPath: cds/blueprints/deploy |
| 208 | deployedBlueprint: /opt/app/onap/blueprints/deploy |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 209 | |
Sebastien Premont-Tendland | b679d7b | 2020-02-17 11:32:15 -0500 | [diff] [blame] | 210 | cluster: |
| 211 | # Cannot have cluster enabled if the replicaCount is not at least 3 |
Jozsef Csongvai | 08515b7 | 2021-04-28 17:04:57 -0400 | [diff] [blame] | 212 | enabled: false |
Sebastien Premont-Tendland | b679d7b | 2020-02-17 11:32:15 -0500 | [diff] [blame] | 213 | |
| 214 | clusterName: cds-cluster |
| 215 | |
| 216 | # Defines the number of node to be part of the CP subsystem/raft algorithm. This value should be |
| 217 | # between 3 and 7 only. |
| 218 | groupSize: 3 |
| 219 | |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 220 | ingress: |
| 221 | enabled: false |
Lucjan Bryndza | 33315d4 | 2019-11-27 14:07:58 +0100 | [diff] [blame] | 222 | service: |
| 223 | - baseaddr: "blueprintsprocessorhttp" |
Lucjan Bryndza | 6174db4 | 2020-07-09 09:00:20 +0000 | [diff] [blame] | 224 | name: "cds-blueprints-processor-http" |
Lucjan Bryndza | 33315d4 | 2019-11-27 14:07:58 +0100 | [diff] [blame] | 225 | port: 8080 |
| 226 | config: |
| 227 | ssl: "none" |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 228 | |
Dominik Mizyn | dd285d3 | 2020-08-21 13:10:11 +0200 | [diff] [blame] | 229 | logback: |
| 230 | rootLogLevel: INFO |
| 231 | logger: |
| 232 | springframework: INFO |
| 233 | springframeworkWeb: INFO |
| 234 | springframeworkSecurityWebauthentication: INFO |
| 235 | hibernate: INFO |
| 236 | onapCcsdkCds: INFO |
| 237 | |
Dan Timoney | 6cc07e0 | 2020-09-23 08:52:47 -0400 | [diff] [blame] | 238 | flavor: small |
| 239 | |
| 240 | resources: |
| 241 | small: |
| 242 | limits: |
| 243 | cpu: 2 |
| 244 | memory: 4Gi |
| 245 | requests: |
| 246 | cpu: 1 |
| 247 | memory: 1Gi |
| 248 | large: |
| 249 | limits: |
| 250 | cpu: 4 |
| 251 | memory: 8Gi |
| 252 | requests: |
| 253 | cpu: 2 |
| 254 | memory: 4Gi |
| 255 | unlimited: {} |
farida azmy | ffad032 | 2021-04-09 14:18:14 +0200 | [diff] [blame] | 256 | |
| 257 | #Pods Service Account |
| 258 | serviceAccount: |
| 259 | nameOverride: cds-blueprints-processor |
| 260 | roles: |
| 261 | - read |
Kavitha P | 1a78f2f | 2021-08-25 16:40:38 +0530 | [diff] [blame] | 262 | |
| 263 | # workflow store flag |
| 264 | workflow: |
| 265 | storeEnabled: false |