mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-30 10:10:21 +00:00
deploy: add template changes for mapping
added template changes for the clusterID and
poolID,fsID mapping details for the pod templates.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit d321663872
)
This commit is contained in:
parent
829fc5ed95
commit
cbe3ac71f3
@ -85,6 +85,7 @@ charts and their default values.
|
|||||||
| `serviceAccounts.provisioner.create` | Specifies whether a provisioner ServiceAccount should be created | `true` |
|
| `serviceAccounts.provisioner.create` | Specifies whether a provisioner ServiceAccount should be created | `true` |
|
||||||
| `serviceAccounts.provisioner.name` | The name of the provisioner ServiceAccount to use. If not set and create is true, a name is generated using the fullname | "" |
|
| `serviceAccounts.provisioner.name` | The name of the provisioner ServiceAccount to use. If not set and create is true, a name is generated using the fullname | "" |
|
||||||
| `csiConfig` | Configuration for the CSI to connect to the cluster | [] |
|
| `csiConfig` | Configuration for the CSI to connect to the cluster | [] |
|
||||||
|
| `csiMapping` | Configuration details of clusterID,PoolID,FscID mapping | [] |
|
||||||
| `encryptionKMSConfig` | Configuration for the encryption KMS | `{}` |
|
| `encryptionKMSConfig` | Configuration for the encryption KMS | `{}` |
|
||||||
| `logLevel` | Set logging level for csi containers. Supported values from 0 to 5. 0 for general useful logs, 5 for trace level verbosity. | `5` |
|
| `logLevel` | Set logging level for csi containers. Supported values from 0 to 5. 0 for general useful logs, 5 for trace level verbosity. | `5` |
|
||||||
| `nodeplugin.name` | Specifies the nodeplugins name | `nodeplugin` |
|
| `nodeplugin.name` | Specifies the nodeplugins name | `nodeplugin` |
|
||||||
|
@ -13,4 +13,6 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
config.json: |-
|
config.json: |-
|
||||||
{{ toJson .Values.csiConfig | indent 4 -}}
|
{{ toJson .Values.csiConfig | indent 4 -}}
|
||||||
|
cluster-mapping.json: |-
|
||||||
|
{{ toJson .Values.csiMapping | indent 4 -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -27,6 +27,16 @@ serviceAccounts:
|
|||||||
# - "<MONValue2>"
|
# - "<MONValue2>"
|
||||||
csiConfig: []
|
csiConfig: []
|
||||||
|
|
||||||
|
# Configuration details of clusterID,PoolID and FscID mapping
|
||||||
|
# csiMapping:
|
||||||
|
# - clusterIDMapping:
|
||||||
|
# clusterID on site1: clusterID on site2
|
||||||
|
# RBDPoolIDMapping:
|
||||||
|
# - poolID on site1: poolID on site2
|
||||||
|
# CephFSFscIDMapping:
|
||||||
|
# - CephFS FscID on site1: CephFS FscID on site2
|
||||||
|
csiMapping: []
|
||||||
|
|
||||||
# Configuration for the encryption KMS
|
# Configuration for the encryption KMS
|
||||||
# Ref: https://github.com/ceph/ceph-csi/blob/devel/docs/deploy-rbd.md
|
# Ref: https://github.com/ceph/ceph-csi/blob/devel/docs/deploy-rbd.md
|
||||||
# Example:
|
# Example:
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
# as required by the CSI plugins.
|
# as required by the CSI plugins.
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
# Lets see the different configuration under config.json key.
|
||||||
# The <cluster-id> is used by the CSI plugin to uniquely identify and use a
|
# 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
|
# Ceph cluster, the value MUST match the value provided as `clusterID` in the
|
||||||
# StorageClass
|
# StorageClass
|
||||||
@ -22,6 +23,14 @@ kind: ConfigMap
|
|||||||
# NOTE: Changes to the configmap is automatically updated in the running pods,
|
# NOTE: Changes to the configmap is automatically updated in the running pods,
|
||||||
# thus restarting existing pods using the configmap is NOT required on edits
|
# thus restarting existing pods using the configmap is NOT required on edits
|
||||||
# to the configmap.
|
# to the configmap.
|
||||||
|
|
||||||
|
# Lets see the different configuration under cluster-mapping.json key.
|
||||||
|
# This configuration is needed when volumes are mirrored using the Ceph-CSI.
|
||||||
|
# clusterIDMapping holds the mapping between two clusterId's of storage
|
||||||
|
# clusters.
|
||||||
|
# RBDPoolIDMapping holds the mapping between two poolId's of storage clusters.
|
||||||
|
# CephFSFscIDMapping holds the mapping between two FscId's of storage
|
||||||
|
# clusters.
|
||||||
data:
|
data:
|
||||||
config.json: |-
|
config.json: |-
|
||||||
[
|
[
|
||||||
@ -39,5 +48,21 @@ data:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
cluster-mapping.json: |-
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"clusterIDMapping": {
|
||||||
|
"clusterID on site1": "clusterID on site2"
|
||||||
|
},
|
||||||
|
"RBDPoolIDMapping": [{
|
||||||
|
"poolID on site1": "poolID on site2"
|
||||||
|
...
|
||||||
|
}],
|
||||||
|
"CephFSFscIDMapping": [{
|
||||||
|
"CephFS FscID on site1": "CephFS FscID on site2"
|
||||||
|
...
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
]
|
||||||
metadata:
|
metadata:
|
||||||
name: ceph-csi-config
|
name: ceph-csi-config
|
||||||
|
Loading…
Reference in New Issue
Block a user