From 09889f609e2a45cf0578889ca1fe072114082549 Mon Sep 17 00:00:00 2001 From: loganhz Date: Tue, 14 May 2019 11:49:21 +0800 Subject: [PATCH 1/2] Add docs for azure files on Windows --- .../rke-clusters/windows-clusters/_index.md | 42 ++++++++++++++++++- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/content/rancher/v2.x/en/cluster-provisioning/rke-clusters/windows-clusters/_index.md b/content/rancher/v2.x/en/cluster-provisioning/rke-clusters/windows-clusters/_index.md index c619e902fa8..c921cb7fbc0 100644 --- a/content/rancher/v2.x/en/cluster-provisioning/rke-clusters/windows-clusters/_index.md +++ b/content/rancher/v2.x/en/cluster-provisioning/rke-clusters/windows-clusters/_index.md @@ -48,7 +48,7 @@ To set up a custom cluster with support for Windows nodes and containers, you wi - [4. Add Linux Worker Node](#4-add-linux-worker-node) - [5. Add Windows Workers](#5-add-windows-workers) - [6. Cloud-host VM Routes Configuration for Host Gateway Mode (Optional)](#6-cloud-hosted-vm-routes-configuration-for-host-gateway-mode) - +- [7. Configuration for Azure Files (Optional)](#7-configuration-for-azure-files) ## 1. Provision Hosts @@ -186,4 +186,42 @@ Google GCE | For GCE, add a static route for each node: [Adding a Static Route]( Azure VM | For Azure, create a routing table: [Custom Routes: User-defined](https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview#user-defined). -` ` +## 7. Configuration for Azure Files + +You can use Azure Files as the [storage class]({{< baseurl >}}/rancher/v2.x/en/cluster-admin/volumes-and-storage/#adding-storage-classes) if you are using Azure VM in your cluster. For detailed information about it , [see here](https://docs.microsoft.com/en-us/azure/aks/azure-files-dynamic-pv). + +To allow the Azure platform to create the required storage resources, follow these steps: + +1. [Configure the Azure cloud provider]({{< baseurl >}}/rke/latest/en/config-options/cloud-providers/azure) + +1. Configure kubectl to connect to your cluster. + +1. Copy the ClusterRole and ClusterRoleBinding manifest for service account. + + --- + apiVersion: rbac.authorization.k8s.io/v1 + kind: ClusterRole + metadata: + name: system:azure-cloud-provider + rules: + - apiGroups: [''] + resources: ['secrets'] + verbs: ['get','create'] + --- + apiVersion: rbac.authorization.k8s.io/v1 + kind: ClusterRoleBinding + metadata: + name: system:azure-cloud-provider + roleRef: + kind: ClusterRole + apiGroup: rbac.authorization.k8s.io + name: system:azure-cloud-provider + subjects: + - kind: ServiceAccount + name: persistent-volume-binder + namespace: kube-system + +1. Create them in your cluster using one of the follow command. + ``` + # kubectl create -f + ``` From 0abab8bab21ec583dcf6d38ef4e635493a8939af Mon Sep 17 00:00:00 2001 From: Denise Date: Mon, 13 May 2019 21:39:00 -0700 Subject: [PATCH 2/2] Update _index.md --- .../rke-clusters/windows-clusters/_index.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/content/rancher/v2.x/en/cluster-provisioning/rke-clusters/windows-clusters/_index.md b/content/rancher/v2.x/en/cluster-provisioning/rke-clusters/windows-clusters/_index.md index c921cb7fbc0..a489eb434ab 100644 --- a/content/rancher/v2.x/en/cluster-provisioning/rke-clusters/windows-clusters/_index.md +++ b/content/rancher/v2.x/en/cluster-provisioning/rke-clusters/windows-clusters/_index.md @@ -188,15 +188,15 @@ Azure VM | For Azure, create a routing table: [Custom Routes: User-defined](ht ## 7. Configuration for Azure Files -You can use Azure Files as the [storage class]({{< baseurl >}}/rancher/v2.x/en/cluster-admin/volumes-and-storage/#adding-storage-classes) if you are using Azure VM in your cluster. For detailed information about it , [see here](https://docs.microsoft.com/en-us/azure/aks/azure-files-dynamic-pv). +If you are using Azure VMs for your nodes, you can use [Azure files](https://docs.microsoft.com/en-us/azure/aks/azure-files-dynamic-pv) as a [storage class]({{< baseurl >}}/rancher/v2.x/en/cluster-admin/volumes-and-storage/#adding-storage-classes) for the cluster. -To allow the Azure platform to create the required storage resources, follow these steps: +In order to have the Azure platform create the required storage resources, follow these steps: -1. [Configure the Azure cloud provider]({{< baseurl >}}/rke/latest/en/config-options/cloud-providers/azure) +1. [Configure the Azure cloud provider.]({{< baseurl >}}rancher/v2.x/en/cluster-provisioning/rke-clusters/options/cloud-providers/#azure) -1. Configure kubectl to connect to your cluster. +1. Configure `kubectl` to connect to your cluster. -1. Copy the ClusterRole and ClusterRoleBinding manifest for service account. +1. Copy the `ClusterRole` and `ClusterRoleBinding` manifest for service account. --- apiVersion: rbac.authorization.k8s.io/v1 @@ -221,7 +221,8 @@ To allow the Azure platform to create the required storage resources, follow the name: persistent-volume-binder namespace: kube-system -1. Create them in your cluster using one of the follow command. - ``` - # kubectl create -f - ``` +1. Create these in your cluster using one of the follow command. + + ``` + # kubectl create -f + ```