From e22fb57c74621d8fd352c9731dafb5259ec79cab Mon Sep 17 00:00:00 2001 From: Daishan Peng Date: Tue, 19 Jun 2018 14:34:51 -0700 Subject: [PATCH 1/3] add gke import tips --- .../rancher/v2.x/en/tasks/clusters/import-cluster/_index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/rancher/v2.x/en/tasks/clusters/import-cluster/_index.md b/content/rancher/v2.x/en/tasks/clusters/import-cluster/_index.md index fc1a9fd935..d72f3a4803 100644 --- a/content/rancher/v2.x/en/tasks/clusters/import-cluster/_index.md +++ b/content/rancher/v2.x/en/tasks/clusters/import-cluster/_index.md @@ -2,6 +2,11 @@ title: Importing a Cluster weight: 3400 --- + +### Requirements + +To be able to import the cluster, you must have the cluster-admin priviledge to run kubectl command. For GKE it doesn't give full priviledge by default. You can grant your user full priviledge access by running `kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user [USER_ACCOUNT]`. To learn more about GKE RBAC, please click [here](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control). + You can import an existing Kubernetes cluster and then manage it using Rancher. 1. From the **Clusters** page, click **Add Cluster**. From 944f6478ad5b65c1083f5ba2e7d6122341953b9c Mon Sep 17 00:00:00 2001 From: Denise Date: Tue, 19 Jun 2018 15:01:19 -0700 Subject: [PATCH 2/3] Update _index.md --- .../v2.x/en/tasks/clusters/import-cluster/_index.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/content/rancher/v2.x/en/tasks/clusters/import-cluster/_index.md b/content/rancher/v2.x/en/tasks/clusters/import-cluster/_index.md index d72f3a4803..652bf66fa1 100644 --- a/content/rancher/v2.x/en/tasks/clusters/import-cluster/_index.md +++ b/content/rancher/v2.x/en/tasks/clusters/import-cluster/_index.md @@ -3,12 +3,13 @@ title: Importing a Cluster weight: 3400 --- -### Requirements - -To be able to import the cluster, you must have the cluster-admin priviledge to run kubectl command. For GKE it doesn't give full priviledge by default. You can grant your user full priviledge access by running `kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user [USER_ACCOUNT]`. To learn more about GKE RBAC, please click [here](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control). - You can import an existing Kubernetes cluster and then manage it using Rancher. +>**Prerequisites:** +> +>- If your existing Kubernetes cluster already has a `cluster-admin` role, you must the `cluster-admin` privilege to import this cluster into Rancher. In order to apply the privilege, you need to run `kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user [USER_ACCOUNT]` before running the `kubectl` command to import the cluster. +>- By default, GKE users are not provided this privilege. To learn more about GKE RBAC, please click [here](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control). + 1. From the **Clusters** page, click **Add Cluster**. 2. Choose **Import**. From 130dfca1f0a4941c24a72ba2c17ffa358222df4d Mon Sep 17 00:00:00 2001 From: Denise Date: Tue, 19 Jun 2018 15:02:16 -0700 Subject: [PATCH 3/3] Update _index.md --- .../rancher/v2.x/en/tasks/clusters/import-cluster/_index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/rancher/v2.x/en/tasks/clusters/import-cluster/_index.md b/content/rancher/v2.x/en/tasks/clusters/import-cluster/_index.md index 652bf66fa1..0ef11990d0 100644 --- a/content/rancher/v2.x/en/tasks/clusters/import-cluster/_index.md +++ b/content/rancher/v2.x/en/tasks/clusters/import-cluster/_index.md @@ -7,8 +7,8 @@ You can import an existing Kubernetes cluster and then manage it using Rancher. >**Prerequisites:** > ->- If your existing Kubernetes cluster already has a `cluster-admin` role, you must the `cluster-admin` privilege to import this cluster into Rancher. In order to apply the privilege, you need to run `kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user [USER_ACCOUNT]` before running the `kubectl` command to import the cluster. ->- By default, GKE users are not provided this privilege. To learn more about GKE RBAC, please click [here](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control). +>- If your existing Kubernetes cluster already has a `cluster-admin` role defined, you must have this `cluster-admin` privilege to import the cluster into Rancher. In order to apply the privilege, you need to run `kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user [USER_ACCOUNT]` before running the `kubectl` command to import the cluster. +>- By default, GKE users are not given this privilege, so you will need to run the command before importing GKE clusters. To learn more about GKE RBAC, please click [here](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control). 1. From the **Clusters** page, click **Add Cluster**.