在AWS上运行Kubernetes时出现NoSuchBucket错误 [英] NoSuchBucket error when running Kubernetes on AWS

查看:416
本文介绍了在AWS上运行Kubernetes时出现NoSuchBucket错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从以下位置下载Kubernetes 1.1.8:

Downloaded Kubernetes 1.1.8 from:

https://github.com/kubernetes/kubernetes/releases/download/v1.1.8/kubernetes.tar.gz

遵循以下说明:

https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/aws.md

并出现以下错误:

kubernetes-1.1.8 > ./kubernetes/cluster/kube-up.sh 
... Starting cluster using provider: aws
... calling verify-prereqs
... calling kube-up
Starting cluster using os distro: vivid
Uploading to Amazon S3
Creating kubernetes-staging-0eaf81fbc51209dd47c13b6d8b424149
make_bucket: s3://kubernetes-staging-0eaf81fbc51209dd47c13b6d8b424149/

A client error (NoSuchBucket) occurred when calling the GetBucketLocation operation: The specified bucket does not exist
+++ Staging server tars to S3 Storage: kubernetes-staging-0eaf81fbc51209dd47c13b6d8b424149/devel
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help
aws: error: argument --region: expected one argument

AWS控制台显示

推荐答案

这可能是区域性问题;我猜测存储桶是在Kubernetes尝试访问的其他区域创建的。
似乎aws cmdline工具对该区域感到困惑:
aws:错误:参数--region:预期一个参数

It's probably a region issue; I'm guessing that the bucket is created in another region than Kubernetes tries to access. Looks like the aws cmdline tool is confused about the region: aws: error: argument --region: expected one argument

当无法确定区域时,默认为美国区域之一。

When it can't determine the region, it defaults to one of the us regions.

编辑:触发S3同步通过脚本 cluster / aws / util.sh
执行的命令是 aws s3 sync --region $ {s3_bucket_location} --exact-timestamps $ {local_dir} s3:// $ {AWS_S3_BUCKET} / $ {staging_path} /

the S3 sync is triggered by script cluster/aws/util.sh. The command executed is aws s3 sync --region ${s3_bucket_location} --exact-timestamps ${local_dir} "s3://${AWS_S3_BUCKET}/${staging_path}/".

您可以在上一行之前添加 echo $ {s3_bucket_location} 。它应该为您提供有关该区域设置的更多信息。

You can add an echo ${s3_bucket_location} before the line above. It should give you more information on what the region is set to.

这篇关于在AWS上运行Kubernetes时出现NoSuchBucket错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