You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cloudConfigFilePath=flag.String("cloud-config", "", "Path to GCE cloud provider config")
38
+
runControllerService=flag.Bool("run-controller-service", true, "If set to false then the CSI driver does not activate its controller service (default: true)")
39
+
runIdentityService=flag.Bool("run-identity-service", true, "If set to false then the CSI driver does not activate its identity service (default: true)")
40
+
runNodeService=flag.Bool("run-node-service", true, "If set to false then the CSI driver does not activate its node service (default: true)")
Copy file name to clipboardExpand all lines: docs/kubernetes/user-guides/driver-install.md
+18-1
Original file line number
Diff line number
Diff line change
@@ -20,4 +20,21 @@ $ ./deploy/setup-project.sh
20
20
$ GCE_PD_SA_DIR=/my/safe/credentials/directory # Directory to get the service account key
21
21
$ GCE_PD_DRIVER_VERSION=stable # Driver version to deploy
22
22
$ ./deploy/kubernetes/deploy-driver.sh
23
-
```
23
+
```
24
+
25
+
## Disabling particular CSI driver services
26
+
27
+
Traditionally, you run the CSI controllers with the GCE PD driver in the same Kubernetes cluster.
28
+
Though, there may be cases where you will only want to run a subset of the available driver services (for example, one scenario is running the controllers outside of the cluster they are serving (while the GCE PD driver still runs inside the served cluster), but there might be others scenarios).
29
+
The CSI driver consists out of these services:
30
+
31
+
* The **controller** service starts the GRPC server that is used for communication between the CSI components. It is depending on the GCP service account credentials.
32
+
* The **identity** service is responsible to provide identity services like capability information of the CSI plugin.
33
+
* The **node** service implements the various operations for volumes like creation, deletion, etc. It is depending on the GCE metadata service.
34
+
35
+
The CSI driver has three command line flags, `--run-controller-service`, `--run-identity-service`, and `--run-node-service` which all default to `true`.
36
+
You can disable individually services by setting the respective flags to `false`.
37
+
38
+
Note: If you want to run the CSI controllers outside of the cluster you might need to specify the `local-zone` parameter in the GCE cloud provider config.
39
+
The `local-zone` is the name of one of the availability zones the served Kubernetes cluster is deployed to.
40
+
It is used to derive the GCP region and to discover the other availability zones in this region.
0 commit comments