发行版

Kubernetes 发行版 #

Kubeadm #

kubernetes/kubeadm Github stars Language Last Tag Last commit

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 集群

参考:

MicroK8s #

ubuntu/microk8s Github stars Github forks Language Last Tag Last commit

MicroK8s is a small, fast, single-package Kubernetes for developers, IoT and edge.

https://microk8s.io

  • 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 #

kubernetes/minikube Github stars Language Last Tag Last commit

Run Kubernetes locally

https://minikube.sigs.k8s.io

安装:

1. Install kubectl


2. Install a Hypervisor

  • HyperKit
  • VirtualBox
  • VMware Fusion

3. Install Minikube

Homebrew

brew install minikube

curl

curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 \
  && chmod +x minikube

sudo mv minikube /usr/local/bin

参考: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-sigs/kind Github stars Language Last Tag Last commit

Kubernetes IN Docker - local clusters for testing Kubernetes


本文访问量

本站总访问量

本站总访客数