k8wiz
Kustomize
Hard
Troubleshooting

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

Select your answer:

Show answer and explanation

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.