Binaries at various versions for linux, macOs and Windows are available on the release page.
Or...
# pick one
opsys=darwin
opsys=windows
opsys=linux
curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases |\
grep browser_download |\
grep $opsys |\
cut -d '"' -f 4 |\
grep /kustomize/v |\
sort | tail -n 1 |\
xargs curl -O -L
tar xzf ./kustomize_v*_${opsys}_amd64.tar.gz
./kustomize version
This method is more to show off how the go
tool works,
than for any practical purpose. A kustomize developer should
clone the repo (see next section), and CI/CD scripts should
download a specific ready-to-run executable rather than
rely on the go
tool.
Install the latest kustomize binary in the v3 series to $GOPATH/bin
:
go install sigs.k8s.io/kustomize/kustomize/v3
Install a specific version:
go get sigs.k8s.io/kustomize/kustomize/v3@v3.3.0
# Need go 1.13 or higher
unset GOPATH
# see https://golang.org/doc/go1.13#modules
unset GO111MODULES
# clone the repo
git clone git@github.com:kubernetes-sigs/kustomize.git
# get into the repo root
cd kustomize
# Optionally checkout a particular tag if you don't
# want to build at head
git checkout kustomize/v3.2.3
# build the binary
(cd kustomize; go install .)
# run it
~/go/bin/kustomize version
brew install kustomize
choco install kustomize
For support on the chocolatey package and prior releases, see: