0

我正在尝试根据本教程在 AWS 上安装 Kubernetes(第一次)http://kubernetes.io/docs/getting-started-guides/aws/#prerequisites

我可以使用 AWS CLI,但在运行以下命令后:

export KUBERNETES_PROVIDER=aws; curl -sS https://get.k8s.io | bash

然后我得到这个错误:

Unpacking kubernetes release v1.3.0
Creating a kubernetes on aws...
... Starting cluster in us-west-2a using provider aws
... calling verify-prereqs
... calling kube-up
Starting cluster using os distro: jessie
usage: aws [options] <command> <subcommand> [parameters]
aws: error: argument subcommand: Invalid choice, valid choices are:

list
Uploading to Amazon S3
+++ Staging server tars to S3 Storage: kubernetes-staging-a9b7435c8fc7b6c3d3e26fdd5b84aaae/devel
usage: aws [options] <command> <subcommand> [parameters]
aws: error: argument --region: expected one argument

任何帮助/见解表示赞赏..

4

2 回答 2

2

我遇到过同样的问题; 原来我pip install aws没有pip install awscli。卸载aws和安装后,awscli我很高兴。

于 2016-07-25T18:49:29.580 回答
1

似乎环境变量中缺少区域。

下面的示例是新加坡地区的环境变量

export KUBE_AWS_ZONE=ap-southeast-1a
export NUM_NODES=2
export MASTER_SIZE=t2.micro
export NODE_SIZE=t2.micro
export AWS_S3_REGION=ap-southeast-1
export AWS_S3_BUCKET=mudrii-kubernetes-artifacts
export KUBE_AWS_INSTANCE_PREFIX=k8s
于 2016-10-25T14:35:31.003 回答