簡體   English   中英

錯誤 - 在 AWS 上創建 Kubernetes 集群時,實例類型“t2.micro”的架構不受支持:i386'''

[英]Error - '''unsupported architecture for instance type "t2.micro": i386''' while creating a Kubernetes Cluster on AWS

我是這個平台的新手,這是我的第二個問題。 一個月以來,我一直在嘗試使用 AWS 設置 Kubernetes 集群,但未成功。 但是每天,我都會收到一個新的錯誤,但這一次,我無法解決這個錯誤。

我在 Virtual Box 中使用 Kali Linux,Windows 作為主機。 我正在按照 Udemy 的設置教程進行設置。

  1. 我已經成功安裝了 Kops、Kubectl 和 AWSCli。

  2. 我已使用 AWS configure 正確配置了密鑰(出於學習目的,我已授予我的用戶完整的管理員權限)

  3. 我創建了 S3 存儲桶(授予它公共訪問權限)

  4. 現在要創建托管區域,我使用了 AWS Route 53。這是我的托管區域的規格

  5. 因為我沒有域,所以我從 freenom.com 購買了一個免費的子域,並正確配置了名稱服務器。 免費域配置

  6. 之后,我使用 ssh-keygen 創建了一對用於登錄集群的密鑰。

  7. 最后,我正在運行這個命令,

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

實例類型“t2.micro”不受支持的架構:i386

一些 EC2 t2.micro 實例實際上是 32 位機器。 請參閱如何查找我的 Amazon EC2 實例是 32 位還是 64 位? .

您的 Kubernetes 容器可能包含為 64 位機器編譯的二進制文件。 我建議您選擇不同的 EC2 實例類型,例如 t3.small。

謝謝, https://stackoverflow.com/users/4523789/ole-markus-with ,您使用 t3.medium 的建議確實很有幫助。

┌──(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.micro 創建集群。 我也看過關於 Udemy 的教程和這個博客https://www.scottyfullstack.com/blog/setting-up-a-free-tier-kubernetes-cluster-with-kop/

如果有 64 位變量可用,kOps 現在應該支持這些實例類型。

可以在此處找到修復程序: https://github.com/kubernetes/kops/pull/11463

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM