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 |
Ittay Stern | 8db10f4 | 2019-07-30 16:51:35 +0300 | [diff] [blame] | 30 | image: adfinissygroup/k8s-mariadb-galera-centos:v004 |
Sonsino, Ofir (os0695) | 2dda01d | 2018-05-30 18:41:14 +0300 | [diff] [blame] | 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 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 45 | # default number of instances in the StatefulSet |
Ittay Stern | 9b1f544 | 2019-07-29 17:52:55 +0300 | [diff] [blame] | 46 | replicaCount: 2 |
Sonsino, Ofir (os0695) | 2dda01d | 2018-05-30 18:41:14 +0300 | [diff] [blame] | 47 | |
| 48 | nodeSelector: {} |
| 49 | |
| 50 | affinity: {} |
| 51 | |
| 52 | # probe configuration parameters |
| 53 | liveness: |
| 54 | initialDelaySeconds: 30 |
| 55 | periodSeconds: 10 |
| 56 | timeoutSeconds: 5 |
| 57 | # necessary to disable liveness probe when setting breakpoints |
| 58 | # in debugger so K8s doesn't restart unresponsive container |
| 59 | enabled: false |
| 60 | |
| 61 | readiness: |
| 62 | initialDelaySeconds: 15 |
| 63 | periodSeconds: 10 |
| 64 | |
| 65 | ## Persist data to a persitent volume |
| 66 | persistence: |
| 67 | enabled: false |
| 68 | |
| 69 | ## A manually managed Persistent Volume and Claim |
| 70 | ## Requires persistence.enabled: true |
| 71 | ## If defined, PVC must be created manually before volume will be bound |
| 72 | # existingClaim: |
| 73 | volumeReclaimPolicy: Retain |
| 74 | |
| 75 | ## database data Persistent Volume Storage Class |
| 76 | ## If defined, storageClassName: <storageClass> |
| 77 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 78 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 79 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 80 | ## GKE, AWS & OpenStack) |
| 81 | ## |
| 82 | # storageClass: "-" |
| 83 | accessMode: ReadWriteOnce |
| 84 | size: 2Gi |
| 85 | |
| 86 | |
| 87 | service: |
| 88 | internalPort: 3306 |
| 89 | name: vid-galera |
| 90 | portName: vid-galera |
| 91 | sstPort: 4444 |
| 92 | sstName: sst |
| 93 | replicationPort: 4567 |
| 94 | replicationName: replication |
| 95 | istPort: 4568 |
| 96 | istName: ist |
| 97 | |
| 98 | ingress: |
| 99 | enabled: false |
| 100 | |
| 101 | |
| 102 | ## Configure MariaDB-Galera with a custom my.cnf file |
| 103 | ## ref: https://mariadb.com/kb/en/mariadb/configuring-mariadb-with-mycnf/#example-of-configuration-file |
| 104 | ## |
| 105 | #externalConfig: {} |
| 106 | externalConfig: |- |
| 107 | lower_case_table_names = 1 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 108 | # Resource Limit flavor -By Default using small |
vaibhavjayas | afb925d | 2018-09-19 09:33:41 +0000 | [diff] [blame] | 109 | flavor: small |
| 110 | # Segregation for Different environment (Small and Large) |
Sonsino, Ofir (os0695) | 2dda01d | 2018-05-30 18:41:14 +0300 | [diff] [blame] | 111 | resources: |
vaibhavjayas | afb925d | 2018-09-19 09:33:41 +0000 | [diff] [blame] | 112 | small: |
| 113 | limits: |
| 114 | cpu: 10m |
| 115 | memory: 1Gi |
| 116 | requests: |
| 117 | cpu: 10m |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame] | 118 | memory: 500Mi |
vaibhavjayas | afb925d | 2018-09-19 09:33:41 +0000 | [diff] [blame] | 119 | large: |
| 120 | limits: |
| 121 | cpu: 20m |
| 122 | memory: 2Gi |
| 123 | requests: |
| 124 | cpu: 20m |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame] | 125 | memory: 1Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 126 | unlimited: {} |
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 |