Brew Install Kubernetes-cli (CloudMonk.io)

brew install kubernetes-cli



Return to Kubernetes CLI, kubectl, kubectl Installation, brew install, Cloud Monk's Development PC DevOps Automation via Ansible-Chocolatey-PowerShell-Homebrew-DNF-APT, choco install kubectl


brew search kubernetes

==> Formulae

* kubernetes-cli
* kubernetes-cli@1.22
* kubernetes-service-catalog-client


kubernetic

iMac ~ % brew install kubernetes-cli

Running `brew update --auto-update`...

==> Auto-updated Homebrew!

Updated 1 tap (homebrew/core).


> Downloading https://ghcr.io/v2/homebrew/core/kubernetes-cli/manifests/1.25.3

> Downloading https://ghcr.io/v2/homebrew/core/kubernetes-cli/blobs/sha256:36bdd3acde18d00ba58c05cb609d1d21d4dcaebd2ab97c94814cb50b5f63e28

> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:36bdd3acde18d00ba58c05cb609d1d21d4dcaebd2ab97c94814cb50

> Pouring kubernetes-cli--1.25.3.monterey.bottle.tar.gz

==> Caveats

zsh completions have been installed to:

/usr/local/share/zsh/site-functions

==> Summary

🍺 /usr/local/Cellar/kubernetes-cli/1.25.3: 228 files, 54.2MB

==> Running `brew cleanup kubernetes-cli`...

Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.

Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).


----

iMac ~ % kubectl --version

error: unknown flag: --version

See 'kubectl --help' for usage.


iMac ~ % kubectl version

WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.

Client Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.3",

GitCommit:"434bfd82814af038ad94d62ebe59b133fcb50506", GitTreeState:"clean",

BuildDate:"2022-10-12T10:47:25Z", GoVersion:"go1.19.2", Compiler:"gc",

Platform:"darwin/amd64"}

Kustomize Version: v4.5.7

The connection to the server localhost:8080 was refused - did you specify the right host or port?


----


iMac ~ % kubectl --help

kubectl controls the Kubernetes cluster manager.

Find more information at: https://kubernetes.io/docs/reference/kubectl/

Basic Commands (Beginner):
create Create a resource from a file or from stdin
expose Take a replication controller, service, deployment or pod and expose it as a new Kubernetes service
run Run a particular image on the cluster
set Set specific features on objects

Basic Commands (Intermediate):
explain Get documentation for a resource
get Display one or many resources
edit Edit a resource on the server
delete Delete resources by file names, stdin, resources and names, or by resources and label selector

Deploy Commands:
rollout Manage the rollout of a resource
scale Set a new size for a deployment, replica set, or replication controller
autoscale Auto-scale a deployment, replica set, stateful set, or replication controller

Cluster Management Commands:
certificate Modify certificate resources.
cluster-info Display cluster information
top Display resource (CPU/memory) usage
cordon Mark node as unschedulable
uncordon Mark node as schedulable
drain Drain node in preparation for maintenance
taint Update the taints on one or more nodes

Troubleshooting and Debugging Commands:
describe Show details of a specific resource or group of resources
logs Print the logs for a container in a pod
attach Attach to a running container
exec Execute a command in a container
port-forward Forward one or more local ports to a pod
proxy Run a proxy to the Kubernetes API server
cp Copy files and directories to and from containers
auth Inspect authorization
debug Create debugging sessions for troubleshooting workloads and nodes

Advanced Commands:
diff Diff the live version against a would-be applied version
apply Apply a configuration to a resource by file name or stdin
patch Update fields of a resource
replace Replace a resource by file name or stdin
wait Experimental: Wait for a specific condition on one or many resources
kustomize Build a kustomization target from a directory or URL.

Settings Commands:
label Update the labels on a resource
annotate Update the annotations on a resource
completion Output shell completion code for the specified shell (bash, zsh, fish, or powershell)

Other Commands:
alpha Commands for features in alpha
api-resources Print the supported API resources on the server
api-versions Print the supported API versions on the server, in the form of "group/version"
config Modify kubeconfig files
plugin Provides utilities for interacting with plugins
version Print the client and server version information

Usage:
kubectl [flags] [options]

Use "kubectl --help" for more information about a given command.
Use "kubectl options" for a list of global command-line options (applies to all commands).




Linux


Homebrew on Linux

=Ubuntu

=

brew install kubernetes-cli
==> Downloading https://ghcr.io/v2/homebrew/core/kubernetes-cli/manifests/1.31.1
########################################################################################################################## 100.0%

> Fetching kubernetes-cli

