JAEN

Kubernetes

kubectl apply -k

CautionApply with Kustomize

kubectl apply -k <dir>

Applies base+overlay configs; preview the rendered output with 'kubectl kustomize' before apply -k.

Examples

  • kubectl kustomize overlays/prod | lessReview the rendered manifests

Syntax

kubectl apply -k <dir> / kubectl kustomize <dir>

Before you run it

Wrong overlay = wrong environment.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store