-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
  • 32,326
  • 33
  • 105
  • 164
Madhurima Mishra
  • 1,063
  • 3
  • 14
  • 27

3 Answers3

2

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

Bardi Harborow
  • 1,803
  • 1
  • 28
  • 41
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.

hyunchel
  • 161
  • 2
  • 13
0

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

apt-get install awscli
Stephen Rauch
  • 47,830
  • 31
  • 106
  • 135