From 807946ea6f98309aed607c449813f8d2e5babc4f Mon Sep 17 00:00:00 2001 From: Denise Schannon Date: Fri, 21 Sep 2018 10:25:49 -0700 Subject: [PATCH] note about kube config file --- .../rancher/v2.x/en/installation/ha/kubernetes-rke/_index.md | 2 ++ content/rke/v0.1.x/en/installation/_index.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/content/rancher/v2.x/en/installation/ha/kubernetes-rke/_index.md b/content/rancher/v2.x/en/installation/ha/kubernetes-rke/_index.md index e04cf8d293b..f6c0f65e11f 100644 --- a/content/rancher/v2.x/en/installation/ha/kubernetes-rke/_index.md +++ b/content/rancher/v2.x/en/installation/ha/kubernetes-rke/_index.md @@ -55,6 +55,8 @@ rke up --config ./rancher-cluster.yml RKE should have created a file `kube_config_rancher-cluster.yml`. This file has the credentials for `kubectl` and `helm`. +> **Note:** If you have used a different file name from `rancher-cluster.yml`, then the kube config file will be named `kube_config_.yml`. + You can copy this file to `$HOME/.kube/config` or if you are working with multiple Kubernetes clusters, set the `KUBECONFIG` environmental variable to the path of `kube_config_rancher-cluster.yml`. ``` diff --git a/content/rke/v0.1.x/en/installation/_index.md b/content/rke/v0.1.x/en/installation/_index.md index bead2e1cab9..d1b2f11a785 100644 --- a/content/rke/v0.1.x/en/installation/_index.md +++ b/content/rke/v0.1.x/en/installation/_index.md @@ -107,6 +107,8 @@ INFO[0101] Finished building Kubernetes cluster successfully The last line should read `Finished building Kubernetes cluster successfully` to indicate that your cluster is ready to use. As part of the Kubernetes creation process, a `kubeconfig` file has been created and written at `kube_config_cluster.yml`, which can be used to start interacting your Kubernetes cluster. +> **Note:** If you have used a different file name from `cluster.yml`, then the kube config file will be named `kube_config_.yml`. + ### Interacting with your Kubernetes cluster In order to start interacting with your Kubernetes cluster, you will use a different binary called `kubectl`. You will need to [install kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) on your local machine. You can connect to the RKE created cluster by using the `kube_config_cluster.yml` that was generated when you deployed Kubernetes.