我正在 Azure 上运行 Kubernetes。 我想使用 AZ AKS 或 kubectl 删除特定的部署。
我找到的唯一信息是如何删除 pods,但这不是我要找的,因为一旦删除 pods,它们就会重新生成。
我知道我可以只需转到 UI 并删除部署,但我想用 az aks 或 kubectl 完成。
我已经运行了
kubectl get all -A
然后我复制要删除的部署名称并运行:
kubectl delete deployment zr-binanceloggercandlestick-btcusdt-2hour
kubectl delete deployment deployment.apps/zr-binanceloggercandlestick-btcusdt-12hour
但是没有取得任何成功,我收到了这些错误信息:
Error from server (NotFound): deployments.extensions "zr-binanceloggercandlestick-btcusdt-2hour" not found
error: there is no need to specify a resource type as a separate argument when passing arguments in resource/name form (e.g. 'C:\Users\amnesia\.azure-kubectl\kubectl.exe get resource/<resource_name>' instead of 'C:\Users\amnesia\.azure-kubectl\kubectl.exe get resource resource/<resource_name>'