我是这个平台的新手,这是我的第二个问题。一个月来,我一直试图使用AWS建立一个Kubernetes集群,但没有成功。但是每一天,我都会有一个新的错误,但是这次,我无法解决这个错误。
我在虚拟盒中使用Kali Linux,并以Windows作为主机。我是遵循一个教程从Udemy为设置。
kops create cluster --name=kubernetes.hellaswell.ml --state=s3://kops-state-crap --zones=eu-west-1a --node-count=2 --node-size=t2.micro --master-size=t2.micro --dns-zone=kubernetes.hellaswell.ml 1 ⚙
I0418 22:49:10.855151 12216 new_cluster.go:238] Inferred "aws" cloud provider from zone "eu-west-1a"
I0418 22:49:10.855313 12216 new_cluster.go:962] Cloud Provider ID = aws
I0418 22:49:12.604015 12216 subnets.go:180] Assigned CIDR 172.20.32.0/19 to subnet eu-west-1a
unable to determine machine architecture for InstanceGroup "master-eu-west-1a": unsupported architecture for instance type "t2.micro": i386发布于 2021-06-20 19:21:47
如果有64位变量可用,kOps现在应该支持这些实例类型。
修补程序可以在这里找到:https://github.com/kubernetes/kops/pull/11463
发布于 2021-04-19 05:55:18
不支持的体系结构,例如“t2.micro”类型: i386
一些EC2 t2.微观实例实际上是32位机器。见如何找到我的亚马逊EC2实例是32位还是64位?。
您的Kubernetes容器可能包含一个为64位机器编译的二进制文件。我建议您选择一种不同的EC2实例类型,例如t3.mall。
发布于 2021-04-20 00:33:32
谢谢您,https://stackoverflow.com/users/4523789/ole-markus-with,您关于使用t3.media的建议确实很有帮助。
┌──(kali㉿kali)-[~]
└─$ kops create cluster --name=kube.hellaswell.ml --state=s3://kops-state-crap --zones=eu-west-1a --node-count=2 --node-size=t2.small --master-size=t2.small --dns-zone=kube.hellaswell.ml
I0419 20:18:36.700942 2086 new_cluster.go:238] Inferred "aws" cloud provider from zone "eu-west-1a"
I0419 20:18:36.700999 2086 new_cluster.go:962] Cloud Provider ID = aws
I0419 20:18:37.938892 2086 subnets.go:180] Assigned CIDR 172.20.32.0/19 to subnet eu-west-1a
unable to determine machine architecture for InstanceGroup "master-eu-west-1a": unsupported architecture for instance type "t2.small": i386
┌──(kali㉿kali)-[~]
└─$ kops create cluster --name=kube.hellaswell.ml --state=s3://kops-state-crap --zones=eu-west-1a --node-count=2 --node-size=t2.medium --master-size=t2.medium --dns-zone=kube.hellaswell.ml 1 ⨯
I0419 20:18:58.255708 2094 new_cluster.go:238] Inferred "aws" cloud provider from zone "eu-west-1a"
I0419 20:18:58.255834 2094 new_cluster.go:962] Cloud Provider ID = aws
I0419 20:18:59.282307 2094 subnets.go:180] Assigned CIDR 172.20.32.0/19 to subnet eu-west-1a
unable to determine machine architecture for InstanceGroup "master-eu-west-1a": unsupported architecture for instance type "t2.medium": i386
┌──(kali㉿kali)-[~]
└─$ kops create cluster --name=kube.hellaswell.ml --state=s3://kops-state-crap --zones=eu-west-1a --node-count=2 --node-size=t3.medium --master-size=t3.medium --dns-zone=kube.hellaswell.ml 1 ⨯
I0419 20:20:47.323068 2103 new_cluster.go:238] Inferred "aws" cloud provider from zone "eu-west-1a"
I0419 20:20:47.323286 2103 new_cluster.go:962] Cloud Provider ID = aws
I0419 20:20:49.012132 2103 subnets.go:180] Assigned CIDR 172.20.32.0/19 to subnet eu-west-1a
I0419 20:20:51.943459 2103 create_cluster.go:726] Using SSH public key: /home/kali/.ssh/id_rsa.pub
Previewing changes that will be made:
I0419 20:21:03.446344 2103 executor.go:111] Tasks: 0 done / 77 total; 43 can run
W0419 20:21:05.094898 2103 vfs_castore.go:604] CA private key was not found
I0419 20:21:05.095112 2103 executor.go:111] Tasks: 43 done / 77 total; 16 can run
I0419 20:21:06.137672 2103 executor.go:111] Tasks: 59 done / 77 total; 16 can run
I0419 20:21:07.358255 2103 executor.go:111] Tasks: 75 done / 77 total; 2 can run
I0419 20:21:08.538778 2103 executor.go:111] Tasks: 77 done / 77 total; 0 can run
Will create resources:
AutoscalingGroup/master-eu-west-1a.masters.kube.hellaswell.ml我是AWS和Kubernetes的新手,请原谅我的好奇心,但我想知道,其他人如何能够创建带有t2的集群。我看过关于Udemy的教程,这个博客也是https://www.scottyfullstack.com/blog/setting-up-a-free-tier-kubernetes-cluster-with-kop/
https://stackoverflow.com/questions/67155438
复制相似问题