Started the guide using Vagrant 2.4.9 with VirtualBox 7.2.16 on a Windows host.
Everything worked until the Install kubectl section in 02-jumpbox.md. The guide asks the user to run the following command :
cp downloads/client/kubectl /usr/local/bin/
This returned a Permission denied error in my setup.
I expected sudo to fix the issue, but the following command also did not work for me:
sudo cp downloads/client/kubectl /usr/local/bin/
After searching for a solution, I tried:
sudo cp -r downloads/client/kubectl /usr/local/bin/
and the copy succeeded.
I understand that -r is normally used when copying directories and should not be required for the single kubectl file, so I may be missing something specific to my environment.
It might be useful to clarify in this section that maybe for some users they need to run sudo cp -r to copy the kubectl to the binary directory.
This would make the step easier to follow for readers using Vagrant and VirtualBox to provision the prerequisite machines.
Started the guide using Vagrant 2.4.9 with VirtualBox 7.2.16 on a Windows host.
Everything worked until the
Install kubectlsection in02-jumpbox.md. The guide asks the user to run the following command :cp downloads/client/kubectl /usr/local/bin/This returned a Permission denied error in my setup.
I expected sudo to fix the issue, but the following command also did not work for me:
sudo cp downloads/client/kubectl /usr/local/bin/After searching for a solution, I tried:
sudo cp -r downloads/client/kubectl /usr/local/bin/and the copy succeeded.
I understand that -r is normally used when copying directories and should not be required for the single kubectl file, so I may be missing something specific to my environment.
It might be useful to clarify in this section that maybe for some users they need to run
sudo cp -rto copy the kubectl to the binary directory.This would make the step easier to follow for readers using Vagrant and VirtualBox to provision the prerequisite machines.