Skip to content

Permission issue installing kubectl in 02-jumpbox.md when using Vagrant #937

Description

@JNasri

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions