From 9deff7b4bd06b456d626498efdb127dcbd0e3262 Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Mon, 11 Mar 2019 22:23:50 +0200 Subject: [PATCH] Add new state management docs in rke --- content/rke/v0.1.x/en/installation/_index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/rke/v0.1.x/en/installation/_index.md b/content/rke/v0.1.x/en/installation/_index.md index 268520409b8..89b6c240c31 100644 --- a/content/rke/v0.1.x/en/installation/_index.md +++ b/content/rke/v0.1.x/en/installation/_index.md @@ -109,6 +109,16 @@ The last line should read `Finished building Kubernetes cluster successfully` to > **Note:** If you have used a different file name from `cluster.yml`, then the kube config file will be named `kube_config_.yml`. +### Kubernetes Cluster State + +Prior to rke v0.2.0, RKE saves the cluster state which consists of the cluster configuration file `cluster.yml` and components certificates in kubernetes cluster as secrets, in v0.2.0 RKE creates a `.rkestate` file in the same directory that has the cluster configuration file, this file contains the current state of the cluster including the RKE config and the certificates, it is essential to keep this file to be able to update the cluster or perform any operation on it. +``` +$ tree -L 1 +. +├── cluster.rkestate +├── cluster.yml +├── kube_config_cluster.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. @@ -129,3 +139,4 @@ kubectl --kubeconfig kube_config_cluster.yml get nodes NAME STATUS ROLES AGE VERSION 10.0.0.1 Ready controlplane,etcd,worker 35m v1.10.3-rancher1 ``` +