K8s-namesapce一直处于terminating状态
来自三线的随记
使用kubectl get ns 导出namespace的json格式信息
kubectl get namespace knative-serving -o json > tmp.json
删除带有finalizers信息的spec段
"spec": { "finalizers": [ "kubernetes" ] },
重新通过k8s接口更新
需要考虑api server接口认证(header 认证)
authorization: Bearer xxxxxx
curl -k -H "Content-Type: application/json" -H "authorization: Bearer $(cat ./auth-token)" -X PUT --data-binary @/tmp/skynet.json https://api-server-address/api/v1/namespaces/skynet/finalize