Last active
April 25, 2019 21:30
-
-
Save willbeason/445bd67ed6093261e92857a2e4a2ab27 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~$ kubectl get ns delete-me | |
NAME STATUS AGE | |
delete-me Terminating 3h39m | |
~$ cat ns.json | |
{ | |
"kind": "Namespace", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "delete-me", | |
"selfLink": "/api/v1/namespaces/delete-me", | |
"annotations": { | |
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"v1\",\"kind\":\"Namespace\",\"metadata\":{\"annotations\":{},\"name\":\"delete-me\"},\"spec\":{\"finalizers\":[\"foregroundDeletion\"]}}\n" | |
} | |
}, | |
"spec": { | |
"finalizers": [ | |
] | |
}, | |
"status": { | |
"phase": "Terminating" | |
} | |
} | |
~$ curl -k -H "Content-Type: application/json" -X PUT --data-binary @ns.json http://127.0.0.1:8007/api/v1/namespaces/delete-me/finalize | |
{ | |
"kind": "Namespace", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "delete-me", | |
"selfLink": "/api/v1/namespaces/delete-me/finalize", | |
"uid": "0df02f91-6782-11e9-8beb-42010a800137", | |
"resourceVersion": "39047", | |
"creationTimestamp": "2019-04-25T17:46:28Z", | |
"deletionTimestamp": "2019-04-25T17:46:31Z", | |
"annotations": { | |
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"v1\",\"kind\":\"Namespace\",\"metadata\":{\"annotations\":{},\"name\":\"delete-me\"},\"spec\":{\"finalizers\":[\"foregroundDeletion\"]}}\n" | |
} | |
}, | |
"spec": { | |
}, | |
"status": { | |
"phase": "Terminating" | |
} | |
} | |
~$ kubectl get ns delete-me | |
Error from server (NotFound): namespaces "delete-me" not found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment