Kubernetes 发行版 #
Kubeadm #
Kubeadm is a tool built to provide best-practice “fast paths” for creating Kubernetes clusters. It performs the actions necessary to get a minimum viable, secure cluster up and running in a user friendly way. Kubeadm’s scope is limited to the local node filesystem and the Kubernetes API, and it is intended to be a composable building block of higher level tools.
- 用于快速搭建 kubernetes 集群,目前应该是比较方便和推荐的,简单易用
- kubeadm 是 Kubernetes 1.4 开始新增的特性
- kubeadm init 以及 kubeadm join 这两个命令可以快速创建 kubernetes 集群
参考:
- https://www.katacoda.com Katacoda - Interactive Learning Platform for Software Engineers
- Getting Started With Kubeadm from katacoda
MicroK8s #
MicroK8s is a small, fast, single-package Kubernetes for developers, IoT and edge.
- Pros:
- Very easy to install, upgrade, remove
- Completely isolated from other tools in your machine
- Does not need a VM, all services run locally
- Cons:
- Only available for Snap supported Linux Distributions
- Relatively new, possible unstable
- Minikube can also run directly on Linux (vmdriver=none), so MicroK8s value proposition is diminished
参考:
MiniKube #
Run Kubernetes locally
安装:
参考:https://kubernetes.io/docs/tasks/tools/install-minikube/
启动:
-
minikube start --registry-mirror=https://registry.docker-cn.com --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
-
minikube start --cpus=2 --disk-size='10g' --image-mirror-country='cn' --image-repository='registry.cn-hangzhou.aliyuncs.com/google_containers'
-
minikube start --image-mirror-country='cn' --registry-mirror=https://registry.docker-cn.com
kind #
Kubernetes IN Docker - local clusters for testing Kubernetes
叶王 © 2013-2024 版权所有。如果本文档对你有所帮助,可以请作者喝饮料。