首页 > 解决方案 > 我可以通过客户端 api 在 kubernetes 中同时创建多个作业吗?

问题描述

我想通过它的 api 在 kubernetes 中创建数百个工作。有没有办法做到这一点?我现在必须一个一个地创建它们。谢谢。

标签: kubernetesclient-go

解决方案


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 :)


推荐阅读