简体   繁体   English

使用 kops 在 aws 上创建 kubernetes EC2 集群

[英]Create kubernetes EC2 cluster on aws using kops

I am trying to setup a kubernetes cluster on AWS with EC2 instances;我正在尝试使用 EC2 实例在 AWS 上设置 kubernetes 集群; it is supposed to be pretty straight forward.它应该很简单。

Initially started with kubeadm and I ran into problems Setup Kubernetes (version 1.18) cluster on AWS EC2最初从 kubeadm 开始,我遇到了问题在 AWS EC2 上设置 Kubernetes(版本 1.18)集群

There was a suggestion to use kops and I started with kops;有人建议使用 kops,我从 kops 开始; I am running into problems again我又遇到问题了

I need to create kops create secret with the ssh public key The key has been generated and available in /home/ubuntu/.ssh/id_rsa.pub我需要使用 ssh 公钥创建 kops create secret 密钥已生成并在 /home/ubuntu/.ssh/id_rsa.pub 中可用

however I get the following error但是我收到以下错误

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

Any help will be appreciated任何帮助将不胜感激

I used snap to install kops and this installed the 1.17 beta version我使用 snap 安装 kops,这安装了 1.17 beta 版本

I removed this and installed 1.16.0 and everything was smooth我删除了这个并安装了 1.16.0,一切都很顺利

I have the Full instructions to install Kubernetes Cluster我有安装 Kubernetes 集群的完整说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我们可以使用 kops 将配置为在多节点 AWS EC2 K8s 集群上运行的应用程序运行到本地 kubernetes 集群(使用 kubeadm)吗? - Can we run an application that is configured to run on multi-node AWS EC2 K8s cluster using kops into local kubernetes cluster (using kubeadm)? 问题:使用 Kops 在 AWS 上创建 kubernetes 集群 - Problem : creating a kubernetes cluster on AWS using Kops 未授权使用 kops 在 AWS 上创建 Kubernetes 集群 - Unothorized to create Kubernetes cluser on AWS using kops 关于 AWS EC2 实例中的 Kubernetes 集群 - About Kubernetes cluster in AWS EC2 instances 使用kops,认证失败在AWS上的kubernetes集群中自定义SSL证书 - Custom SSL certificate in kubernetes cluster on AWS using kops, authentiction failure 使用Kops的AWS上的Kubernetes群集 - NodePort服务不可用 - Kubernetes Cluster on AWS with Kops - NodePort Service Unavailable 无法使用 Kops 验证 Kube.netes 集群 - Unable to validate Kubernetes cluster using Kops 如何在不使用 ELB 服务的情况下使用 kops 在 AWS 上创建 Kubernetes 集群? - How to use kops to create a Kubernetes cluster on AWS without the usage of the ELB service? 如何使用Kops或Kubernetes创建AWS竞价型实例? - How to create AWS spot instances with Kops or Kubernetes? aws kops将群集错误创建为InvalidClientTokenId - aws kops create cluster errors out as InvalidClientTokenId
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM