Member-only story

kubectl kustomize deprecated since Kubernetes v1.21

Luca Berton
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:

  1. Standalone Kustomize: Instead of running kubectl kustomize, the Kubernetes community recommends using the kustomize binary directly, which offers more features and a more flexible approach to managing configurations.
  2. kubectl apply -k still supported: While kubectl kustomize is deprecated, the -k flag in kubectl apply -k is still available. This flag allows you to apply configurations from a Kustomize directory.
  3. 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…

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet