-1

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 i.e. kubernetes/cluster/aws?

MatthewMartin
  • 31,164
  • 31
  • 106
  • 162
Madhurima Mishra
  • 975
  • 3
  • 12
  • 26

3 Answers3

2

Follow the AWS CLI installation guide and then ensure your PATH is set correctly.

Bardi Harborow
  • 1,743
  • 1
  • 28
  • 40
1

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.

hyeon
  • 151
  • 2
  • 13
0

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

apt-get install awscli
Stephen Rauch
  • 44,696
  • 30
  • 102
  • 125