python-3.x - 如何使用 python 删除 GKE(Google Kubernetes Engine)集群?
问题描述
我是 GKE-Python 的新手。我想使用 python 脚本删除我的 GKE(Google Kubernetes Engine)集群。我从google-cloud-container python 库中找到了一个 API delete_cluster()来删除 GKE 集群。 https://googleapis.dev/python/container/latest/index.html
但我不确定如何通过在 python 中传递所需的参数来使用该 API。任何人都可以用一个例子来解释我吗?
或者如果还有其他方法可以在python中删除GKE集群?
提前致谢。
解决方案
推荐阅读
- java - Java:使用 java.util.Random 对象最有效的方法是什么?
- flutter - 如何修复:错误:未能将一些参考推送到 | 创建远程 GitHub 存储库?
- c# - 找不到 VSCode .NET Core SDK
- reactjs - 如何在 nextjs 中切换主 CSS 文件?
- android - 为什么我的简单 RecyclerView 没有在屏幕上显示任何内容?
- ag-grid - ag-grid 中的树过滤
- javascript - 如何在本地环境中测试 fs.readdir
- vega-lite - vega-lite:间隔选择拖放错误
- c# - Asp.net 社交媒体网站文件在数据列表中显示问题
- python - Python openpyxl Excel无法识别保存的文件