Welcome to the Linux Foundation Forum!
Lab 8.3 Delete works with --all-namespaces
There is a mistake in the lab. The lab says
- 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.
[email protected]:~$ kubectl delete pods -l app=nginx \
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.