本地k8s运行总结

简介: 本机上运行k8s的各种不同软件的对比和结构图

本地k8s运行总结

本机上运行k8s的各种不同软件的对比和结构图

2 运行软件

3 minikube kind k3s

https://www.jambit.com/en/latest-info/toilet-papers/minikube-vs-kind-vs-k3s-which-local-kubernetes-cluster-should-i-use/

4 MicroK8S

https://microk8s.io/compare

 

MICROK8S

K3S

MINIKUBE

CNCF certified

Yes

Yes

Yes

Vanilla Kubernetes

Yes

Yes

Architecture support

x86, ARM64, s390x

x86, ARM64, ARMhf

x86, ARM64, ARMv7, ppc64, s390x

Enterprise support

Yes

Yes

Single-node support

Yes

Yes

Yes

Multi-node cluster support

Yes

Yes

Automatic high availability

Yes

Automatic updates

Yes

Memory requirements

540 MB

512 MB

2 GB

Add-on functionality

Yes

Yes

Container runtime

containerd, kata

CRI-O

Docker, containerd, CRI-O

Networking

Calico, Cilium, CoreDNS, Traefik, NGINX, Ambassador, Multus, MetalLB

Flannel, CoreDNS, Traefik, Canal, Klipper

Calico, Cilium, Flannel, ingress, DNS, Kindnet

Storage

Hostpath storage, OpenEBS, Ceph

Hostpath storage, Longhorn

Hostpath storage

GPU acceleration

Yes

Yes


5 K0S

https://computingforgeeks.com/k0s-vs-k3s-vs-microk8s-kubernetes-distributions-comparison/

Feature

k0s

k3s

microk8s

Licensing

Completely Open Source

Completely Open Source

Completely Open Source

Packaging

k0s is distributed as a single binary with minimal host OS dependencies besides the host OS kernel

Packaged as a single binary.

MicroK8s is a Kubernetes cluster delivered as a single snap package.

Kubernetes Versions

v1.20 and v1.21

Latest release updates Kubernetes to v1.22.1

Kubernetes v1.22, v1.21

Container Runtime

ContainerD (default)

ContainerD (default)

ContainerD is the container runtime used by MicroK8s

Supported Host OS

Linux (kernel v3.10 or newer)          Windows Server 2019 (experimental)

K3s is expected to work on most modern Linux systems

Windows 10, Linux, macOS

Control Plane Storage Options

In-Cluster Elastic Etcd with TLS (default), In-Cluster SQLite (default for single node), External PostgreSQL, External MySQL

sqlite3 is the default storage mechanism. etcd3, MySQL, Postgres also still available

MicroK8s supports high availability using Dqlite as the datastore for cluster state.

Built-In Security Features

RBAC, Support OpenID Providers, Pod Security Policies, Network Policies, Micro VM Runtimes (coming soon), Control Plane Isolation

Secure by default with reasonable defaults for lightweight environments

Secure by default with reasonable defaults for lightweight environments

Supported CNI Providers

Kube-Router (default), Calico or Custom

K3s will run with flannel by default as the CNI, using VXLAN as the default backend. Custom supported as well

Flanneld runs if ha-cluster is not enabled. If ha-cluster is enabled, calico is run instead.

Supported Machine Architectures

x86-64, ARM64, ARMv7

Latest release supports x86_64, ARMv7, and ARM64

x86_64, ARMv7, and ARM64

Backing Company

Mirantis

Rancher

Canonical

Addons

Minimum Addons

Traefik, Helm,LB

Dashboard, Ingress, DNS, and more


6 Docker Desktop

https://docs.docker.com/desktop/kubernetes/

If you have Docker Desktop, go to preferences, go to the Kubernetes tab, and click Enable Kubernetes.

7 OpenShift

CodeReady Containers (CRC) manages a local OpenShift 4.x cluster optimized for testing and development purposes. https://github.com/code-ready/crc

Minishift helps you run OpenShift 3.x clusters locally by running a single-node OpenShift cluster inside a virtual machine (VM). https://github.com/minishift/minishift

8 各种系统主要图

9 k3s

https://docs.rancher.cn/docs/k3s/architecture/_index

单节点k3s server的架构

K3s高可用架构

一个高可用 K3s 集群由以下几个部分组成:

  • K3s Server 节点:两个或更多的server节点将为 Kubernetes API 提供服务并运行其他 control-plane 服务
  • 外部数据库:与单节点 k3s 设置中使用的嵌入式 SQLite 数据存储相反,高可用 K3s 需要挂载一个external database外部数据库作为数据存储的媒介。

10 k0s

https://docs.k0sproject.io/v1.23.5+k0s.0/architecture/

11 MiniKube

12 Kind

13 K8s

14 Docker Desktop k8s

15 OpenShit CRC


相关实践学习
深入解析Docker容器化技术
Docker是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的Linux机器上,也可以实现虚拟化,容器是完全使用沙箱机制,相互之间不会有任何接口。Docker是世界领先的软件容器平台。开发人员利用Docker可以消除协作编码时“在我的机器上可正常工作”的问题。运维人员利用Docker可以在隔离容器中并行运行和管理应用,获得更好的计算密度。企业利用Docker可以构建敏捷的软件交付管道,以更快的速度、更高的安全性和可靠的信誉为Linux和Windows Server应用发布新功能。 在本套课程中,我们将全面的讲解Docker技术栈,从环境安装到容器、镜像操作以及生产环境如何部署开发的微服务应用。本课程由黑马程序员提供。     相关的阿里云产品:容器服务 ACK 容器服务 Kubernetes 版(简称 ACK)提供高性能可伸缩的容器应用管理能力,支持企业级容器化应用的全生命周期管理。整合阿里云虚拟化、存储、网络和安全能力,打造云端最佳容器化应用运行环境。 了解产品详情: https://www.aliyun.com/product/kubernetes
相关文章
|
JSON Kubernetes Shell
【Azure K8S | AKS】在不丢失文件/不影响POD运行的情况下增加PVC的大小
【Azure K8S | AKS】在不丢失文件/不影响POD运行的情况下增加PVC的大小
187 0
|
Kubernetes 搜索推荐 Docker
K8S容器运行时弃用Docker转型Containerd
K8S容器运行时弃用Docker转型Containerd
1649 0
|
Kubernetes Java 容器
如何获取k8s容器里运行的jar包
如何获取k8s容器里运行的jar包
515 0
|
9月前
|
存储 监控 对象存储
ACK 容器监控存储全面更新:让您的应用运行更稳定、更透明
针对本地存储和 PVC 这两种容器存储使用方式,我们对 ACK 的容器存储监控功能进行了全新升级。此次更新完善了对集群中不同存储类型的监控能力,不仅对之前已有的监控大盘进行了优化,还针对不同的云存储类型,上线了全新的监控大盘,确保用户能够更好地理解和管理容器业务应用的存储资源。
581 276
|
7月前
|
存储 监控 对象存储
ACK 容器监控存储全面更新:让您的应用运行更稳定、更透明
ACK 容器监控存储全面更新:让您的应用运行更稳定、更透明
167 0
ACK 容器监控存储全面更新:让您的应用运行更稳定、更透明
|
8月前
|
存储 监控 对象存储
ACK 容器监控存储全面更新:让您的应用运行更稳定、更透明
ACK 容器监控存储全面更新:让您的应用运行更稳定、更透明
121 1
|
9月前
|
存储 监控 对象存储
ACK容器监控存储全面更新:让您的应用运行更稳定、更透明
介绍升级之后的ACK容器监控体系,包括各大盘界面展示和概要介绍。
|
12月前
|
Kubernetes 监控 Cloud Native
|
Kubernetes 安全 Serverless
Kubernetes云原生问题之在Serverless Container中,Pod运行如何解决
Kubernetes云原生问题之在Serverless Container中,Pod运行如何解决
145 6
|
Kubernetes API Perl
在K8S中,如何让Pod运行一次?如何解决一次性任务?
在K8S中,如何让Pod运行一次?如何解决一次性任务?

推荐镜像

更多