Member-only story
kubectl kustomize
deprecated since Kubernetes v1.21
2 min readOct 30, 2024
The command kubectl kustomize
is deprecated as of Kubernetes v1.21. While you can still use it in versions up to v1.21, it will be removed in future versions. The reason behind the deprecation is to encourage users to switch to using Kustomize as a standalone tool, rather than using it through kubectl
.
Key Points Regarding the Deprecation:
- Standalone Kustomize: Instead of running
kubectl kustomize
, the Kubernetes community recommends using thekustomize
binary directly, which offers more features and a more flexible approach to managing configurations. kubectl apply -k
still supported: Whilekubectl kustomize
is deprecated, the-k
flag inkubectl apply -k
is still available. This flag allows you to apply configurations from a Kustomize directory.- Transition recommendation: If you’re currently using
kubectl kustomize
, you should transition to either:
- Using the standalone
kustomize
CLI (available for download from the Kustomize GitHub repository). - Using
kubectl apply -k
for applying Kustomize configurations directly within Kubernetes workflows.
Why the Deprecation?
The kubectl kustomize
subcommand was a minimal integration of Kustomize, and it…