-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add one parameter to instantiate multiple similar pods with indexes #30256
Comments
cc @erictune @bprashanth Is this something that PetSet addresses? |
@tobegit3hub please take a look at http://kubernetes.io/docs/user-guide/petset/#ordinal-index when you have some time. Unsure if it covers your usecase. |
Thanks @pwittrock and @bprashanth and The
Is it possible to add environment variable or API for each |
Great! Thanks @bprashanth 😃 |
It's the requirement when we're trying to deploy distributed TensorFlow in Kubernetes. The process of TensorFlow can be containerized in docker image and we can start multiple processes with the deployment yaml file.
But what if the users want to setup the deployment with different number of pods, we have to generate different deployment yaml files. The most parts of yaml file are similar and we're using the same docker image and labels. It would be better to add the parameter like "number" and Kubernetes will create multiple pods for that and pass the index so that each pod knows about its index. I think this may be something useful in Google Borg.
To be clear, this is different from replica set because they are not exactly the "same" replicas. And it's similar to indexed-job but used for general pods.
The text was updated successfully, but these errors were encountered: