diff --git a/book/src/Setup.md b/book/src/Setup.md index 30cbc754..d2b5b113 100644 --- a/book/src/Setup.md +++ b/book/src/Setup.md @@ -7,15 +7,22 @@ Kubernetes v1.9 must be setup to support the new technologies required to enable * API Server binary: ``` ---feature-gates=CSIPersistentVolume=true \ +--allow-privileged=true +--feature-gates=CSIPersistentVolume=true,MountPropagation=true --runtime-config=storage.k8s.io/v1alpha1=true ``` -* API Server binary and kubelet binaries: +* Controller-manager binary + +``` +--feature-gates=CSIPersistentVolume=true +``` + +* Kubelet ``` ---feature-gates=MountPropagation=true \ --allow-privileged=true +--feature-gates=CSIPersistentVolume=true,MountPropagation=true ``` ### Developers @@ -24,7 +31,7 @@ If you are a developer and are using the script `cluster/kube-up.sh` from the Ku ``` export KUBE_RUNTIME_CONFIG="storage.k8s.io/v1alpha1=true" -export KUBE_FEATURE_GATES="CSIPersistentVolume=true" +export KUBE_FEATURE_GATES="MountPropagation=true,CSIPersistentVolume=true" ``` ### Confirming the setup diff --git a/docs/Setup.html b/docs/Setup.html index 0867583d..dc2b521d 100644 --- a/docs/Setup.html +++ b/docs/Setup.html @@ -93,19 +93,25 @@

Kubernetes CSI Documentation

-
--feature-gates=CSIPersistentVolume=true \
+
--allow-privileged=true
+--feature-gates=CSIPersistentVolume=true,MountPropagation=true
 --runtime-config=storage.k8s.io/v1alpha1=true
 
-
--feature-gates=MountPropagation=true \
---allow-privileged=true
+
--feature-gates=CSIPersistentVolume=true
+
+
    +
  • Kubelet
  • +
+
--allow-privileged=true
+--feature-gates=CSIPersistentVolume=true,MountPropagation=true
 

Developers

If you are a developer and are using the script cluster/kube-up.sh from the Kubernetes repo, then you can set values using the following environment variables:

export KUBE_RUNTIME_CONFIG="storage.k8s.io/v1alpha1=true"
-export KUBE_FEATURE_GATES="CSIPersistentVolume=true"
+export KUBE_FEATURE_GATES="MountPropagation=true,CSIPersistentVolume=true"
 

Confirming the setup

Once the system is up, to confirm if the runtime config has taken effect, the following command should return that there are no resources and not return an error:

diff --git a/docs/print.html b/docs/print.html index 7096bfec..0245f751 100644 --- a/docs/print.html +++ b/docs/print.html @@ -100,19 +100,25 @@

Kubernetes CSI Documentation

  • API Server binary:
-
--feature-gates=CSIPersistentVolume=true \
+
--allow-privileged=true
+--feature-gates=CSIPersistentVolume=true,MountPropagation=true
 --runtime-config=storage.k8s.io/v1alpha1=true
 
    -
  • API Server binary and kubelet binaries:
  • +
  • Controller-manager binary
-
--feature-gates=MountPropagation=true \
---allow-privileged=true
+
--feature-gates=CSIPersistentVolume=true
+
+
    +
  • Kubelet
  • +
+
--allow-privileged=true
+--feature-gates=CSIPersistentVolume=true,MountPropagation=true
 

Developers

If you are a developer and are using the script cluster/kube-up.sh from the Kubernetes repo, then you can set values using the following environment variables:

export KUBE_RUNTIME_CONFIG="storage.k8s.io/v1alpha1=true"
-export KUBE_FEATURE_GATES="CSIPersistentVolume=true"
+export KUBE_FEATURE_GATES="MountPropagation=true,CSIPersistentVolume=true"
 

Confirming the setup

Once the system is up, to confirm if the runtime config has taken effect, the following command should return that there are no resources and not return an error: