简体   繁体   English

如何删除Kubeflow集群?

[英]How to delete a Kubeflow cluster?

I tried to install KubeFlow but use the wrong region, how to delete it? 我试图安装KubeFlow但使用了错误的区域,如何删除它? I tried to do it from Kubernetes clsuter but keep getting the same error when I try to create a new one: 我试图从Kubernetes clsuter做到这一点,但是当我尝试创建一个新的时,却不断遇到相同的错误:

Error 409: 'projects/dpe-cloud-mle/global/deployments/kubeflow' already exists and cannot be created., duplicate

This is a feature of Deployment Manager, which is used to create the cluster. 这是Deployment Manager的一项功能,用于创建集群。 If you create any resource using DM, but edit or delete it manually (=elsewhere in the console), the record of it remains unchanged in the DM. 如果使用DM创建任何资源,但手动对其进行编辑或删除(=在控制台中的其他位置),则该资源的记录在DM中保持不变。

To fix your issue, navigate to Deployment Manager in your GCP Console and delete the relevant deployment. 要解决您的问题,请在GCP控制台中导航到Deployment Manager,然后删除相关的部署。 Then you will be able to re-install KubeFlow without this error. 然后,您将能够重新安装KubeFlow而不会出现此错误。

或者,您也可以按照GKE设置说明中所述通过命令行删除部署

${KUBEFLOW_SRC}/scripts/kfctl.sh delete all

run the following set of commands to delete all resources associated with the kubeflow deployment: 运行以下命令以删除与kubeflow部署关联的所有资源:

//Delete the deployment via deployment manager //通过Deployment Manager删除部署

gcloud deployment-manager --project=${PROJECT} deployments delete ${DEPLOYMENT_NAME} gcloud Deployment-manager --project = $ {PROJECT}部署删除$ {DEPLOYMENT_NAME}

//Delete your Cloud Storage bucket when you've finished with it: gsutil rm -r gs://${BUCKET_NAME} //完成操作后,请删除您的Cloud Storage存储桶:gsutil rm -r gs:// $ {BUCKET_NAME}

Delete the container images uploaded to Container Registry: // Find the digest id for each container image: 删除上载到Container Registry的容器映像://找到每个容器映像的摘要ID:

gcloud container images list-tags gcr.io/${PROJECT}/${DEPLOYMENT_NAME}-train gcloud container images list-tags gcr.io/${PROJECT}/${DEPLOYMENT_NAME}-web-ui gcloud容器映像列表标签gcr.io/${PROJECT}/${DEPLOYMENT_NAME}-培训gcloud容器映像列表标签gcr.io/${PROJECT}/${DEPLOYMENT_NAME}-web-ui

// Delete each image: //删除每张图片:

gcloud container images delete gcr.io/$PROJECT/${DEPLOYMENT_NAME}- train:$DIGEST_ID gcloud container images delete gcr.io/$PROJECT/${DEPLOYMENT_NAME}-web- ui:$DIGEST_ID gcloud容器映像删除gcr.io/$PROJECT/${DEPLOYMENT_NAME}-火车:$ DIGEST_ID gcloud容器映像删除gcr.io/$PROJECT/${DEPLOYMENT_NAME}-web-ui:$DIGEST_ID

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM