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 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 3 | # |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 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 | ################################################################# |
| 17 | # Global configuration defaults. |
| 18 | ################################################################# |
| 19 | global: |
| 20 | # Change to an unused port prefix range to prevent port conflicts |
| 21 | # with other instances running within the same k8s cluster |
Oleg Mitsura | 0197bf1 | 2019-05-03 15:03:55 -0400 | [diff] [blame] | 22 | nodePortPrefixExt: 304 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 23 | |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 24 | # image pull policy |
| 25 | pullPolicy: Always |
| 26 | |
| 27 | persistence: |
| 28 | mountPath: /dockerdata-nfs |
| 29 | |
Konrad Bańka | e332b24 | 2020-04-06 13:30:06 +0200 | [diff] [blame] | 30 | #This configuration specifies Service and port for SDNC OAM interface |
| 31 | sdncOamService: sdnc-oam |
| 32 | sdncOamPort: 8282 |
| 33 | |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 34 | ################################################################# |
| 35 | # Secrets metaconfig |
| 36 | ################################################################# |
| 37 | secrets: |
| 38 | - uid: 'cds-db-user-creds' |
| 39 | type: basicAuth |
| 40 | externalSecret: '{{ tpl (default "" .Values.config.cdsDB.dbCredsExternalSecret) . }}' |
| 41 | login: '{{ .Values.config.cdsDB.dbUser }}' |
| 42 | password: '{{ .Values.config.cdsDB.dbPassword }}' |
| 43 | passwordPolicy: required |
Konrad Bańka | 031bdb7 | 2020-05-14 16:56:39 +0200 | [diff] [blame] | 44 | - uid: 'sdnc-db-root-pass' |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 45 | type: password |
Konrad Bańka | 031bdb7 | 2020-05-14 16:56:39 +0200 | [diff] [blame] | 46 | externalSecret: '{{ tpl (default "" .Values.config.sdncDB.dbRootPassExternalSecret) . }}' |
| 47 | password: '{{ .Values.config.sdncDB.dbRootPass }}' |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 48 | passwordPolicy: required |
| 49 | |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 50 | ################################################################# |
| 51 | # Application configuration defaults. |
| 52 | ################################################################# |
| 53 | # application image |
Dan Timoney | c100dc5 | 2020-11-19 08:08:42 -0500 | [diff] [blame] | 54 | image: onap/ccsdk-blueprintsprocessor:1.0.3 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 55 | pullPolicy: Always |
| 56 | |
| 57 | # flag to enable debugging - application support required |
| 58 | debugEnabled: false |
| 59 | |
| 60 | # application configuration |
| 61 | config: |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 62 | appConfigDir: /opt/app/onap/config |
abdelseaudi | ca7459b | 2020-07-03 17:31:06 +0000 | [diff] [blame] | 63 | useScriptCompileCache: false |
Konrad Bańka | 031bdb7 | 2020-05-14 16:56:39 +0200 | [diff] [blame] | 64 | sdncDB: |
| 65 | dbService: mariadb-galera |
| 66 | dbPort: 3306 |
| 67 | dbName: sdnctl |
| 68 | #dbRootPass: Custom root password |
| 69 | 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] | 70 | cdsDB: |
| 71 | dbServer: cds-db |
| 72 | dbPort: 3306 |
| 73 | dbName: sdnctl |
Sylvain Desbureaux | 503b229 | 2020-11-21 22:29:17 +0100 | [diff] [blame] | 74 | dbUser: sdnctl |
| 75 | dbPassword: sdnctl |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 76 | # dbCredsExternalSecret: <some secret name> |
| 77 | # dbRootPassword: password |
| 78 | # dbRootPassExternalSecret |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 79 | |
| 80 | # default number of instances |
abdelseaudi | ca7459b | 2020-07-03 17:31:06 +0000 | [diff] [blame] | 81 | replicaCount: 3 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 82 | |
| 83 | nodeSelector: {} |
| 84 | |
| 85 | affinity: {} |
| 86 | |
Prathamesh Morde | 93da127 | 2019-06-24 10:36:15 -0400 | [diff] [blame] | 87 | # flag for kafka-listener dependency. Set to true if you are using message-router otherwise set to false if you are using |
| 88 | # custom kafka cluster. |
| 89 | dmaapEnabled: true |
| 90 | |
Krzysztof Opasiak | 32f9aaa | 2020-02-06 23:05:15 +0100 | [diff] [blame] | 91 | |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 92 | # probe configuration parameters |
| 93 | liveness: |
Yang Xu | 435062b | 2019-06-17 01:19:37 -0400 | [diff] [blame] | 94 | initialDelaySeconds: 120 |
Oleg Mitsura | 3a62118 | 2019-10-09 12:40:11 -0400 | [diff] [blame] | 95 | periodSeconds: 20 |
| 96 | timeoutSeconds: 20 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 97 | # necessary to disable liveness probe when setting breakpoints |
| 98 | # in debugger so K8s doesn't restart unresponsive container |
| 99 | enabled: true |
| 100 | |
| 101 | readiness: |
Yang Xu | 435062b | 2019-06-17 01:19:37 -0400 | [diff] [blame] | 102 | initialDelaySeconds: 120 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 103 | periodSeconds: 10 |
Oleg Mitsura | 3a62118 | 2019-10-09 12:40:11 -0400 | [diff] [blame] | 104 | timeoutSeconds: 20 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 105 | |
| 106 | service: |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 107 | http: |
gummar | c7bd0e2 | 2020-03-05 18:57:12 +0000 | [diff] [blame] | 108 | type: ClusterIP |
Alexis de Talhouët | 63df163 | 2019-03-20 08:17:58 -0400 | [diff] [blame] | 109 | portName: blueprints-processor-http |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 110 | internalPort: 8080 |
| 111 | externalPort: 8080 |
| 112 | grpc: |
Oleg Mitsura | 0197bf1 | 2019-05-03 15:03:55 -0400 | [diff] [blame] | 113 | type: ClusterIP |
Alexis de Talhouët | 63df163 | 2019-03-20 08:17:58 -0400 | [diff] [blame] | 114 | portName: blueprints-processor-grpc |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 115 | internalPort: 9111 |
| 116 | externalPort: 9111 |
Sebastien Premont-Tendland | b679d7b | 2020-02-17 11:32:15 -0500 | [diff] [blame] | 117 | cluster: |
| 118 | type: ClusterIP |
| 119 | portName: blueprints-processor-cluster |
| 120 | internalPort: 5701 |
| 121 | externalPort: 5701 |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 122 | |
| 123 | persistence: |
Alexis de Talhouët | 108e28f | 2019-04-14 18:54:56 -0400 | [diff] [blame] | 124 | volumeReclaimPolicy: Retain |
| 125 | accessMode: ReadWriteMany |
| 126 | size: 2Gi |
| 127 | enabled: true |
| 128 | mountSubPath: cds/blueprints/deploy |
| 129 | deployedBlueprint: /opt/app/onap/blueprints/deploy |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 130 | |
Sebastien Premont-Tendland | b679d7b | 2020-02-17 11:32:15 -0500 | [diff] [blame] | 131 | cluster: |
| 132 | # Cannot have cluster enabled if the replicaCount is not at least 3 |
| 133 | # AND config value useScriptCompileCache is not set to false |
abdelseaudi | ca7459b | 2020-07-03 17:31:06 +0000 | [diff] [blame] | 134 | enabled: true |
Sebastien Premont-Tendland | b679d7b | 2020-02-17 11:32:15 -0500 | [diff] [blame] | 135 | |
| 136 | clusterName: cds-cluster |
| 137 | |
| 138 | # Defines the number of node to be part of the CP subsystem/raft algorithm. This value should be |
| 139 | # between 3 and 7 only. |
| 140 | groupSize: 3 |
| 141 | |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 142 | ingress: |
| 143 | enabled: false |
Lucjan Bryndza | 33315d4 | 2019-11-27 14:07:58 +0100 | [diff] [blame] | 144 | service: |
| 145 | - baseaddr: "blueprintsprocessorhttp" |
Lucjan Bryndza | 6174db4 | 2020-07-09 09:00:20 +0000 | [diff] [blame] | 146 | name: "cds-blueprints-processor-http" |
Lucjan Bryndza | 33315d4 | 2019-11-27 14:07:58 +0100 | [diff] [blame] | 147 | port: 8080 |
| 148 | config: |
| 149 | ssl: "none" |
Steve Alphonse Siani | a1b6b0e | 2019-01-25 15:23:58 -0500 | [diff] [blame] | 150 | |
Dominik Mizyn | dd285d3 | 2020-08-21 13:10:11 +0200 | [diff] [blame] | 151 | logback: |
| 152 | rootLogLevel: INFO |
| 153 | logger: |
| 154 | springframework: INFO |
| 155 | springframeworkWeb: INFO |
| 156 | springframeworkSecurityWebauthentication: INFO |
| 157 | hibernate: INFO |
| 158 | onapCcsdkCds: INFO |
| 159 | |
Dan Timoney | 6cc07e0 | 2020-09-23 08:52:47 -0400 | [diff] [blame] | 160 | flavor: small |
| 161 | |
| 162 | resources: |
| 163 | small: |
| 164 | limits: |
| 165 | cpu: 2 |
| 166 | memory: 4Gi |
| 167 | requests: |
| 168 | cpu: 1 |
| 169 | memory: 1Gi |
| 170 | large: |
| 171 | limits: |
| 172 | cpu: 4 |
| 173 | memory: 8Gi |
| 174 | requests: |
| 175 | cpu: 2 |
| 176 | memory: 4Gi |
| 177 | unlimited: {} |