mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-05-22 12:55:19 +00:00
Add new state management docs in rke
This commit is contained in:
committed by
Denise Schannon
parent
957cfd4ee2
commit
9deff7b4bd
@@ -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_<FILE_NAME>.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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user