首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误--例如,在AWS上创建Kubernetes集群时,"t2.micro":i 386‘’类型不受支持的体系结构

错误--例如,在AWS上创建Kubernetes集群时,"t2.micro":i 386‘’类型不受支持的体系结构
EN

Stack Overflow用户
提问于 2021-04-19 03:00:15
回答 3查看 923关注 0票数 1

我是这个平台的新手,这是我的第二个问题。一个月来,我一直试图使用AWS建立一个Kubernetes集群,但没有成功。但是每一天,我都会有一个新的错误,但是这次,我无法解决这个错误。

我在虚拟盒中使用Kali Linux,并以Windows作为主机。我是遵循一个教程从Udemy为设置。

  1. 我已经成功地安装了Kops、Kubectl和AWSCli。
  2. 我使用AWS配置正确配置了密钥(为了学习目的,我给了我的用户完全的管理员权限)
  3. 我创建了S3桶(授予它公共访问权限)
  4. 现在,为了创建托管区域,我使用了AWS路由53。以下是我的托管区域的规范
  5. 由于我没有域名,所以我从freenom.com购买了一个免费的子域,并正确配置了名称服务器。自由域配置
  6. 之后,我使用ssh-keygen创建了一对键,用于登录到集群。
  7. 最后,我在运行这个命令,
代码语言:javascript
复制
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
EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2021-06-20 19:21:47

如果有64位变量可用,kOps现在应该支持这些实例类型。

修补程序可以在这里找到:https://github.com/kubernetes/kops/pull/11463

票数 0
EN

Stack Overflow用户

发布于 2021-04-19 05:55:18

不支持的体系结构,例如“t2.micro”类型: i386

一些EC2 t2.微观实例实际上是32位机器。见如何找到我的亚马逊EC2实例是32位还是64位?

您的Kubernetes容器可能包含一个为64位机器编译的二进制文件。我建议您选择一种不同的EC2实例类型,例如t3.mall。

票数 2
EN

Stack Overflow用户

发布于 2021-04-20 00:33:32

谢谢您,https://stackoverflow.com/users/4523789/ole-markus-with,您关于使用t3.media的建议确实很有帮助。

代码语言:javascript
复制
┌──(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/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67155438

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档