Skip to content

Commit

Permalink
docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
omidraha committed Aug 21, 2023
1 parent ecbd9fd commit e759ab9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/kubernetes/tips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1479,3 +1479,28 @@ Kubectl get event
.. code-block:: bash
kubectl get event -n kube-system
Delete terminating namespace
*****************************


.. code-block:: bash
kubectl get namespace -A
NAME STATUS AGE
my-ns Terminating 2d21h
default Active 2d21h
kube-node-lease Active 2d21h
kube-public Active 2d21h
kube-system Active 2d21h
kubectl get namespace my-ns -n my-ns -o json > ns.json
geany ns.json
"spec": {
"finalizers": []
},
kubectl proxy
# In new tab
curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/my-ns/finalize

0 comments on commit e759ab9

Please sign in to comment.