Welcome to the Linux Foundation Forum!

Lab 8.3 Delete works with --all-namespaces

Options

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

  • chrispokorni
    chrispokorni Posts: 2,165
    Options

    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

Categories

Upcoming Training