Welcome to the Linux Foundation Forum!

Lab 8.3 Delete works with --all-namespaces

There is a mistake in the lab. The lab says

  1. Try to delete all Pods with the app=nginx label, in all namespaces. You should receive an error as this function must be
    narrowed to a particular namespace. Then delete using the appropriate namespace.
    student@lfs458-node-1a0a:~$ kubectl delete pods -l app=nginx \
    --all-namespaces
    Error: unknown flag: --all-namespaces

but it works for me. This is a mistake in the lab. Maybe this functionality didn't exist previously but it works now. kubectl delete --help shows --all-namespaces as an option.

Comments

  • Posts: 2,449

    Hi @jdnovick,

    Thanks for bringing this to our attention. You are correct, this behavior has recently changed.
    The lab exercise will be corrected in a future course update release.

    Regards,
    -Chris

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training