- Go to homebrew git repo: https://github.com/Homebrew/homebrew-core/
- Identify the commit specific to kubernetes 1.11.x version
- Go to
Formula
folder - Open raw version of
kubernetes-cli.rb
file - Copy the raw link of the file
https://raw.githubusercontent.com/Homebrew/homebrew-core/3e8f5503dde7069c5ff49b82d5e1576e6ebe3a5d/Formula/kubernetes-cli.rb
- Run
brew install <raw_link>