简体   繁体   中英

Kubernetes on AWS

When running the following command on kube-master (CoreOS):

export KUBERNETES_PROVIDER=aws; wget -q -O - https://get.k8s.io | bash  

I get following error:

Can't find aws in PATH, please fix and retry.

I have already set PATH. Can anyopne tell which 'aws' it is searching for? Is it the aws directory in kubernetes repo directory ie kubernetes/cluster/aws?

遵循AWS CLI安装指南 ,然后确保正确设置了PATH

Yes, you are right.

If you set "aws" as KUBERNETES_PROVIDER , Kubernetes will use scripts that reside in kubernetes/cluster/aws . If no KUBERNETES_PROVIDER is set, I believe the default it to rely on gcloud CLI tool.

If you are using Ubuntu OS. run the below command. it will resolve your issue.

apt-get install awscli

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM