Ramesh Parthasarathy | 3cd3fb1 | 2018-09-05 01:47:29 +0000 | [diff] [blame] | 1 | # Copyright © 2018 AT&T USA |
vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 14 | ################################################################# |
| 15 | # Global configuration defaults. |
| 16 | ################################################################# |
| 17 | global: |
| 18 | nodePortPrefix: 302 |
| 19 | nodePortPrefixExt: 304 |
| 20 | repository: nexus3.onap.org:10001 |
| 21 | readinessRepository: oomk8s |
Mahendra Raghuwanshi | 72b69c1 | 2019-04-04 10:43:25 +0000 | [diff] [blame] | 22 | readinessImage: readiness-check:2.0.2 |
| 23 | mariadbGalera: |
| 24 | nameOverride: mariadb-galera |
| 25 | serviceName: mariadb-galera |
| 26 | servicePort: "3306" |
| 27 | mariadbRootPassword: secretpassword |
| 28 | #This flag allows SO to instantiate its own mariadb-galera cluster, |
| 29 | #serviceName and nameOverride should be so-mariadb-galera if this flag is enabled |
| 30 | localCluster: false |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 31 | persistence: |
| 32 | mountPath: /dockerdata-nfs |
Mahendra Raghuwanshi | 72b69c1 | 2019-04-04 10:43:25 +0000 | [diff] [blame] | 33 | #This configuration will run the migration. The configurations are for backing up the data |
| 34 | #from DB and then restoring it to the present versions preferred DB. |
| 35 | migration: |
| 36 | enabled: false |
| 37 | dbHost: mariadb-galera |
| 38 | dbPort: 3306 |
| 39 | dbUser: root |
| 40 | dbPassword: secretpassword |
| 41 | |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 42 | ################################################################# |
| 43 | # Application configuration defaults. |
| 44 | ################################################################# |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 45 | repository: nexus3.onap.org:10001 |
Yang Xu | 08296ed | 2019-04-23 11:15:34 -0400 | [diff] [blame] | 46 | image: onap/so/api-handler-infra:1.4.0-STAGING-latest |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 47 | pullPolicy: Always |
| 48 | |
Ramesh Parthasarathy | 3cd3fb1 | 2018-09-05 01:47:29 +0000 | [diff] [blame] | 49 | replicaCount: 1 |
| 50 | minReadySeconds: 10 |
| 51 | containerPort: 8080 |
| 52 | logPath: ./logs/apih/ |
| 53 | app: api-handler-infra |
| 54 | service: |
| 55 | type: NodePort |
Mandeep Khinda | dc2b43e | 2018-09-06 16:34:19 +0000 | [diff] [blame] | 56 | nodePort: 77 |
Brian Freeman | 1a66793 | 2018-09-06 14:45:37 -0500 | [diff] [blame] | 57 | internalPort: 8080 |
Mandeep Khinda | fe527eb | 2018-10-16 09:56:34 -0400 | [diff] [blame] | 58 | externalPort: 8080 |
Ramesh Parthasarathy | 3cd3fb1 | 2018-09-05 01:47:29 +0000 | [diff] [blame] | 59 | portName: so-apih-port |
| 60 | updateStrategy: |
| 61 | type: RollingUpdate |
| 62 | maxUnavailable: 1 |
| 63 | maxSurge: 1 |
Alexis de Talhouët | a52efcc | 2018-09-18 16:46:12 -0400 | [diff] [blame] | 64 | # Resource Limit flavor -By Default using small |
vaibhav16dec | 0da8829 | 2018-08-13 06:10:27 +0000 | [diff] [blame] | 65 | flavor: small |
| 66 | # Segregation for Different environment (Small and Large) |
Ramesh Parthasarathy | 3cd3fb1 | 2018-09-05 01:47:29 +0000 | [diff] [blame] | 67 | resources: |
vaibhav16dec | 0da8829 | 2018-08-13 06:10:27 +0000 | [diff] [blame] | 68 | small: |
Ramesh Parthasarathy | 3cd3fb1 | 2018-09-05 01:47:29 +0000 | [diff] [blame] | 69 | limits: |
Ramesh Parthasarathy | 3cd3fb1 | 2018-09-05 01:47:29 +0000 | [diff] [blame] | 70 | cpu: 2000m |
vaibhav16dec | 0da8829 | 2018-08-13 06:10:27 +0000 | [diff] [blame] | 71 | memory: 4Gi |
| 72 | requests: |
| 73 | cpu: 500m |
| 74 | memory: 1Gi |
| 75 | large: |
| 76 | limits: |
| 77 | cpu: 4000m |
| 78 | memory: 8Gi |
| 79 | requests: |
| 80 | cpu: 1000m |
| 81 | memory: 2Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 82 | unlimited: {} |
Ramesh Parthasarathy | 3cd3fb1 | 2018-09-05 01:47:29 +0000 | [diff] [blame] | 83 | livenessProbe: |
Ramesh Parthasarathy | 1ceefda | 2018-09-14 21:22:43 +0000 | [diff] [blame] | 84 | path: /manage/health |
| 85 | scheme: HTTP |
Ramesh Parthasarathy | 3cd3fb1 | 2018-09-05 01:47:29 +0000 | [diff] [blame] | 86 | initialDelaySeconds: 600 |
| 87 | periodSeconds: 60 |
| 88 | timeoutSeconds: 10 |
| 89 | successThreshold: 1 |
| 90 | failureThreshold: 3 |
Mahendra Raghuwanshi | 72b69c1 | 2019-04-04 10:43:25 +0000 | [diff] [blame] | 91 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 92 | nodeSelector: {} |
Brian Freeman | 1a66793 | 2018-09-06 14:45:37 -0500 | [diff] [blame] | 93 | affinity: {} |
Mahendra Raghuwanshi | 72b69c1 | 2019-04-04 10:43:25 +0000 | [diff] [blame] | 94 | |
| 95 | #Used only if localCluster is enabled. Instantiates SO's own cassandra cluster |
| 96 | #helm deploy demo local/onap --namespace onap --verbose --set so.enabled=true \ |
| 97 | # --set so.global.mariadbGalera.localCluster=true \ |
| 98 | # --set so.global.mariadbGalera.nameOverride=so-mariadb-galera \ |
| 99 | # --set so.global.mariadbGalera.serviceName=so-mariadb-galera |
| 100 | mariadb-galera: |
| 101 | nameOverride: so-mariadb-galera |
| 102 | replicaCount: 1 |
| 103 | service: |
| 104 | name: so-mariadb-galera |
| 105 | persistence: |
| 106 | mountSubPath: so/mariadb-galera/data |
| 107 | enabled: true |