kubectl get ns -l '!name'
Using the -l (short form of --selector) with the negation ! makes it easy to select things that don’t have that specific label.
-l
--selector
!