Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This introduces a new CRD to add the ability to create rados namespace for a given ceph block pool. Typically the name of the pool is the name of the blockpool created by rook. Closes: #7035 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
- Loading branch information
Showing
33 changed files
with
1,812 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ | |
"rgw", | ||
"security", | ||
"subvolumegroup", | ||
"radosnamespace", | ||
"test" | ||
] | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: RadosNamespace CRD | ||
weight: 3610 | ||
indent: true | ||
--- | ||
|
||
{% include_relative branch.liquid %} | ||
|
||
This guide assumes you have created a Rook cluster as explained in the main [Quickstart guide](quickstart.md) | ||
|
||
# CephBlockPoolRadosNamespace CRD | ||
|
||
Rook allows creation of Ceph BlockPool | ||
[RadosNamespaces](https://docs.ceph.com/en/latest/man/8/rbd/) through the | ||
custom resource definitions (CRDs). BlockPool Rados Namespace is an abstraction | ||
for a block pool. For more information about BlockPool and namespace refer to | ||
the [Ceph docs](https://docs.ceph.com/en/latest/man/8/rbd/). | ||
|
||
## Creating daemon | ||
|
||
To get you started, here is a simple example of a CRD to create a CephBlockPoolRadosNamespace on the CephBlockPool "replicapool". | ||
|
||
```yaml | ||
apiVersion: ceph.rook.io/v1 | ||
kind: CephBlockPoolRadosNamespace | ||
metadata: | ||
name: namespace-a | ||
namespace: rook-ceph # namespace:cluster | ||
spec: | ||
# blockpoolName is the name of Ceph BlockPool. Typically it's the name of the CephBlockPool CR. | ||
blockpoolName: replicapool | ||
``` | ||
|
||
## Settings | ||
|
||
If any setting is unspecified, a suitable default will be used automatically. | ||
|
||
### CephBlockPoolRadosNamespace metadata | ||
|
||
- `name`: The name that will be used for the Ceph BlockPool rados namespace. | ||
|
||
### CephBlockPoolRadosNamespace spec | ||
|
||
- `blockPoolName`: The metadata name of the CephBlockPool CR where the rados namespace will be created. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
apiVersion: ceph.rook.io/v1 | ||
kind: CephBlockPoolRadosNamespace | ||
metadata: | ||
name: namespace-a | ||
namespace: rook-ceph # namespace:cluster | ||
spec: | ||
# blockpoolName is the name of Ceph BlockPool. Typically it's the name of the CephBlockPool CR. | ||
blockpoolName: replicapool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.