我正在尝试使用EC2实例在AWS上设置kubernetes集群;应该会很简单。
最初从kubeadm开始,我遇到了问题 Setup Kubernetes (version 1.18) cluster on AWS EC2
有人建议使用kops,我从kops开始。我又遇到了问题
我需要使用ssh公钥创建kops创建秘密 密钥已生成,并在/home/ubuntu/.ssh/id_rsa.pub
中可用但是我遇到以下错误
ubuntu@ip-10-0-1-8:~$ kops create secret --name newk8.shivag.io sshpublickey ubuntu -i ~/.ssh/id_rsa.pub --state s3://shivag.kube-kops-state --v=3
I0418 21:55:10.880023 19723 factory.go:68] state store s3://shivag.kube-kops-state
I0418 21:55:10.880229 19723 s3context.go:325] unable to read /sys/devices/virtual/dmi/id/product_uuid, assuming not running on EC2: open /sys/devices/virtual/dmi/id/product_uuid: permission denied
I0418 21:55:10.880303 19723 s3context.go:170] defaulting region to "us-east-1"
I0418 21:55:11.281113 19723 s3context.go:210] found bucket in region "eu-west-1"
error reading SSH public key /home/ubuntu/.ssh/id_rsa.pub: open /home/ubuntu/.ssh/id_rsa.pub: permission denied
任何帮助将不胜感激
答案 0 :(得分:1)
我使用snap安装了kops,并且安装了1.17 beta版
我删除了它并安装了1.16.0,一切都很顺利