我在AWS / Ubuntu上安装Kubernetes时遇到了这些错误。
export KUBERNETES_PROVIDER=aws && export AWS_S3_REGION=eu-west-1 && bash 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
+++ Staging server tars to S3 Storage: lll-kube/devel
usage: aws [options] <command> <subcommand> [parameters]
aws: error: argument --region: expected one argument
你有什么想法解决这个问题吗?
设置完成后:AWS_DEFAULT_REGION=eu-west-1
我打字:
$ :~/kubernetes# export KUBERNETES_PROVIDER=aws && export AWS_S3_REGION=eu-west-1 && export AWS_DEFAULT_REGION=eu-west-1 && export AWS_S3_BUCKET=mybucket-xxxxx && bash 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 mybucket-xxxxx
make_bucket: s3://mybucket-xxxxx/
Unable to confirm bucket creation.
Please ensure that s3://mybucket-xxxxx exists
and run the script again. (sorry!)
我检查了S3,创建了存储桶。所以我再次键入相同的命令,输出是:
... Starting cluster using provider: aws
... calling verify-prereqs
... calling kube-up
Starting cluster using os distro: vivid
Uploading to Amazon S3
+++ Staging server tars to S3 Storage: mybucket-xxxxx/devel
usage: aws [options] <command> <subcommand> [parameters]
aws: error: argument --region: expected one argument
答案 0 :(得分:0)
尝试设置AWS_DEFAULT_REGION环境变量。