Difference between revisions of "Krew"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
Krew is the [[plugin manager]] for <code>[[kubectl]]</code> command-line tool.
 
Krew is the [[plugin manager]] for <code>[[kubectl]]</code> command-line tool.
  
== Installation ==
+
== [[Krew installation]] ==
* macOS: <code>[[brew install krew]]</code>
+
{{krew installation}}
* Linux: https://krew.sigs.k8s.io/docs/user-guide/setup/install/
 
  
 
== Usage ==
 
== Usage ==

Revision as of 10:12, 10 January 2024

Krew is the plugin manager for kubectl command-line tool.

Krew installation

(
 set -x; cd "$(mktemp -d)" &&
 OS="$(uname | tr '[:upper:]' '[:lower:]')" &&
 ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" &&
 KREW="krew-${OS}_${ARCH}" &&
 curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" &&
 tar zxvf "${KREW}.tar.gz" &&
 ./"${KREW}" install krew
)

Usage

Related terms

See also

Advertising: