我可以在Amazon Linux 2上安装Kubernetes吗
我在尝试创建群集时,在我的Amazon Linux 2实例上安装Kubeadm时遇到了麻烦 当我尝试安装运行时,我可以选择使用哪个: 容器 Cri-o Docker引擎 Mirantis集装箱运行时 首先,我想知道我应该使用哪一个与Amazon Linux 2兼容的它们,每当我为任何CRI运行YUM安装时,我都会遇到相同的错误:
这是命令的输出:yum install cri-o
我遵循的文档是: https://kubernetes.io/docs/setup/production-environment/container-runtimes/
I'm having trouble Installing kubeadm on my amazon linux 2 instance specifically when i try to create a cluster,
when i try Installing runtime i get to chose which one to use :
containerd
CRI-O
Docker Engine
Mirantis Container Runtime
first of all i'm wondering which one i should use between them that is compatible with amazon linux 2 and second of all whenever i run yum install for any CRI i get this same error:
this is the output of the command: yum install cri-o
the doc that i followed is: https://kubernetes.io/docs/setup/production-environment/container-runtimes/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗨,希望您喜欢Kubernetes的旅程!
首先,您想告诉您,您可以在要安装的容器运行时使用所需的任何内容。
如果您不熟悉其他人,则可以使用Docker,但是在我看来,Containerd是最好的轻巧替代方案(Contarerd用于Docker中,但是对于Kubernetes,您不需要Docker仅提供容器运行时的所有层,这里containerd)您可以阅读此信息以获取更多信息,但是关于此信息有很多文档。: https://www.tutorialworks.com/difference-docker-containerd-runc-crio-oci/
第二,我不知道您是如何尝试安装kubernetes cluster in再说一次,几乎没有夫妻可以做到这一点:
最难但很有启发性的是kubernetes的艰难方式( https://github.com/kelseyhightower/kubernetes-the-hard-way )
接下来,您可以使用Kubeadm(同样,互联网上有大量文档,但您可以关注Kubeadm教程之一: https://devopscube.com/setup-kubernetes-cluster-kubeadm/ )
这是一个工具列表,您可以使用这些工具来安装kubernetes群集,您可以为每个人寻找tutorials for tutorials在Internet上: https://dzone.com/articles/50-50-useful-kubernetes--kubernetes--工具)
最后但并非最不重要的一点是,由于您在AWS上,因此您可以使用AWS EKS服务快速设置一个强大的Kubernetes群集。 https://aws.amazon.com/fr/eks/ )
( AWS。如果您想要本地的K8S群集,我强烈建议您使用ank(docker中的kubernetes)
bguess
hi, hope you are enjoying your kubernetes Journey !
First off, you I wanna tell you that you can use whichever you want between the container runtime you want to install.
You can use docker if you are not familiar with the others but containerd is in my opinion the best lightweight alternative ( containerd is used in docker, but for kubernetes you don't need all the layers that docker provides only the container runtime Itself, here containerd ) you can read this for more info, but there is plenty of documentation about this.: https://www.tutorialworks.com/difference-docker-containerd-runc-crio-oci/
Second of all, I don't know how you are trying to install your kubernetes cluster but again there is few couples of way to do it:
The hardest but very instructive can be kubernetes the hard way ( https://github.com/kelseyhightower/kubernetes-the-hard-way )
Next you can use kubeadm (again there is plenty of documentation on the internet but you can follow one of the kubeadm tutorials: https://devopscube.com/setup-kubernetes-cluster-kubeadm/ )
Here is a list of tools that you can use to install your kubernetes cluster, you can look for tutorials for each of them on the internet: https://dzone.com/articles/50-useful-kubernetes-tools )
Last but not least, since you are on aws, you can use the AWS EKS service to setup quickly a robust kubernetes cluster. (https://aws.amazon.com/fr/eks/)
This is for AWS. If you want a local k8s cluster I strongly suggest you to use kind (kubernetes in docker)
Bguess