mirror of
https://github.com/jcwimer/kubernetes-ansible
synced 2026-03-24 16:44:44 +00:00
Moved back to rook 0.8.3
This commit is contained in:
@@ -6,75 +6,19 @@ metadata:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: rook-ceph-osd
|
name: rook-ceph-cluster
|
||||||
namespace: rook-ceph
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: rook-ceph-mgr
|
|
||||||
namespace: rook-ceph
|
namespace: rook-ceph
|
||||||
---
|
---
|
||||||
kind: Role
|
kind: Role
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
metadata:
|
metadata:
|
||||||
name: rook-ceph-osd
|
name: rook-ceph-cluster
|
||||||
namespace: rook-ceph
|
namespace: rook-ceph
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["configmaps"]
|
resources: ["configmaps"]
|
||||||
verbs: [ "get", "list", "watch", "create", "update", "delete" ]
|
verbs: [ "get", "list", "watch", "create", "update", "delete" ]
|
||||||
---
|
---
|
||||||
# Aspects of ceph-mgr that require access to the system namespace
|
|
||||||
kind: Role
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
||||||
metadata:
|
|
||||||
name: rook-ceph-mgr-system
|
|
||||||
namespace: rook-ceph
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- configmaps
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
---
|
|
||||||
# Aspects of ceph-mgr that operate within the cluster's namespace
|
|
||||||
kind: Role
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
||||||
metadata:
|
|
||||||
name: rook-ceph-mgr
|
|
||||||
namespace: rook-ceph
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- pods
|
|
||||||
- services
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- apiGroups:
|
|
||||||
- batch
|
|
||||||
resources:
|
|
||||||
- jobs
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- create
|
|
||||||
- update
|
|
||||||
- delete
|
|
||||||
- apiGroups:
|
|
||||||
- ceph.rook.io
|
|
||||||
resources:
|
|
||||||
- "*"
|
|
||||||
verbs:
|
|
||||||
- "*"
|
|
||||||
---
|
|
||||||
# Allow the operator to create resources in this cluster's namespace
|
# Allow the operator to create resources in this cluster's namespace
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
@@ -90,86 +34,33 @@ subjects:
|
|||||||
name: rook-ceph-system
|
name: rook-ceph-system
|
||||||
namespace: rook-ceph-system
|
namespace: rook-ceph-system
|
||||||
---
|
---
|
||||||
# Allow the osd pods in this namespace to work with configmaps
|
# Allow the pods in this namespace to work with configmaps
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
metadata:
|
metadata:
|
||||||
name: rook-ceph-osd
|
name: rook-ceph-cluster
|
||||||
namespace: rook-ceph
|
namespace: rook-ceph
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: Role
|
kind: Role
|
||||||
name: rook-ceph-osd
|
name: rook-ceph-cluster
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-ceph-osd
|
name: rook-ceph-cluster
|
||||||
namespace: rook-ceph
|
namespace: rook-ceph
|
||||||
---
|
---
|
||||||
# Allow the ceph mgr to access the cluster-specific resources necessary for the mgr modules
|
apiVersion: ceph.rook.io/v1beta1
|
||||||
kind: RoleBinding
|
kind: Cluster
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
||||||
metadata:
|
|
||||||
name: rook-ceph-mgr
|
|
||||||
namespace: rook-ceph
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: Role
|
|
||||||
name: rook-ceph-mgr
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: rook-ceph-mgr
|
|
||||||
namespace: rook-ceph
|
|
||||||
---
|
|
||||||
# Allow the ceph mgr to access the rook system resources necessary for the mgr modules
|
|
||||||
kind: RoleBinding
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
||||||
metadata:
|
|
||||||
name: rook-ceph-mgr-system
|
|
||||||
namespace: rook-ceph-system
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: Role
|
|
||||||
name: rook-ceph-mgr-system
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: rook-ceph-mgr
|
|
||||||
namespace: rook-ceph
|
|
||||||
---
|
|
||||||
# Allow the ceph mgr to access cluster-wide resources necessary for the mgr modules
|
|
||||||
kind: RoleBinding
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
||||||
metadata:
|
|
||||||
name: rook-ceph-mgr-cluster
|
|
||||||
namespace: rook-ceph
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: ClusterRole
|
|
||||||
name: rook-ceph-mgr-cluster
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: rook-ceph-mgr
|
|
||||||
namespace: rook-ceph
|
|
||||||
---
|
|
||||||
apiVersion: ceph.rook.io/v1
|
|
||||||
kind: CephCluster
|
|
||||||
metadata:
|
metadata:
|
||||||
name: rook-ceph
|
name: rook-ceph
|
||||||
namespace: rook-ceph
|
namespace: rook-ceph
|
||||||
spec:
|
spec:
|
||||||
cephVersion:
|
|
||||||
# The container image used to launch the Ceph daemon pods (mon, mgr, osd, mds, rgw).
|
|
||||||
# v12 is luminous, v13 is mimic, and v14 is nautilus.
|
|
||||||
# RECOMMENDATION: In production, use a specific version tag instead of the general v13 flag, which pulls the latest release and could result in different
|
|
||||||
# versions running within the cluster. See tags available at https://hub.docker.com/r/ceph/ceph/tags/.
|
|
||||||
image: ceph/ceph:v13.2.4-20190109
|
|
||||||
# Whether to allow unsupported versions of Ceph. Currently only luminous and mimic are supported.
|
|
||||||
# After nautilus is released, Rook will be updated to support nautilus.
|
|
||||||
# Do not set to true in production.
|
|
||||||
allowUnsupported: false
|
|
||||||
# The path on the host where configuration files will be persisted. If not specified, a kubernetes emptyDir will be created (not recommended).
|
# The path on the host where configuration files will be persisted. If not specified, a kubernetes emptyDir will be created (not recommended).
|
||||||
# Important: if you reinstall the cluster, make sure you delete this directory from each host or else the mons will fail to start on the new cluster.
|
# Important: if you reinstall the cluster, make sure you delete this directory from each host or else the mons will fail to start on the new cluster.
|
||||||
# In Minikube, the '/data' directory is configured to persist across reboots. Use "/data/rook" in Minikube environment.
|
# In Minikube, the '/data' directory is configured to persist across reboots. Use "/data/rook" in Minikube environment.
|
||||||
dataDirHostPath: /var/lib/rook
|
dataDirHostPath: /var/lib/rook
|
||||||
|
# The service account under which to run the daemon pods in this cluster if the default account is not sufficient (OSDs)
|
||||||
|
serviceAccount: rook-ceph-cluster
|
||||||
# set the amount of mons to be started
|
# set the amount of mons to be started
|
||||||
mon:
|
mon:
|
||||||
count: 3
|
count: 3
|
||||||
@@ -177,19 +68,9 @@ spec:
|
|||||||
# enable the ceph dashboard for viewing cluster status
|
# enable the ceph dashboard for viewing cluster status
|
||||||
dashboard:
|
dashboard:
|
||||||
enabled: true
|
enabled: true
|
||||||
# serve the dashboard under a subpath (useful when you are accessing the dashboard via a reverse proxy)
|
|
||||||
# urlPrefix: /ceph-dashboard
|
|
||||||
# serve the dashboard at the given port.
|
|
||||||
# port: 8443
|
|
||||||
# serve the dashboard using SSL
|
|
||||||
# ssl: true
|
|
||||||
network:
|
network:
|
||||||
# toggle to use hostNetwork
|
# toggle to use hostNetwork
|
||||||
hostNetwork: false
|
hostNetwork: false
|
||||||
rbdMirroring:
|
|
||||||
# The number of daemons that will perform the rbd mirroring.
|
|
||||||
# rbd mirroring must be configured with "rbd mirror" from the rook toolbox.
|
|
||||||
workers: 0
|
|
||||||
# To control where various services will be scheduled by kubernetes, use the placement configuration sections below.
|
# To control where various services will be scheduled by kubernetes, use the placement configuration sections below.
|
||||||
# The example under 'all' would have all services scheduled on kubernetes nodes labeled with 'role=storage-node' and
|
# The example under 'all' would have all services scheduled on kubernetes nodes labeled with 'role=storage-node' and
|
||||||
# tolerate taints with a key of 'storage-node'.
|
# tolerate taints with a key of 'storage-node'.
|
||||||
@@ -235,7 +116,6 @@ spec:
|
|||||||
# storeType: bluestore
|
# storeType: bluestore
|
||||||
databaseSizeMB: "1024" # this value can be removed for environments with normal sized disks (100 GB or larger)
|
databaseSizeMB: "1024" # this value can be removed for environments with normal sized disks (100 GB or larger)
|
||||||
journalSizeMB: "1024" # this value can be removed for environments with normal sized disks (20 GB or larger)
|
journalSizeMB: "1024" # this value can be removed for environments with normal sized disks (20 GB or larger)
|
||||||
osdsPerDevice: "1" # this value can be overridden at the node or device level
|
|
||||||
# Cluster level list of directories to use for storage. These values will be set for all nodes that have no `directories` set.
|
# Cluster level list of directories to use for storage. These values will be set for all nodes that have no `directories` set.
|
||||||
# directories:
|
# directories:
|
||||||
# - path: /rook/storage-dir
|
# - path: /rook/storage-dir
|
||||||
@@ -255,9 +135,7 @@ spec:
|
|||||||
# - name: "172.17.4.201"
|
# - name: "172.17.4.201"
|
||||||
# devices: # specific devices to use for storage can be specified for each node
|
# devices: # specific devices to use for storage can be specified for each node
|
||||||
# - name: "sdb"
|
# - name: "sdb"
|
||||||
# - name: "nvme01" # multiple osds can be created on high performance devices
|
# - name: "sdc"
|
||||||
# config:
|
|
||||||
# osdsPerDevice: "5"
|
|
||||||
# config: # configuration can be specified at the node level which overrides the cluster level config
|
# config: # configuration can be specified at the node level which overrides the cluster level config
|
||||||
# storeType: filestore
|
# storeType: filestore
|
||||||
# - name: "172.17.4.301"
|
# - name: "172.17.4.301"
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: dashboard
|
- name: dashboard
|
||||||
port: 8443
|
port: 7000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 8443
|
targetPort: 7000
|
||||||
selector:
|
selector:
|
||||||
app: rook-ceph-mgr
|
app: rook-ceph-mgr
|
||||||
rook_cluster: rook-ceph
|
rook_cluster: rook-ceph
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ kubectl apply -f operator.yaml
|
|||||||
sleep 30s
|
sleep 30s
|
||||||
kubectl apply -f cluster.yaml
|
kubectl apply -f cluster.yaml
|
||||||
sleep 60s
|
sleep 60s
|
||||||
kubectl apply -f storageclass.yaml
|
echo kubectl apply -f storageclass.yaml
|
||||||
kubectl apply -f dashboard-external.yaml
|
kubectl apply -f dashboard-external.yaml
|
||||||
|
|||||||
@@ -6,145 +6,66 @@ metadata:
|
|||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: cephclusters.ceph.rook.io
|
name: clusters.ceph.rook.io
|
||||||
spec:
|
spec:
|
||||||
group: ceph.rook.io
|
group: ceph.rook.io
|
||||||
names:
|
names:
|
||||||
kind: CephCluster
|
kind: Cluster
|
||||||
listKind: CephClusterList
|
listKind: ClusterList
|
||||||
plural: cephclusters
|
plural: clusters
|
||||||
singular: cephcluster
|
singular: cluster
|
||||||
|
shortNames:
|
||||||
|
- rcc
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
version: v1
|
version: v1beta1
|
||||||
validation:
|
|
||||||
openAPIV3Schema:
|
|
||||||
properties:
|
|
||||||
spec:
|
|
||||||
properties:
|
|
||||||
cephVersion:
|
|
||||||
properties:
|
|
||||||
allowUnsupported:
|
|
||||||
type: boolean
|
|
||||||
image:
|
|
||||||
type: string
|
|
||||||
name:
|
|
||||||
pattern: ^(luminous|mimic|nautilus)$
|
|
||||||
type: string
|
|
||||||
dashboard:
|
|
||||||
properties:
|
|
||||||
enabled:
|
|
||||||
type: boolean
|
|
||||||
urlPrefix:
|
|
||||||
type: string
|
|
||||||
port:
|
|
||||||
type: integer
|
|
||||||
dataDirHostPath:
|
|
||||||
pattern: ^/(\S+)
|
|
||||||
type: string
|
|
||||||
mon:
|
|
||||||
properties:
|
|
||||||
allowMultiplePerNode:
|
|
||||||
type: boolean
|
|
||||||
count:
|
|
||||||
maximum: 9
|
|
||||||
minimum: 1
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- count
|
|
||||||
network:
|
|
||||||
properties:
|
|
||||||
hostNetwork:
|
|
||||||
type: boolean
|
|
||||||
storage:
|
|
||||||
properties:
|
|
||||||
nodes:
|
|
||||||
items: {}
|
|
||||||
type: array
|
|
||||||
useAllDevices: {}
|
|
||||||
useAllNodes:
|
|
||||||
type: boolean
|
|
||||||
required:
|
|
||||||
- mon
|
|
||||||
additionalPrinterColumns:
|
|
||||||
- name: DataDirHostPath
|
|
||||||
type: string
|
|
||||||
description: Directory used on the K8s nodes
|
|
||||||
JSONPath: .spec.dataDirHostPath
|
|
||||||
- name: MonCount
|
|
||||||
type: string
|
|
||||||
description: Number of MONs
|
|
||||||
JSONPath: .spec.mon.count
|
|
||||||
- name: Age
|
|
||||||
type: date
|
|
||||||
JSONPath: .metadata.creationTimestamp
|
|
||||||
- name: State
|
|
||||||
type: string
|
|
||||||
description: Current State
|
|
||||||
JSONPath: .status.state
|
|
||||||
---
|
---
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: cephfilesystems.ceph.rook.io
|
name: filesystems.ceph.rook.io
|
||||||
spec:
|
spec:
|
||||||
group: ceph.rook.io
|
group: ceph.rook.io
|
||||||
names:
|
names:
|
||||||
kind: CephFilesystem
|
kind: Filesystem
|
||||||
listKind: CephFilesystemList
|
listKind: FilesystemList
|
||||||
plural: cephfilesystems
|
plural: filesystems
|
||||||
singular: cephfilesystem
|
singular: filesystem
|
||||||
|
shortNames:
|
||||||
|
- rcfs
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
version: v1
|
version: v1beta1
|
||||||
additionalPrinterColumns:
|
|
||||||
- name: MdsCount
|
|
||||||
type: string
|
|
||||||
description: Number of MDSs
|
|
||||||
JSONPath: .spec.metadataServer.activeCount
|
|
||||||
- name: Age
|
|
||||||
type: date
|
|
||||||
JSONPath: .metadata.creationTimestamp
|
|
||||||
---
|
---
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: cephobjectstores.ceph.rook.io
|
name: objectstores.ceph.rook.io
|
||||||
spec:
|
spec:
|
||||||
group: ceph.rook.io
|
group: ceph.rook.io
|
||||||
names:
|
names:
|
||||||
kind: CephObjectStore
|
kind: ObjectStore
|
||||||
listKind: CephObjectStoreList
|
listKind: ObjectStoreList
|
||||||
plural: cephobjectstores
|
plural: objectstores
|
||||||
singular: cephobjectstore
|
singular: objectstore
|
||||||
|
shortNames:
|
||||||
|
- rco
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
version: v1
|
version: v1beta1
|
||||||
---
|
---
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: cephobjectstoreusers.ceph.rook.io
|
name: pools.ceph.rook.io
|
||||||
spec:
|
spec:
|
||||||
group: ceph.rook.io
|
group: ceph.rook.io
|
||||||
names:
|
names:
|
||||||
kind: CephObjectStoreUser
|
kind: Pool
|
||||||
listKind: CephObjectStoreUserList
|
listKind: PoolList
|
||||||
plural: cephobjectstoreusers
|
plural: pools
|
||||||
singular: cephobjectstoreuser
|
singular: pool
|
||||||
|
shortNames:
|
||||||
|
- rcp
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
version: v1
|
version: v1beta1
|
||||||
---
|
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
|
||||||
kind: CustomResourceDefinition
|
|
||||||
metadata:
|
|
||||||
name: cephblockpools.ceph.rook.io
|
|
||||||
spec:
|
|
||||||
group: ceph.rook.io
|
|
||||||
names:
|
|
||||||
kind: CephBlockPool
|
|
||||||
listKind: CephBlockPoolList
|
|
||||||
plural: cephblockpools
|
|
||||||
singular: cephblockpool
|
|
||||||
scope: Namespaced
|
|
||||||
version: v1
|
|
||||||
---
|
---
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
@@ -176,7 +97,6 @@ rules:
|
|||||||
resources:
|
resources:
|
||||||
- secrets
|
- secrets
|
||||||
- pods
|
- pods
|
||||||
- pods/log
|
|
||||||
- services
|
- services
|
||||||
- configmaps
|
- configmaps
|
||||||
verbs:
|
verbs:
|
||||||
@@ -304,26 +224,6 @@ rules:
|
|||||||
verbs:
|
verbs:
|
||||||
- "*"
|
- "*"
|
||||||
---
|
---
|
||||||
# Aspects of ceph-mgr that require cluster-wide access
|
|
||||||
kind: ClusterRole
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
||||||
metadata:
|
|
||||||
name: rook-ceph-mgr-cluster
|
|
||||||
labels:
|
|
||||||
operator: rook
|
|
||||||
storage-backend: ceph
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- configmaps
|
|
||||||
- nodes
|
|
||||||
- nodes/proxy
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
---
|
|
||||||
# The rook system service account used by the operator, agent, and discovery pods
|
# The rook system service account used by the operator, agent, and discovery pods
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
@@ -389,7 +289,7 @@ spec:
|
|||||||
serviceAccountName: rook-ceph-system
|
serviceAccountName: rook-ceph-system
|
||||||
containers:
|
containers:
|
||||||
- name: rook-ceph-operator
|
- name: rook-ceph-operator
|
||||||
image: rook/ceph:v0.9.2
|
image: rook/ceph:v0.8.3
|
||||||
args: ["ceph", "operator"]
|
args: ["ceph", "operator"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/rook
|
- mountPath: /var/lib/rook
|
||||||
@@ -403,30 +303,17 @@ spec:
|
|||||||
# Rook Agent toleration. Will tolerate all taints with all keys.
|
# Rook Agent toleration. Will tolerate all taints with all keys.
|
||||||
# Choose between NoSchedule, PreferNoSchedule and NoExecute:
|
# Choose between NoSchedule, PreferNoSchedule and NoExecute:
|
||||||
# - name: AGENT_TOLERATION
|
# - name: AGENT_TOLERATION
|
||||||
# value: "NoSchedule"
|
# value: "NoSchedule"
|
||||||
# (Optional) Rook Agent toleration key. Set this to the key of the taint you want to tolerate
|
# (Optional) Rook Agent toleration key. Set this to the key of the taint you want to tolerate
|
||||||
# - name: AGENT_TOLERATION_KEY
|
# - name: AGENT_TOLERATION_KEY
|
||||||
# value: "<KeyOfTheTaintToTolerate>"
|
# value: "<KeyOfTheTaintToTolerate>"
|
||||||
# (Optional) Rook Agent mount security mode. Can by `Any` or `Restricted`.
|
|
||||||
# `Any` uses Ceph admin credentials by default/fallback.
|
|
||||||
# For using `Restricted` you must have a Ceph secret in each namespace storage should be consumed from and
|
|
||||||
# set `mountUser` to the Ceph user, `mountSecret` to the Kubernetes secret name.
|
|
||||||
# to the namespace in which the `mountSecret` Kubernetes secret namespace.
|
|
||||||
# - name: AGENT_MOUNT_SECURITY_MODE
|
|
||||||
# value: "Any"
|
|
||||||
# Set the path where the Rook agent can find the flex volumes
|
# Set the path where the Rook agent can find the flex volumes
|
||||||
# - name: FLEXVOLUME_DIR_PATH
|
# - name: FLEXVOLUME_DIR_PATH
|
||||||
# value: "<PathToFlexVolumes>"
|
# value: "<PathToFlexVolumes>"
|
||||||
# Set the path where kernel modules can be found
|
|
||||||
# - name: LIB_MODULES_DIR_PATH
|
|
||||||
# value: "<PathToLibModules>"
|
|
||||||
# Mount any extra directories into the agent container
|
|
||||||
# - name: AGENT_MOUNTS
|
|
||||||
# value: "somemount=/host/path:/container/path,someothermount=/host/path2:/container/path2"
|
|
||||||
# Rook Discover toleration. Will tolerate all taints with all keys.
|
# Rook Discover toleration. Will tolerate all taints with all keys.
|
||||||
# Choose between NoSchedule, PreferNoSchedule and NoExecute:
|
# Choose between NoSchedule, PreferNoSchedule and NoExecute:
|
||||||
# - name: DISCOVER_TOLERATION
|
# - name: DISCOVER_TOLERATION
|
||||||
# value: "NoSchedule"
|
# value: "NoSchedule"
|
||||||
# (Optional) Rook Discover toleration key. Set this to the key of the taint you want to tolerate
|
# (Optional) Rook Discover toleration key. Set this to the key of the taint you want to tolerate
|
||||||
# - name: DISCOVER_TOLERATION_KEY
|
# - name: DISCOVER_TOLERATION_KEY
|
||||||
# value: "<KeyOfTheTaintToTolerate>"
|
# value: "<KeyOfTheTaintToTolerate>"
|
||||||
@@ -446,23 +333,11 @@ spec:
|
|||||||
# current mon with a new mon (useful for compensating flapping network).
|
# current mon with a new mon (useful for compensating flapping network).
|
||||||
- name: ROOK_MON_OUT_TIMEOUT
|
- name: ROOK_MON_OUT_TIMEOUT
|
||||||
value: "300s"
|
value: "300s"
|
||||||
# The duration between discovering devices in the rook-discover daemonset.
|
|
||||||
- name: ROOK_DISCOVER_DEVICES_INTERVAL
|
|
||||||
value: "60m"
|
|
||||||
# Whether to start pods as privileged that mount a host path, which includes the Ceph mon and osd pods.
|
# Whether to start pods as privileged that mount a host path, which includes the Ceph mon and osd pods.
|
||||||
# This is necessary to workaround the anyuid issues when running on OpenShift.
|
# This is necessary to workaround the anyuid issues when running on OpenShift.
|
||||||
# For more details see https://github.com/rook/rook/issues/1314#issuecomment-355799641
|
# For more details see https://github.com/rook/rook/issues/1314#issuecomment-355799641
|
||||||
- name: ROOK_HOSTPATH_REQUIRES_PRIVILEGED
|
- name: ROOK_HOSTPATH_REQUIRES_PRIVILEGED
|
||||||
value: "false"
|
value: "false"
|
||||||
# In some situations SELinux relabelling breaks (times out) on large filesystems, and doesn't work with cephfs ReadWriteMany volumes (last relabel wins).
|
|
||||||
# Disable it here if you have similiar issues.
|
|
||||||
# For more details see https://github.com/rook/rook/issues/2417
|
|
||||||
- name: ROOK_ENABLE_SELINUX_RELABELING
|
|
||||||
value: "true"
|
|
||||||
# In large volumes it will take some time to chown all the files. Disable it here if you have performance issues.
|
|
||||||
# For more details see https://github.com/rook/rook/issues/2254
|
|
||||||
- name: ROOK_ENABLE_FSGROUP
|
|
||||||
value: "true"
|
|
||||||
# The name of the node to pass with the downward API
|
# The name of the node to pass with the downward API
|
||||||
- name: NODE_NAME
|
- name: NODE_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
apiVersion: ceph.rook.io/v1
|
apiVersion: ceph.rook.io/v1beta1
|
||||||
kind: CephBlockPool
|
kind: Pool
|
||||||
metadata:
|
metadata:
|
||||||
name: replicapool
|
name: replicapool
|
||||||
namespace: rook-ceph
|
namespace: rook-ceph
|
||||||
spec:
|
spec:
|
||||||
replicated:
|
replicated:
|
||||||
size: 1
|
size: 3
|
||||||
---
|
---
|
||||||
apiVersion: storage.k8s.io/v1
|
apiVersion: storage.k8s.io/v1
|
||||||
kind: StorageClass
|
kind: StorageClass
|
||||||
@@ -13,15 +13,8 @@ metadata:
|
|||||||
name: rook-ceph-block
|
name: rook-ceph-block
|
||||||
provisioner: ceph.rook.io/block
|
provisioner: ceph.rook.io/block
|
||||||
parameters:
|
parameters:
|
||||||
blockPool: replicapool
|
pool: replicapool
|
||||||
# Specify the namespace of the rook cluster from which to create volumes.
|
# The value of "clusterNamespace" MUST be the same as the one in which your rook cluster exist
|
||||||
# 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
|
clusterNamespace: rook-ceph
|
||||||
# Specify the filesystem type of the volume. If not specified, it will use `ext4`.
|
# Specify the filesystem type of the volume. If not specified, it will use `ext4`.
|
||||||
fstype: xfs
|
fstype: xfs
|
||||||
# (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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user