-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add design for using host networking in controller plugins
Signed-off-by: Michael Adam <[email protected]>
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Enabling host networking for controller plugin pods | ||
|
||
By default, the Ceph-CSI controller plugins operate on the pod network | ||
but under some circumstances, like setups with a dedicated storage network, | ||
where the pod network cannot connect to the ceph cluster, | ||
it is necessary to run the Ceph-CSI controller plugin pods on the host network. | ||
|
||
This document describes how the ceph-csi-operator can be configured to enforce the use of host network | ||
in the Ceph-CSI controller plugin pods | ||
|
||
|
||
|
||
The use of host networking can be enabled for a driver's controller plugin by setting `hostNetwork` to `true`in the `ControllerPlugin` section of the corresponding Driver CR. | ||
|
||
The `useHostNetworking` setting is also available in the `driverSpecDefaults.controllerPlugin` section | ||
of the `OperatorConfig` CR. As this is a default for all Ceph-CSI controller plugins created by the operator, the setting | ||
in concrete Driver CRs will take precedence. | ||
|
||
There is currently no means of enforcing the use of host networking on all controller plugins against driver CR settings. | ||
|
||
|
||
Example: | ||
|
||
|
||
## OperatorConfig CR | ||
|
||
kind: OperatorConfig | ||
apiVersion: csi.ceph.io/v1alpha1 | ||
metadata: | ||
name: ceph-csi-operator-config | ||
namespace: <operator-namespace> | ||
spec: | ||
driverSpecDefaults: | ||
controllerPlugin: | ||
hostNetwork: true | ||
|
||
## Driver CR | ||
apiVersion: csi.ceph.io/v1alpha1 | ||
kind: Driver | ||
metadata: | ||
name: rbd.csi.ceph.com | ||
namespace: <operator-namespace> | ||
spec: | ||
controllerPlugin: | ||
hostNetwork: false | ||
|