kubernetes - 我可以通过客户端 api 在 kubernetes 中同时创建多个作业吗?
问题描述
我想通过它的 api 在 kubernetes 中创建数百个工作。有没有办法做到这一点?我现在必须一个一个地创建它们。谢谢。
解决方案
I mean you have to make 1 API call per object you want to create, but you can certainly write a script for that. Kubernetes does not offer a "bulk create" API endpoint if that's what you are asking, or really much of anything for bulk operations. It's a boring old REST API :)
推荐阅读
- excel - 通过标题识别列并将数据粘贴到匹配的列中
- amazon-web-services - 如何读取 AWS CLI 命令响应
- python - Python:为什么我不能对集合进行算术运算
- html - 如何在引导程序中设置导航链接到当前页面
- linux - 如何使用 AWK 从文件中连续输出行
- swift - 有没有办法改变 UITabBar 或 UITabBarItem 中的图像位置?
- python - AWS - 打印 lambda 启动的实例的详细信息
- php - laravel 应用程序中的本地化问题
- docker - 无法拉取 docker tomcat 镜像
- javascript - Electron 退出而不发出 render-process-gone 事件