Difference between revisions of "Template:Krew installation"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
* macOS: <code>[[brew install krew]]</code> | * macOS: <code>[[brew install krew]]</code> | ||
* Linux: https://krew.sigs.k8s.io/docs/user-guide/setup/install/ | * Linux: https://krew.sigs.k8s.io/docs/user-guide/setup/install/ | ||
− | + | ( | |
− | set -x; cd "$(mktemp -d)" && | + | [[set -x]]; cd "$([[mktemp]] -d)" && |
OS="$(uname | tr '[:upper:]' '[:lower:]')" && | OS="$(uname | tr '[:upper:]' '[:lower:]')" && | ||
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" && | ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" && |
Latest revision as of 10:16, 10 January 2024
( 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 )
Advertising: