2019-04-22 21:35:39 +00:00
|
|
|
---
|
2020-06-10 06:23:03 +00:00
|
|
|
# This is a sample configmap that helps define a Ceph cluster configuration
|
2019-04-22 21:35:39 +00:00
|
|
|
# as required by the CSI plugins.
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
# The <cluster-id> is used by the CSI plugin to uniquely identify and use a
|
|
|
|
# Ceph cluster, the value MUST match the value provided as `clusterID` in the
|
|
|
|
# StorageClass
|
|
|
|
# The <MONValue#> fields are the various monitor addresses for the Ceph cluster
|
|
|
|
# identified by the <cluster-id>
|
|
|
|
# If a CSI plugin is using more than one Ceph cluster, repeat the section for
|
|
|
|
# each such cluster in use.
|
2020-06-10 06:23:03 +00:00
|
|
|
# To add more clusters or edit MON addresses in an existing configmap, use
|
2019-04-22 21:35:39 +00:00
|
|
|
# the `kubectl replace` command.
|
2020-06-01 14:15:04 +00:00
|
|
|
# The <rados-namespace> is optional and represents a radosNamespace in the pool.
|
|
|
|
# If any given all the of the rbd images, snapshots and other metadata
|
|
|
|
# will be store within the radosNamespace.
|
|
|
|
# NOTE: The given radosNamespace must already exists in the pool.
|
|
|
|
# NOTE: Make sure you don't add radosNamespace option to a currently in use
|
|
|
|
# configuration as it will cause issues.
|
2020-04-29 10:03:08 +00:00
|
|
|
# The field "cephFS.subvolumeGroup" is optional and defaults to "csi".
|
2020-06-10 06:23:03 +00:00
|
|
|
# NOTE: Changes to the configmap is automatically updated in the running pods,
|
|
|
|
# thus restarting existing pods using the configmap is NOT required on edits
|
|
|
|
# to the configmap.
|
2019-04-22 21:35:39 +00:00
|
|
|
data:
|
|
|
|
config.json: |-
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"clusterID": "<cluster-id>",
|
2020-06-01 14:15:04 +00:00
|
|
|
"radosNamespace": "<rados-namespace>",
|
2019-04-22 21:35:39 +00:00
|
|
|
"monitors": [
|
|
|
|
"<MONValue1>",
|
|
|
|
"<MONValue2>",
|
|
|
|
...
|
|
|
|
"<MONValueN>"
|
2020-04-29 10:03:08 +00:00
|
|
|
],
|
|
|
|
"cephFS": {
|
|
|
|
"subvolumeGroup": "<subvolumegroup for cephfs volumes>"
|
|
|
|
}
|
2019-04-22 21:35:39 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
metadata:
|
|
|
|
name: ceph-csi-config
|