# Copyright 2017 The Openstack-Helm Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# note that you need to update the gcomm member list
# below when changing this value
replicas: 3

# this flag allows a "leaner" version of this chart to be installed
# likely lacking any resiliency or persistence, but will help
# both laptop developers and cicd systems
#
# it will deploy a single instance of mariadb, use nodeDir
# for persistence and satisfy the mariadb-seed job with
# a busybox mock
#
# note enabling this flag takes precedence when enabled and
# will override certain things, like the replicas requested
development:
  enabled: false
  storage_path: /data/openstack-helm/mariadb

resources:
  enabled: false
  api:
    limits:
      memory: "128Mi"
      cpu: "500m"
    requests:
      memory: "128Mi"
      cpu: "500m"
  job:
    seed:
      limits:
        memory: "128Mi"
        cpu: "500m"
      requests:
        memory: "128Mi"
        cpu: "500m"

# this drives the service name, and statefulset name
service_name: mariadb

images:
  mariadb: quay.io/stackanetes/stackanetes-mariadb:newton
  pull_policy: IfNotPresent

volume:
  class_path: volume.beta.kubernetes.io/storage-class
  class_name: general
  size: 20Gi

labels:
  node_selector_key: openstack-control-plane
  node_selector_value: enabled

network:
  port:
    wsrep: 4567
    mariadb: 3306
    ist: 4444
  dns:
    kubernetes_domain: cluster.local

database:
  root_password: password
  cluster_name: mariadb
  node_name: master