brew_install_kubernetes-cli

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

=⇒ Casks

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 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 <command> –help” for more information about a given command. Use “kubectl options” for a list of global command-line options (applies to all commands).

Linux

See navbar_k8s

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

Basic Commands (Beginner):


Basic Commands (Intermediate):

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

Deploy Commands:

  • 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:


Troubleshooting and Debugging Commands:

  • kubectl cp - Copy files and directories to and from containers
  • 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 wait - Experimental: Wait for a specific condition on one or many resources

Settings Commands:

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

Other Commands:

  • kubectl api-versions - Print the supported API versions on the server, in the form of “group/version”

Usage:

kubectl [flags] [options]

Use “kubectl <command> –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)

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, 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 (for now). Buddha with you. © 2005 - 2024 Losang Jinpa or Fair Use. Disclaimers

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


brew_install_kubernetes-cli.txt · Last modified: 2022/11/09 07:23 by 127.0.0.1