kubectl delete namespace : This deletes the specified namespace and all resources under the namespace! The deletion of resources is an asynchronous process, so don’t be surprised if you see your namespace in the “Terminating” state for a while before it’s completely gone.Just remember that the default namespace is called default in case you ever want to switch back. kubectl config set-context -current -namespace=: This allows you to change the default namespace for all the commands you’ll run while still keeping the same context.So all resources you create will still be created in the default namespace unless you specify the -namespace flag explicitly. Note that it will not set that namespace as the default one, though. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |