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