title | linkTitle | date | weight | description |
---|---|---|---|---|
Install Kustomize |
Install Kustomize |
2022-02-27 |
10 |
Kustomize can be installed in a variety of ways
|
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
For Homebrew users:
brew install kustomize
For MacPorts users:
sudo port install kustomize
choco install kustomize
For support on the chocolatey package and prior releases, see:
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
Requires Go to be installed.
go install sigs.k8s.io/kustomize/kustomize/{{< example-major-version >}}
# Clone the repo
git clone [email protected]: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