Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[microk8s documentation] Documentation on clustering available with the 1.16 release #113

Merged
merged 4 commits into from Sep 27, 2019
Merged
Changes from 3 commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -0,0 +1,51 @@
---
layout: docs
title: "Multi-node MicroK8s"
---
# Multi-node MicroK8s

## Adding a node

To create a cluster out of two or more already-running MicroK8s instances,
use the `microk8s.add-node` command. The MicroK8s instance on which this
command is
run will be the master of the cluster and will host the Kubernetes
control plane:
```
> microk8s.add-node
Join node with: microk8s.join ip-172-31-20-243:25000/DDOkUupkmaBezNnMheTBqFYHLWINGDbf
If the node you are adding is not reachable through the default
interface you can use one of the following:
microk8s.join 10.1.84.0:25000/DDOkUupkmaBezNnMheTBqFYHLWINGDbf
microk8s.join 10.22.254.77:25000/DDOkUupkmaBezNnMheTBqFYHLWINGDbf
```

The `add-node` command prints a `microk8s.join` command which should
be executed on the MicroK8s instance that you wish to join to this

This comment has been minimized.

Copy link
@tvansteenburgh
cluster:
```
> microk8s.join ip-172-31-20-243:25000/DDOkUupkmaBezNnMheTBqFYHLWINGDbf
```

Joining a node to the cluster should only take a few seconds. Afterwards
you should be able to see the node has joined:
```
> microk8s.kubectl get no
NAME STATUS ROLES AGE VERSION
10.22.254.79 Ready <none> 27s v1.15.3
ip-172-31-20-243 Ready <none> 53s v1.15.3
```

## Removing a node

To remove a node from the cluster, use `microk8s.remove-node`:
```
> microk8s.remove-node 10.22.254.79
```

Finally, qn the removed node, run `microk8s.leave`. MicroK8s will restart

This comment has been minimized.

Copy link
@tvansteenburgh
its own control plane and resume operations as a full single node cluster:
```
> microk8s.leave
```
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.