Binaries at various versions for linux, macOs and Windows are available on the release page.
Or...
opsys=linux # or darwin, or windows
curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases/latest |\
grep browser_download |\
grep $opsys |\
cut -d '"' -f 4 |\
xargs curl -O -L
mv kustomize_*_${opsys}_amd64 kustomize
chmod u+x kustomize
Requires Go v1.12 or higher:
go install sigs.k8s.io/kustomize/v3/cmd/kustomize
With Go v1.12, prefix the above command with
GO111MODULE=on
, e.g.GO111MODULE=on go install sigs.k8s.io/kustomize/v3/cmd/kustomize
This shouldn't be necessary with Go v1.13.
brew install kustomize
choco install kustomize
For support on the chocolatey package and prior releases, see: