https://github.com/afbjorklund/docker-machine-k3s-install
Using a machine to run k3s. https://github.com/rancher/k3s
https://github.com/afbjorklund/docker-machine-k3s-install
docker k3s
Last synced: 3 months ago
JSON representation
Using a machine to run k3s. https://github.com/rancher/k3s
- Host: GitHub
- URL: https://github.com/afbjorklund/docker-machine-k3s-install
- Owner: afbjorklund
- License: apache-2.0
- Created: 2019-08-05T13:06:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-18T13:34:53.000Z (over 5 years ago)
- Last Synced: 2025-03-20T02:07:06.902Z (7 months ago)
- Topics: docker, k3s
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Machine - Rancher k3s #
This sets up a single-node Kubernetes installation, using regular Boot2Docker ISO.
Tested with k3s version: v1.17.0+k3s.1 featuring kubernetes version: v1.17.0
Written by Anders Björklund (@afbjorklund)
## External URLs ##
Use `k3s-download` to get the binaries, and `k3s-install` to install into a machine.
See https://github.com/rancher/k3s
## Requirements ##
It is _possible_ to install using 1 vCPU / 1G RAM, but 2 vCPU / 2G RAM is recommended.
The total installation is as small as 400M, even _after_ expanding the 40M `k3s` install.
### Containerd ###
There is an embedded containerd with k3s, but we are going to use `docker-machine`.
Use `containerd` as included with Docker, after enabling `cri-containerd` plugin.
```json
{ "cri-containerd": true }
```The plugin is included with the standard install, but it is disabled by default.
```toml
disabled_plugins = ["cri"]
```We then configure k3s and crictl to use the remote endpoint of this containerd:
`unix:///var/run/docker/containerd/containerd.sock`
See
### Flannel ###
There is an embedded flannel with k3s, but for some reason it doesn't work.
So we install the regular flannel CNI networking, using the kubeadm instructions:
See