hardkubectl

Apply all manifests in a directory and delete labelled resources not present in the directory

command

kubectl apply --prune -f DIRECTORY -l APP=LABEL

also accepted

kubectl apply --prune

Test your recall — not just your reading.

Practice with interactive quiz →