知乎专栏 |
目录
https://microk8s.io
更多配置参考官网 https://github.com/ubuntu/microk8s
latest/stable 安装最新版本
root@kubernetes:~# snap install microk8s --classic --channel=latest/stable microk8s v1.21.3 from Canonical✓ installed
查看安装情况
root@kubernetes:~# snap list Name Version Rev Tracking Publisher Notes core18 20210722 2128 latest/stable canonical✓ base lxd 4.0.7 21029 4.0/stable/… canonical✓ - microk8s v1.21.3 2346 latest/stable canonical✓ classic snapd 2.51.4 12883 latest/stable canonical✓ snapd
root@kubernetes:~# microk8s start Started.
启用或禁用 microk8s
snap disable microk8s # 禁用 snap enable microk8s # 启用
卸载
microk8s.reset snap remove microk8s
安装 VirtualBox
neo@ubuntu:~$ sudo apt install -y virtualbox
root@kubernetes:~# snap info microk8s name: microk8s summary: Lightweight Kubernetes for workstations and appliances publisher: Canonical✓ store-url: https://snapcraft.io/microk8s contact: https://github.com/ubuntu/microk8s license: unset description: | MicroK8s is the smallest, simplest, pure production Kubernetes for clusters, laptops, IoT and Edge, on Intel and ARM. One command installs a single-node K8s cluster with carefully selected add-ons on Linux, Windows and macOS. MicroK8s requires no configuration, supports automatic updates and GPU acceleration. Use it for offline development, prototyping, testing, to build your CI/CD pipeline or your IoT apps. commands: - microk8s.add-node - microk8s.cilium - microk8s.config - microk8s.ctr - microk8s.dashboard-proxy - microk8s.dbctl - microk8s.disable - microk8s.enable - microk8s.helm - microk8s.helm3 - microk8s.inspect - microk8s.istioctl - microk8s.join - microk8s.juju - microk8s.kubectl - microk8s.leave - microk8s.linkerd - microk8s - microk8s.refresh-certs - microk8s.remove-node - microk8s.reset - microk8s.start - microk8s.status - microk8s.stop services: microk8s.daemon-apiserver: simple, enabled, inactive microk8s.daemon-apiserver-kicker: simple, enabled, active microk8s.daemon-cluster-agent: simple, enabled, active microk8s.daemon-containerd: simple, enabled, active microk8s.daemon-control-plane-kicker: simple, enabled, inactive microk8s.daemon-controller-manager: simple, enabled, inactive microk8s.daemon-etcd: simple, enabled, inactive microk8s.daemon-flanneld: simple, enabled, inactive microk8s.daemon-kubelet: simple, enabled, inactive microk8s.daemon-kubelite: simple, enabled, active microk8s.daemon-proxy: simple, enabled, inactive microk8s.daemon-scheduler: simple, enabled, inactive snap-id: EaXqgt1lyCaxKaQCU349mlodBkDCXRcg tracking: latest/stable refresh-date: today at 07:54 UTC channels: 1.21/stable: v1.21.3 2021-07-27 (2346) 191MB classic 1.21/candidate: v1.21.4 2021-08-20 (2407) 191MB classic 1.21/beta: v1.21.4 2021-08-20 (2407) 191MB classic 1.21/edge: v1.21.4 2021-08-23 (2427) 191MB classic latest/stable: v1.21.3 2021-07-28 (2346) 191MB classic latest/candidate: v1.22.1 2021-08-20 (2424) 195MB classic latest/beta: v1.22.1 2021-08-20 (2424) 195MB classic latest/edge: v1.22.1 2021-08-27 (2451) 195MB classic dqlite/stable: – dqlite/candidate: – dqlite/beta: – dqlite/edge: v1.16.2 2019-11-07 (1038) 189MB classic 1.22/stable: v1.22.0 2021-08-13 (2399) 195MB classic 1.22/candidate: v1.22.1 2021-08-27 (2450) 195MB classic 1.22/beta: v1.22.1 2021-08-27 (2450) 195MB classic 1.22/edge: v1.22.1 2021-08-27 (2450) 195MB classic 1.20/stable: v1.20.9 2021-08-01 (2361) 221MB classic 1.20/candidate: v1.20.10 2021-08-19 (2409) 221MB classic 1.20/beta: v1.20.10 2021-08-19 (2409) 221MB classic 1.20/edge: v1.20.10 2021-08-12 (2409) 221MB classic 1.19/stable: v1.19.13 2021-07-26 (2339) 216MB classic 1.19/candidate: v1.19.14 2021-08-19 (2408) 216MB classic 1.19/beta: v1.19.14 2021-08-19 (2408) 216MB classic 1.19/edge: v1.19.14 2021-08-12 (2408) 216MB classic 1.18/stable: v1.18.20 2021-07-12 (2271) 198MB classic 1.18/candidate: v1.18.20 2021-07-12 (2271) 198MB classic 1.18/beta: v1.18.20 2021-07-12 (2271) 198MB classic 1.18/edge: v1.18.20 2021-06-16 (2271) 198MB classic 1.17/stable: v1.17.17 2021-01-15 (1916) 177MB classic 1.17/candidate: v1.17.17 2021-01-14 (1916) 177MB classic 1.17/beta: v1.17.17 2021-01-14 (1916) 177MB classic 1.17/edge: v1.17.17 2021-01-13 (1916) 177MB classic 1.16/stable: v1.16.15 2020-09-12 (1671) 179MB classic 1.16/candidate: v1.16.15 2020-09-04 (1671) 179MB classic 1.16/beta: v1.16.15 2020-09-04 (1671) 179MB classic 1.16/edge: v1.16.15 2020-09-02 (1671) 179MB classic 1.15/stable: v1.15.11 2020-03-27 (1301) 171MB classic 1.15/candidate: v1.15.11 2020-03-27 (1301) 171MB classic 1.15/beta: v1.15.11 2020-03-27 (1301) 171MB classic 1.15/edge: v1.15.11 2020-03-26 (1301) 171MB classic 1.14/stable: v1.14.10 2020-01-06 (1120) 217MB classic 1.14/candidate: ↑ 1.14/beta: ↑ 1.14/edge: v1.14.10 2020-03-26 (1303) 217MB classic 1.13/stable: v1.13.6 2019-06-06 (581) 237MB classic 1.13/candidate: ↑ 1.13/beta: ↑ 1.13/edge: ↑ 1.12/stable: v1.12.9 2019-06-06 (612) 259MB classic 1.12/candidate: ↑ 1.12/beta: ↑ 1.12/edge: ↑ 1.11/stable: v1.11.10 2019-05-10 (557) 258MB classic 1.11/candidate: ↑ 1.11/beta: ↑ 1.11/edge: ↑ 1.10/stable: v1.10.13 2019-04-22 (546) 222MB classic 1.10/candidate: ↑ 1.10/beta: ↑ 1.10/edge: ↑ installed: v1.21.3 (2346) 191MB classic
snap install microk8s --channel=1.14/beta --classic