vaibhavjayas | 5ca5465 | 2018-07-31 09:23:16 +0000 | [diff] [blame] | 1 | # Copyright © 2018 Amdocs, Bell Canada |
| 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. |
| 14 | |
Sonsino, Ofir (os0695) | 2dda01d | 2018-05-30 18:41:14 +0300 | [diff] [blame] | 15 | ################################################################# |
| 16 | # Global configuration defaults. |
| 17 | ################################################################# |
| 18 | global: |
| 19 | nodePortPrefix: 302 |
| 20 | persistence: {} |
| 21 | repository: nexus3.onap.org:10001 |
| 22 | |
| 23 | |
| 24 | ################################################################# |
| 25 | # Application configuration defaults. |
| 26 | ################################################################# |
| 27 | |
| 28 | #repository: mysql |
| 29 | repository: nexus3.onap.org:10001 |
| 30 | image: adfinissygroup/k8s-mariadb-galera-centos:v002 |
| 31 | imageInit: busybox |
| 32 | pullPolicy: IfNotPresent |
| 33 | |
| 34 | # application configuration |
| 35 | config: |
| 36 | mariadbRootPassword: secretpassword |
| 37 | # userName: my-user |
| 38 | # userPassword: my-password |
| 39 | # mysqlDatabase: my-database |
| 40 | userName: vidadmin |
| 41 | userPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
| 42 | mysqlDatabase: vid_openecomp_epsdk |
| 43 | |
| 44 | |
| 45 | # default number of instances in the StatefulSet |
| 46 | # keep in mind that if the number is increased you need to update vid-galera-config-job.yaml so that the job will know to wait for all pods. |
| 47 | replicaCount: 1 |
| 48 | |
| 49 | nodeSelector: {} |
| 50 | |
| 51 | affinity: {} |
| 52 | |
| 53 | # probe configuration parameters |
| 54 | liveness: |
| 55 | initialDelaySeconds: 30 |
| 56 | periodSeconds: 10 |
| 57 | timeoutSeconds: 5 |
| 58 | # necessary to disable liveness probe when setting breakpoints |
| 59 | # in debugger so K8s doesn't restart unresponsive container |
| 60 | enabled: false |
| 61 | |
| 62 | readiness: |
| 63 | initialDelaySeconds: 15 |
| 64 | periodSeconds: 10 |
| 65 | |
| 66 | ## Persist data to a persitent volume |
| 67 | persistence: |
| 68 | enabled: false |
| 69 | |
| 70 | ## A manually managed Persistent Volume and Claim |
| 71 | ## Requires persistence.enabled: true |
| 72 | ## If defined, PVC must be created manually before volume will be bound |
| 73 | # existingClaim: |
| 74 | volumeReclaimPolicy: Retain |
| 75 | |
| 76 | ## database data Persistent Volume Storage Class |
| 77 | ## If defined, storageClassName: <storageClass> |
| 78 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 79 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 80 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 81 | ## GKE, AWS & OpenStack) |
| 82 | ## |
| 83 | # storageClass: "-" |
| 84 | accessMode: ReadWriteOnce |
| 85 | size: 2Gi |
| 86 | |
| 87 | |
| 88 | service: |
| 89 | internalPort: 3306 |
| 90 | name: vid-galera |
| 91 | portName: vid-galera |
| 92 | sstPort: 4444 |
| 93 | sstName: sst |
| 94 | replicationPort: 4567 |
| 95 | replicationName: replication |
| 96 | istPort: 4568 |
| 97 | istName: ist |
| 98 | |
| 99 | ingress: |
| 100 | enabled: false |
| 101 | |
| 102 | |
| 103 | ## Configure MariaDB-Galera with a custom my.cnf file |
| 104 | ## ref: https://mariadb.com/kb/en/mariadb/configuring-mariadb-with-mycnf/#example-of-configuration-file |
| 105 | ## |
| 106 | #externalConfig: {} |
| 107 | externalConfig: |- |
| 108 | lower_case_table_names = 1 |
vaibhavjayas | afb925d | 2018-09-19 09:33:41 +0000 | [diff] [blame] | 109 | # Resource Limit flavor -By Default using small |
| 110 | flavor: small |
| 111 | # Segregation for Different environment (Small and Large) |
Sonsino, Ofir (os0695) | 2dda01d | 2018-05-30 18:41:14 +0300 | [diff] [blame] | 112 | resources: |
vaibhavjayas | afb925d | 2018-09-19 09:33:41 +0000 | [diff] [blame] | 113 | small: |
| 114 | limits: |
| 115 | cpu: 10m |
| 116 | memory: 1Gi |
| 117 | requests: |
| 118 | cpu: 10m |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame^] | 119 | memory: 500Mi |
vaibhavjayas | afb925d | 2018-09-19 09:33:41 +0000 | [diff] [blame] | 120 | large: |
| 121 | limits: |
| 122 | cpu: 20m |
| 123 | memory: 2Gi |
| 124 | requests: |
| 125 | cpu: 20m |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame^] | 126 | memory: 1Gi |
Sonsino, Ofir (os0695) | 2dda01d | 2018-05-30 18:41:14 +0300 | [diff] [blame] | 127 | # Name for mariadb-galera cluster - should be unique accross all projects or other clusters |
Mandeep Khinda | 561a91c | 2018-08-23 14:08:52 +0000 | [diff] [blame] | 128 | nameOverride: vid-mariadb-galera |
Sonsino, Ofir (os0695) | 2dda01d | 2018-05-30 18:41:14 +0300 | [diff] [blame] | 129 | |
| 130 | # DNS name for mariadb-galera cluster - should be unique accross all projects other clusters |
| 131 | #dnsnameOverride: mariadb-galera |