# Why can a kustomization build with the kustomize CLI but fail with kubectl apply -k?

Kustomize, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/why-can-a-kustomization-build-with-the-kustomize-cli-but-fail-with-kubectl-apply-k

- A. kubectl kustomize doesn't support overlays or remote bases
- B. kubectl only reads files named kustomization.yml, and ignores kustomization.yaml
- C. kubectl bundles a fixed Kustomize version, which may be older than the CLI
- D. kubectl requires every resource to be a local file

**Answer:** kubectl bundles a fixed Kustomize version, which may be older than the CLI

**Explanation:** Each kubectl release ships one Kustomize version. Fields added in newer Kustomize releases, or changed behavior, make the two disagree. Use the same tool and version in CI and in production.
