diff options
| author | Joakim Roubert <joakim.roubert@axis.com> | 2020-10-20 13:14:34 +0200 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-03-15 23:15:42 -0400 |
| commit | a876a2d487b2c29a650d6cf1acb5238a0be43548 (patch) | |
| tree | 6fd49872170f28ec001662b9e9414252801322e7 /recipes-containers/k3s/README.md | |
| parent | 7daf37f06da1a34b31cc4630bf3a68ea13857c1a (diff) | |
| download | meta-virtualization-a876a2d487b2c29a650d6cf1acb5238a0be43548.tar.gz | |
containers: introduce k3s recipe
See recipes-containers/k3s/README.md for basic usage and testing
instructions.
Signed-off-by: Joakim Roubert <joakimr@axis.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/k3s/README.md')
| -rw-r--r-- | recipes-containers/k3s/README.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-containers/k3s/README.md b/recipes-containers/k3s/README.md new file mode 100644 index 00000000..3fe5ccd1 --- /dev/null +++ b/recipes-containers/k3s/README.md | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | # k3s: Lightweight Kubernetes | ||
| 2 | |||
| 3 | Rancher's [k3s](https://k3s.io/), available under | ||
| 4 | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0), provides | ||
| 5 | lightweight Kubernetes suitable for small/edge devices. There are use cases | ||
| 6 | where the | ||
| 7 | [installation procedures provided by Rancher](https://rancher.com/docs/k3s/latest/en/installation/) | ||
| 8 | are not ideal but a bitbake-built version is what is needed. And only a few | ||
| 9 | mods to the [k3s source code](https://github.com/rancher/k3s) is needed to | ||
| 10 | accomplish that. | ||
| 11 | |||
| 12 | ## CNI | ||
| 13 | |||
| 14 | By default, K3s will run with flannel as the CNI, using VXLAN as the default | ||
| 15 | backend. It is both possible to change the flannel backend and to change from | ||
| 16 | flannel to another CNI. | ||
| 17 | |||
| 18 | Please see <https://rancher.com/docs/k3s/latest/en/installation/network-options/> | ||
| 19 | for further k3s networking details. | ||
| 20 | |||
| 21 | ## Configure and run a k3s agent | ||
| 22 | |||
| 23 | The convenience script `k3s-agent` can be used to set up a k3s agent (service): | ||
| 24 | |||
| 25 | ```shell | ||
| 26 | k3s-agent -t <token> -s https://<master>:6443 | ||
| 27 | ``` | ||
| 28 | |||
| 29 | (Here `<token>` is found in `/var/lib/rancher/k3s/server/node-token` at the | ||
| 30 | k3s master.) | ||
