Skip to content

Commit

Permalink
[DOC] Edit setup content initial (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Zhang <[email protected]>
  • Loading branch information
KoryKessel-Mirantis and ry4nz authored Jun 11, 2024
1 parent 7b96327 commit c8cff1d
Show file tree
Hide file tree
Showing 13 changed files with 553 additions and 415 deletions.
85 changes: 0 additions & 85 deletions content/docs/setup/README.md

This file was deleted.

148 changes: 0 additions & 148 deletions content/docs/setup/getting-started/README.md

This file was deleted.

41 changes: 41 additions & 0 deletions content/docs/setup/getting-started/Using-the-cluster.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Using the cluster

You can use `kubectl` with the `mke` context to interact with the cluster,
though it is necessary to specify the configuration. `mkectl` outputs the
kubeconfig of the cluster to `~/mke/.mke.kubeconfig`.

You can apply ``.mke.kubeconfig`` using any one of the following methods:

- Set the KUBECONFIG env var to point to `~/.mke/mke.kubeconfig`

```shell
export KUBECONFIG=~/.mke/<cluster name>.kubeconfig
```

- Append the contents to the default kubeconfig:

```shell
cat ~/.mke/mke.kubeconfig >> ~/.kube/config
```

- Specify the config as a command argument:

```shell
kubectl --kubeconfig ~/.mke/mke.kubeconfig
```

Example output:

```text
$ kubectl --context mke get nodes
NAME STATUS ROLES AGE VERSION
node1 Ready <none> 2d v1.29.3+k0s
node2 Ready control-plane 2d v1.29.3+k0s
```

To modify the cluster configuration, edit the YAML configuration file and
rerun the `apply` command.

```shell
mkectl apply -f mke.yaml
```
Loading

0 comments on commit c8cff1d

Please sign in to comment.