kyleqian
kyleqian

Reputation: 385

Can I create many Job at the same time in kubernetes by client api?

I want to create hundreds of Jobs in kubernetes by its api. Is there any way to do this? I have to create them one by one now. Thanks.

Upvotes: 2

Views: 169

Answers (1)

coderanger
coderanger

Reputation: 54211

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

Upvotes: 3

Related Questions