vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 1 | ################################################################# |
| 2 | # Global configuration defaults. |
| 3 | ################################################################# |
| 4 | global: |
| 5 | nodePortPrefix: 302 |
| 6 | repositorySecret: eyJuZXh1czMub25hcC5vcmc6MTAwMDEiOnsidXNlcm5hbWUiOiJkb2NrZXIiLCJwYXNzd29yZCI6ImRvY2tlciIsImVtYWlsIjoiQCIsImF1dGgiOiJaRzlqYTJWeU9tUnZZMnRsY2c9PSJ9fQ== |
| 7 | persistence: {} |
| 8 | repository: nexus3.onap.org:10001 |
| 9 | |
| 10 | |
| 11 | ################################################################# |
| 12 | # Application configuration defaults. |
| 13 | ################################################################# |
| 14 | |
| 15 | #repository: mysql |
| 16 | repository: nexus3.onap.org:10001 |
| 17 | image: adfinissygroup/k8s-mariadb-galera-centos:v002 |
| 18 | imageInit: busybox |
| 19 | pullPolicy: IfNotPresent |
| 20 | |
| 21 | # application configuration |
| 22 | config: |
| 23 | mariadbRootPassword: secretpassword |
| 24 | userName: my-user |
| 25 | userPassword: my-password |
| 26 | mysqlDatabase: my-database |
| 27 | |
| 28 | # default number of instances in the StatefulSet |
| 29 | replicaCount: 3 |
| 30 | |
| 31 | nodeSelector: {} |
| 32 | |
| 33 | affinity: {} |
| 34 | |
| 35 | # probe configuration parameters |
| 36 | liveness: |
| 37 | initialDelaySeconds: 30 |
| 38 | periodSeconds: 10 |
| 39 | timeoutSeconds: 5 |
| 40 | # necessary to disable liveness probe when setting breakpoints |
| 41 | # in debugger so K8s doesn't restart unresponsive container |
| 42 | enabled: true |
| 43 | |
| 44 | readiness: |
| 45 | initialDelaySeconds: 15 |
| 46 | periodSeconds: 10 |
| 47 | |
| 48 | ## Persist data to a persitent volume |
| 49 | persistence: |
| 50 | enabled: false |
| 51 | |
| 52 | ## A manually managed Persistent Volume and Claim |
| 53 | ## Requires persistence.enabled: true |
| 54 | ## If defined, PVC must be created manually before volume will be bound |
| 55 | # existingClaim: |
| 56 | volumeReclaimPolicy: Retain |
| 57 | |
| 58 | ## database data Persistent Volume Storage Class |
| 59 | ## If defined, storageClassName: <storageClass> |
| 60 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 61 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 62 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 63 | ## GKE, AWS & OpenStack) |
| 64 | ## |
| 65 | # storageClass: "-" |
| 66 | accessMode: ReadWriteOnce |
| 67 | size: 2Gi |
| 68 | |
| 69 | |
| 70 | service: |
| 71 | internalPort: 3306 |
| 72 | name: mariadb-galera |
| 73 | sstPort: 4444 |
| 74 | sstName: sst |
| 75 | replicationPort: 4567 |
| 76 | replicationName: replication |
| 77 | istPort: 4568 |
| 78 | istName: ist |
| 79 | |
| 80 | ingress: |
| 81 | enabled: false |
| 82 | |
| 83 | |
| 84 | ## Configure MariaDB-Galera with a custom my.cnf file |
| 85 | ## ref: https://mariadb.com/kb/en/mariadb/configuring-mariadb-with-mycnf/#example-of-configuration-file |
| 86 | ## |
| 87 | externalConfig: {} |
| 88 | # externalConfig: |- |
| 89 | # [mysqld] |
| 90 | # innodb_buffer_pool_size=2G |
| 91 | |
| 92 | #resources: {} |
| 93 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 94 | # choice for the user. This also increases chances charts run on environments with little |
| 95 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 96 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 97 | # |
| 98 | # Example: |
| 99 | # Configure resource requests and limits |
| 100 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 101 | # Minimum memory for development is 2 CPU cores and 4GB memory |
| 102 | # Minimum memory for production is 4 CPU cores and 8GB memory |
| 103 | resources: |
| 104 | limits: |
| 105 | cpu: 2 |
| 106 | memory: 4Gi |
| 107 | requests: |
| 108 | cpu: 2 |
| 109 | memory: 4Gi |
| 110 | |
| 111 | # Name for mariadb-galera cluster - should be unique accross all projects or other clusters |
| 112 | nameOverride: mariadb-galera |
| 113 | |
| 114 | # DNS name for mariadb-galera cluster - should be unique accross all projects other clusters |
| 115 | #dnsnameOverride: mariadb-galera |