> Downloading https://ghcr.io/v2/homebrew/core/kubernetes-cli/blobs/sha256:8ce9759ac9adcf152d5c77aa64e3d8cd1efebebf6e7e271d4405
########################################################################################################################## 100.0%

> Pouring kubernetes-cli--1.31.1.x86_64_linux.bottle.tar.gz

> Caveats
Bash completion has been installed to:
/home/linuxbrew/.linuxbrew/etc/bash_completion.d
==> Summary
🍺 /home/linuxbrew/.linuxbrew/Cellar/kubernetes-cli/1.31.1: 237 files, 55.2MB
==> Running `brew cleanup kubernetes-cli`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).



See navbar_k8s



Kubernetes CLI: kubectl, kubectl Installation (brew install kubernetes-cli, choco install kubectl, kubectl --help, kubectl help



Basic Commands (Beginner):



* kubectl create - Create a resource from a file or from stdin



* kubectl expose - Take a replication controller, service, deployment or pod and expose it as a new Kubernetes service



* kubectl run - Run a particular image on the cluster



* kubectl set - Set specific features on objects





----



Basic Commands (Intermediate):



* kubectl explain - Get documentation for a resource



* kubectl get - Display one or many resources



* kubectl edit - Edit a resource on the server



* kubectl delete - Delete resources by file names, stdin, resources and names, or by resources and label selector





----



Deploy Commands:



* kubectl rollout - Manage the rollout of a resource



* kubectl scale - Set a new size for a deployment, replica set, or replication controller



* kubectl autoscale - Auto-scale a deployment, replica set, stateful set, or replication controller



----



Cluster Management Commands:



* kubectl certificate - Modify certificate resources.



* kubectl cluster-info - Display cluster information



* kubectl top - Display resource (CPU/memory) usage



* kubectl cordon - Mark node as unschedulable



* kubectl uncordon - Mark node as schedulable



* kubectl drain - Drain node in preparation for maintenance



* kubectl taint - Update the taints on one or more nodes





----



Troubleshooting and Debugging Commands:



* kubectl describe - Show details of a specific resource or group of resources



* kubectl logs - Print the logs for a container in a pod



* kubectl attach - Attach to a running container



* kubectl exec - Execute a command in a container



* kubectl port-forward - Forward one or more local ports to a pod



* kubectl proxy - Run a proxy to the Kubernetes API server



* kubectl cp - Copy files and directories to and from containers



* kubectl auth - Inspect authorization



* kubectl debug - Create debugging sessions for troubleshooting workloads and nodes



----



Advanced Commands:



* kubectl diff - Diff the live version against a would-be applied version



* kubectl apply - Apply a configuration to a resource by file name or stdin



* kubectl patch - Update fields of a resource



* kubectl replace - Replace a resource by file name or stdin



* kubectl wait - Experimental: Wait for a specific condition on one or many resources



* kubectl kustomize - Build a kustomization target from a directory or URL.





----



Settings Commands:



* kubectl label - Update the labels on a resource



* kubectl annotate - Update the annotations on a resource



* kubectl completion - Output shell completion code for the specified shell (bash, zsh, fish, or powershell)



----



Other Commands:

* kubectl alpha - Commands for features in alpha



* kubectl api-resources - Print the supported API resources on the server



* kubectl api-versions - Print the supported API versions on the server, in the form of "group/version"



* kubectl config - Modify kubeconfig files



* kubectl plugin - Provides utilities for interacting with plugins



* kubectl version - Print the client and server version information



Usage:



kubectl [flags] [options]



Use "kubectl --help" for more information about a given command.



Use "kubectl options" for a list of global command-line options (applies to all commands).



navbar_kubectl - see also navbar_kubernetes)
navbar_kubectl

Homebrew: Cloud Monk's Package Manager Book Homebrew Chapter, Cloud Monk's Development PC DevOps Automation via Ansible-Chocolatey-PowerShell-Homebrew-DNF-APT, Homebrew Glossary - Glossaire de Homebrew - French, Homebrew Fundamentals, Homebrew Inventor - Homebrew Designer: Mike McQuaid, Brew DevOps - Homebrew on macOS - macOS DevOps - MacOps, Homebrew on Linux - Linux DevOps - LinuxOps, Homebrew Automation, Idempotent, Refreshenv, Homebrew Topics, macOS Package Managers, Package managers, macOS Configuration Management, PowerShell on macOS Ansible on macOS, Chef on macOS, Puppet on macOS (navbar_brew - see also navbar_choco, navbar_package_manager)



----



Cloud Monk is Retired (impermanence |for now). Buddha with you. Copyright | © Beginningless Time - Present Moment - Three Times: The Buddhas or Fair Use. Disclaimers



SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.



----