mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-21 22:41:42 +00:00
2.4 KiB
2.4 KiB
title, linkTitle, date, weight, description
| title | linkTitle | date | weight | description |
|---|---|---|---|---|
| Install Kustomize | Install Kustomize | 2022-02-27 | 10 | Kustomize can be installed in a variety of ways |
Binaries
Binaries at various versions for Linux, macOS and Windows are published on the releases page.
The following script detects your OS and downloads the appropriate kustomize binary to your current working directory.
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
Homebrew / MacPorts
For Homebrew users:
brew install kustomize
For MacPorts users:
sudo port install kustomize
Chocolatey
choco install kustomize
For support on the chocolatey package and prior releases, see:
Docker Images
Starting with Kustomize v3.8.7, docker images are available to run Kustomize. The image artifacts are hosted on Google Container Registry (GCR).
See GCR page for available images.
The following commands are how to pull and run kustomize {{}} docker image.
docker pull registry.k8s.io/kustomize/kustomize:{{< example-version >}}
docker run registry.k8s.io/kustomize/kustomize:{{< example-version >}} version
Go Source
Requires Go to be installed.
Install the kustomize CLI from source without cloning the repo
go install sigs.k8s.io/kustomize/kustomize/{{< example-major-version >}}
Install the kustomize CLI from local source
# 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/{{< example-version >}}
# Build the binary
(cd kustomize; go install .)
# Run it - this assumes your Go bin (generally GOBIN or GOPATH/bin) is on your PATH
# See the Go documentation for more details: https://go.dev/doc/code
kustomize version