# 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.

replicas:
  mon: 3
  rgw: 3
  mon_check: 1

service:
  mon:
    name: ceph-mon

images:
  daemon: docker.io/library/ceph/daemon:tag-build-master-jewel-ubuntu-16.04
  pull_policy: IfNotPresent

labels:
  node_selector_key: ceph-storage
  node_selector_value: enabled

pod_disruption_budget:
  mon:
    min_available: 0

network:
  public: "10.25.0.0/16"
  port:
    mon: 6789
    rgw_ingress: 80
    rgw_target: 8088

storage:
  osd_directory: /var/lib/openstack-helm/ceph/osd
  var_directory: /var/lib/openstack-helm/ceph/ceph
  mon_directory: /var/lib/openstack-helm/ceph/mon

# rgw is optionally disabled
rgw:
  enabled: false

resources:
  osd:
    requests:
      memory: "512Mi"
      cpu: "500m"
    limits:
      memory: "1024Mi"
      cpu: "1000m"
  mds:
    requests:
      memory: "10Mi"
      cpu: "250m"
    limits:
      memory: "50Mi"
      cpu: "500m"
  mon:
    requests:
      memory: "50Mi"
      cpu: "250m"
    limits:
      memory: "100Mi"
      cpu: "500m"
  mon_check:
    requests:
      memory: "5Mi"
      cpu: "250m"
    limits:
      memory: "50Mi"
      cpu: "500m"
  rgw:
    requests:
      memory: "5Mi"
      cpu: "250m"
    limits:
      memory: "50Mi"
      cpu: "500m"

# Setting this to false will assume you will
# setup and orchestrate your own secrets and
# configmaps outside of this helm chart
#
# The list below is in the format of
#
#   configMapName:
#      elementKeyName
#
#   ceph.conf:
#      ceph.conf
#      ceph.client.admin.keyring
#      ceph.client.admin.keyring
#   ceph.mon.keyring:
#      ceph.mon.keyring
#   ceph-bootstrap-rgw-keyring:
#      ceph.keyring
#      ceph.rgw.keyring
#   ceph-bootstrap-mds-keyring:
#      ceph.keyring
#      ceph.mds.keyring
#   ceph-bootstrap-osd-keyring:
#      ceph.keyring
#      ceph.osd.keyring
#   ceph-client-key:
#      ceph-client-key
secrets:
  use_common_secrets: true

# if you change provision_storage_class to false
# it is presumed you manage your own storage
# class definition externally
storageclass:
  provision_storage_class: true
  name: general
  monitors: null
  pool: rbd
  admin_id: admin
  admin_secret_name: pvc-ceph-conf-combined-storageclass
  admin_secret_namespace: null
  user_id: admin
  user_secret_name: pvc-ceph-client-key