website icon indicating copy to clipboard operation
website copied to clipboard

Documentation Update - installation procedure for kubectl on macOS

Open cloudxabide opened this issue 2 months ago • 2 comments

Proposing an update to the following doc/page: https://kubernetes.io/docs/tasks/tools/install-kubectl-macos/

Currently the page provides guidance using dated methods to install the binary

  1. Make the kubectl binary executable.
chmod +x ./kubectl
  1. Move the kubectl binary to a file location on your system PATH.
sudo mv ./kubectl /usr/local/bin/kubectl

===

This should be replaced by "install" - explicitly defining the owner and permissions

  1. Move the kubectl binary to /usr/local/bin using the install command, while defining the owner and file permissions
sudo install -o root  -m 0755 ./kubectl /usr/local/bin/kubectl

This appears to be a significant undertaking as the same method is used in a large number of examples. (65 occurrences in 35 different documents)

geeko:website jradtke$ grep -r "mv ./kubectl" * | wc -l 
      65

geeko:website jradtke$ grep -r "mv ./kubectl" * | awk -F\: '{ print $1 }' | sort -u | wc -l
      35

I am not sure what the best approach to updating would be: 1 big update to all docs - or 35 updates ;-)

cloudxabide avatar Dec 05 '25 13:12 cloudxabide

This issue is currently awaiting triage.

SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Dec 05 '25 13:12 k8s-ci-robot

/assign

rajyavardhan01 avatar Jan 16 '26 22:01 rajyavardhan01