开发者社区> 狗尾巴呢> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

本地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/

image

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. 

image

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 各种系统主要图

image

9 k3s

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

单节点k3s server的架构

image

K3s高可用架构

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

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

image

10 k0s

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

image

image

11 MiniKube

image

12 Kind

image

13 K8s

image

14 Docker Desktop k8s

image

15 OpenShit CRC

image

image


版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
K8s网络
K8s网络,自梳理
52 0
公网安装k8s
公网安装k8s
152 0
K8S知道,K9S呢?
k9s 是用于管理 Kubernetes 集群的 CLI。通过封装 kubectl 功能,k9s 可以让开发者快速查看并解决运行 Kubernetes 时的日常问题。
84 0
阿里云自建k8s对接SLB
参考链接:https://github.com/kubernetes/cloud-provider-alibaba-cloud/blob/master/docs/getting-started.md
355 0
k8s的部署
k8s集群解决的问题 Docker之间跨节点的通讯 动态管理集群负载,使集群工作在期望的状态 集群之间资源的调度 集群的运行方式 k8s的节点类型 master节点负责整个集群的控制和管理 node节点是负载节点,运行pod。
1496 0
k8s网络
一、概述   k8s从Docker网络模型(NAT方式的网络模型)中独立出来形成一套新的网络模型。该网络模型的目标是:        每一个Pod都拥有一个扁平化共享网络命名空间的IP,称为PodIP,通过PodIP, Pod能够跨网络与其他物理机和Pod进行通信。
1710 0
k8s 集群基本概念
一、概述:   kubernetes是google开源的容器集群管理系统,提供应用部署、维护、扩展机制等功能,利用kubernetes能方便管理跨集群运行容器化的应用,简称:k8s(k与s之间有8个字母) 二、基本概念   Pod:若干相关容器的组合,Pod包含的容器运行在同一host上,这些容器使用相同的网络命令空间、IP地址和端口,相互之间能通过localhost来发现和通信。
1853 0
+关注
狗尾巴呢
从事研发20年 涉及桌面软件、嵌入式设备、C/S分层系统、B/S业务系统、互联网系统等等各类系统 语言涉及C/C++ .net系统 java系列 前端系列等等不同的类别 主控和主导了国家863项目,企业业务应用系统,自然语言翻译系统,数据库审计等系列的软件研发
435
文章
2
问答
文章排行榜
最热
最新
相关电子书
更多
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
冬季实战营第三期:MySQL数据库进阶实战
立即下载