From ae1face2d85a30f23ca46db9196f09bb20e12a5a Mon Sep 17 00:00:00 2001 From: Steve Leon Date: Tue, 16 Jan 2018 21:49:44 -0800 Subject: [PATCH] Adding documentation to specify a non-custom flexvolume dir on 1.9 This makes Rook work with Coreos on 1.9+ Partially addresses https://github.com/rook/rook/issues/1330 --- Documentation/flexvolume.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/flexvolume.md b/Documentation/flexvolume.md index b9bf13316..10b2b2dfc 100644 --- a/Documentation/flexvolume.md +++ b/Documentation/flexvolume.md @@ -23,6 +23,12 @@ In CoreOS, our recommendation is to specify the flag as shown below: Restart Kubelet in order for this change to take effect. +In Kubernetes 1.9.x, you must provide this directory when deploying the [rook-operator](/cluster/examples/kubernetes/rook-operator.yaml) by setting the environment variable `FLEXVOLUME_DIR_PATH`. For example: +```yaml +- name: FLEXVOLUME_DIR_PATH + value: "/var/lib/kubelet/volumeplugins" +``` + ## Rancher Rancher provides an easy way to configure Kubelet. This flag can be provided to the Kubelet configuration template at deployment time or by using the `up to date` feature if Kubernetes is already deployed. @@ -35,6 +41,12 @@ To configure Flexvolume in Rancher, specify this Kubelet flag as shown below: Restart Kubelet in order for this change to take effect. +In Kubernetes 1.9.x, you must provide this directory when deploying the [rook-operator](/cluster/examples/kubernetes/rook-operator.yaml) by setting the environment variable `FLEXVOLUME_DIR_PATH`. For example: +```yaml +- name: FLEXVOLUME_DIR_PATH + value: "/var/lib/kubelet/volumeplugins" +``` + ## Tectonic Follow [these instructions](tectonic.md) to configure Rook on Tectonic.