Prerequisites
Before you begin, ensure you have the following:
- A running Kubernetes cluster
kubectlinstalled and configured to communicate with your cluster
Supported Platforms
Kustomize provides a single installation script that auto-detects your operating system and installs the appropriate binary.| Operating System | Installation Method |
|---|---|
| Linux | curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash |
| macOS | curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash |
| Windows (PowerShell) | iwr -useb "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.ps1" | iex |
Install Kustomize
Run the official installation script:PATH:
Verify the Installation
Check that Kustomize is installed correctly by running:- Close and reopen your terminal to refresh
PATH. - Rerun the installation script from above.
If the
kustomize command is not found after installation, ensure /usr/local/bin (or your chosen install directory) is included in your PATH environment variable.