Update rook-ceph kubernetes deployment for k8s 1.15
[infra/stack/kubernetes.git] / apps / ceph / kubespray / playbooks / roles / common / vars / main.yml
1 ---
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2019 The Nordix Foundation. All rights reserved.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
19
20 rook_data_dir_path: "/var/lib/rook"
21 rook_storage_dir_path: "/rook/storage-dir"
22
23 rook_namespace: "rook-ceph"
24
25 # Per SuSE best practices for Rook deployments, separating nodes providing storage
26 # from nodes running workloads consuming said storage
27 # https://documentation.suse.com/sbp/all/html/SBP-rook-ceph-kubernetes/index.html
28
29 # Label to be used to separate ceph workloads from other workloads
30 rook_storage_label: "storage-node"
31 # These nodes will have the label {{rook-storage-label}}=true applied to them
32 rook_storage_nodes: "{{ groups['storage'] }}"
33 # These nodes will have the label {{rook_storage_label}}=false applied to them
34 # as well as a taint {{rook_storage_label}}=false:NoSchedule
35 rook_nostorage_nodes: "{{ groups['k8s-cluster'] | difference(rook_storage_nodes) }}"
36
37 # Disabled for small test environment
38 rook_ceph_crashcollector_disable: true
39 rook_use_host_network: false
40 rook_node_device_filter: "vdb"
41
42 rook_block_pool_name: "block-pool"
43 rook_block_pool_replicas: 1
44 # The below values should be customized according to deployment requirements
45 # See: https://docs.ceph.com/en/latest/rados/configuration/pool-pg-config-ref/
46 rook_ceph_osd_pool_default_size: 1
47 rook_ceph_osd_pool_default_min_size: 1
48 rook_ceph_mon_warn_on_no_pool_redundancy: false
49 # Increase this as required. Must be an odd number. 3 is the recommended value.
50 rook_ceph_mon_count: 1
51
52 rook_block_storage_name: "block-storage"
53 rook_block_storage_fs: "xfs"
54
55 rook_filesystem: "{{ lookup('env', 'ROOK_FS') | default('false', true) }}"
56 rook_filesystem_name: "rookfs"
57 rook_filesystem_storageclass_name: "csi-cephfs"
58
59 # vim: set ts=2 sw=2 expandtab: