vaibhavjayas | ea9aee0 | 2018-08-31 06:22:26 +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 | |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 15 | ################################################################# |
| 16 | # Global configuration defaults. |
| 17 | ################################################################# |
| 18 | global: |
| 19 | nodePortPrefix: 302 |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 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 | |
| 41 | # default number of instances in the StatefulSet |
| 42 | replicaCount: 3 |
| 43 | |
| 44 | nodeSelector: {} |
| 45 | |
| 46 | affinity: {} |
| 47 | |
| 48 | # probe configuration parameters |
| 49 | liveness: |
| 50 | initialDelaySeconds: 30 |
| 51 | periodSeconds: 10 |
| 52 | timeoutSeconds: 5 |
| 53 | # necessary to disable liveness probe when setting breakpoints |
| 54 | # in debugger so K8s doesn't restart unresponsive container |
| 55 | enabled: true |
| 56 | |
| 57 | readiness: |
| 58 | initialDelaySeconds: 15 |
| 59 | periodSeconds: 10 |
yangyan | e63c921 | 2019-05-22 13:04:15 +0800 | [diff] [blame] | 60 | timeoutSeconds: 5 |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 61 | |
| 62 | ## Persist data to a persitent volume |
| 63 | persistence: |
pramod | 47b1b82 | 2018-08-28 15:41:45 +0000 | [diff] [blame] | 64 | enabled: true |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 65 | |
| 66 | ## A manually managed Persistent Volume and Claim |
| 67 | ## Requires persistence.enabled: true |
| 68 | ## If defined, PVC must be created manually before volume will be bound |
| 69 | # existingClaim: |
| 70 | volumeReclaimPolicy: Retain |
| 71 | |
| 72 | ## database data Persistent Volume Storage Class |
| 73 | ## If defined, storageClassName: <storageClass> |
| 74 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 75 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 76 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 77 | ## GKE, AWS & OpenStack) |
| 78 | ## |
| 79 | # storageClass: "-" |
pramod | 47b1b82 | 2018-08-28 15:41:45 +0000 | [diff] [blame] | 80 | accessMode: ReadWriteMany |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 81 | size: 2Gi |
pramod | 47b1b82 | 2018-08-28 15:41:45 +0000 | [diff] [blame] | 82 | mountPath: /dockerdata-nfs |
| 83 | mountSubPath: "mariadb-galera/data" |
| 84 | mysqlPath: /var/lib/mysql |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 85 | |
| 86 | service: |
| 87 | internalPort: 3306 |
| 88 | name: mariadb-galera |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 89 | portName: mariadb-galera |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 90 | sstPort: 4444 |
Mike Elliott | 4c88b2d | 2018-09-13 09:32:08 -0400 | [diff] [blame] | 91 | sstPortName: sst |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 92 | replicationPort: 4567 |
| 93 | replicationName: replication |
| 94 | istPort: 4568 |
Mike Elliott | 4c88b2d | 2018-09-13 09:32:08 -0400 | [diff] [blame] | 95 | istPortName: ist |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 96 | |
| 97 | ingress: |
| 98 | enabled: false |
| 99 | |
| 100 | |
| 101 | ## Configure MariaDB-Galera with a custom my.cnf file |
| 102 | ## ref: https://mariadb.com/kb/en/mariadb/configuring-mariadb-with-mycnf/#example-of-configuration-file |
| 103 | ## |
| 104 | externalConfig: {} |
| 105 | # externalConfig: |- |
| 106 | # [mysqld] |
| 107 | # innodb_buffer_pool_size=2G |
| 108 | |
| 109 | #resources: {} |
| 110 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 111 | # choice for the user. This also increases chances charts run on environments with little |
| 112 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 113 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 114 | # |
| 115 | # Example: |
| 116 | # Configure resource requests and limits |
| 117 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 118 | # Minimum memory for development is 2 CPU cores and 4GB memory |
| 119 | # Minimum memory for production is 4 CPU cores and 8GB memory |
| 120 | resources: |
Sylvain Desbureaux | ff702c7 | 2018-11-23 14:25:57 +0100 | [diff] [blame] | 121 | small: |
| 122 | limits: |
| 123 | cpu: 2 |
| 124 | memory: 4Gi |
| 125 | requests: |
| 126 | cpu: 1 |
| 127 | memory: 2Gi |
| 128 | large: |
| 129 | limits: |
| 130 | cpu: 2 |
| 131 | memory: 4Gi |
| 132 | requests: |
| 133 | cpu: 1 |
| 134 | memory: 2Gi |
| 135 | unlimited: {} |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 136 | |
| 137 | # Name for mariadb-galera cluster - should be unique accross all projects or other clusters |
| 138 | nameOverride: mariadb-galera |
| 139 | |
| 140 | # DNS name for mariadb-galera cluster - should be unique accross all projects other clusters |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 141 | #dnsnameOverride: mariadb-galera |