1
0
mirror of https://github.com/jcwimer/kubernetes-ansible synced 2026-05-16 17:14:04 +00:00

Updated rook

This commit is contained in:
2019-02-13 14:33:39 -05:00
parent 0cef5651c4
commit 15073e0e1c
4 changed files with 309 additions and 57 deletions

View File

@@ -1,11 +1,11 @@
apiVersion: ceph.rook.io/v1beta1
kind: Pool
apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata:
name: replicapool
namespace: rook-ceph
spec:
replicated:
size: 3
size: 1
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
@@ -13,10 +13,15 @@ metadata:
name: rook-ceph-block
provisioner: ceph.rook.io/block
parameters:
pool: replicapool
# The value of "clusterNamespace" MUST be the same as the one in which your rook cluster exist
blockPool: replicapool
# Specify the namespace of the rook cluster from which to create volumes.
# If not specified, it will use `rook` as the default namespace of the cluster.
# This is also the namespace where the cluster will be
clusterNamespace: rook-ceph
# Specify the filesystem type of the volume. If not specified, it will use `ext4`.
fstype: xfs
# Optional, default reclaimPolicy is "Delete". Other options are: "Retain", "Recycle" as documented in https://kubernetes.io/docs/concepts/storage/storage-classes/
reclaimPolicy: Retain
# (Optional) Specify an existing Ceph user that will be used for mounting storage with this StorageClass.
#mountUser: user1
# (Optional) Specify an existing Kubernetes secret name containing just one key holding the Ceph user secret.
# The secret must exist in each namespace(s) where the storage will be consumed.
#mountSecret: ceph-user1-secret