Was experimenting with Longhorn. It is a cool technology, but need some help uninstalling. Namespace is currently stuck in “Terminating” state.
Found the uninstall steps on the GitHub instructions but they don’t work at this point because they expect the namespace to be in a normal state.
Any suggestions?
Output of kubectl get namespace longhorn-system -o json:
{
"apiVersion": "v1",
"kind": "Namespace",
"metadata": {
"annotations": {
"cattle.io/status": "{\"Conditions\":[{\"Type\":\"InitialRolesPopulated\",\"Status\":\"True\",\"Message\":\"\",\"LastUpdateTime\":\"2019-01-10T17:18:05Z\"},{\"Type\":\"ResourceQuotaInit\",\"Status\":\"True\",\"Message\":\"\",\"LastUpdateTime\":\"2019-01-10T17:18:04Z\"}]}",
"field.cattle.io/creatorId": "user-sw4mg",
"field.cattle.io/projectId": "c-gkz6s:p-48tst",
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"v1\",\"kind\":\"Namespace\",\"metadata\":{\"annotations\":{\"cattle.io/status\":\"{\\\"Conditions\\\":[{\\\"Type\\\":\\\"InitialRolesPopulated\\\",\\\"Status\\\":\\\"True\\\",\\\"Message\\\":\\\"\\\",\\\"LastUpdateTime\\\":\\\"2019-01-10T17:18:05Z\\\"},{\\\"Type\\\":\\\"ResourceQuotaInit\\\",\\\"Status\\\":\\\"True\\\",\\\"Message\\\":\\\"\\\",\\\"LastUpdateTime\\\":\\\"2019-01-10T17:18:04Z\\\"}]}\",\"field.cattle.io/creatorId\":\"user-sw4mg\",\"field.cattle.io/projectId\":\"c-gkz6s:p-48tst\",\"lifecycle.cattle.io/create.namespace-auth\":\"true\"},\"creationTimestamp\":\"2019-01-10T17:17:20Z\",\"deletionTimestamp\":\"2019-02-22T12:30:14Z\",\"labels\":{\"cattle.io/creator\":\"norman\",\"field.cattle.io/projectId\":\"p-48tst\"},\"name\":\"longhorn-system\",\"resourceVersion\":\"10512979\",\"selfLink\":\"/api/v1/namespaces/longhorn-system\",\"uid\":\"9673789f-14fb-11e9-ba68-005056b171b1\"},\"spec\":{\"finalizers\":[]},\"status\":{\"phase\":\"Terminating\"}}\n",
"lifecycle.cattle.io/create.namespace-auth": "true"
},
"creationTimestamp": "2019-01-10T17:17:20Z",
"deletionTimestamp": "2019-02-22T12:30:14Z",
"labels": {
"cattle.io/creator": "norman",
"field.cattle.io/projectId": "p-48tst"
},
"name": "longhorn-system",
"resourceVersion": "15206257",
"selfLink": "/api/v1/namespaces/longhorn-system",
"uid": "9673789f-14fb-11e9-ba68-005056b171b1"
},
"spec": {
"finalizers": [
"kubernetes"
]
},
"status": {
"phase": "Terminating"
}
}