How to create/delete pods from another pod or Kubernetes entity
up vote
1
down vote
favorite
I am a newbie to Kubernetes and have a design question for you.
There are 3 main things I am using:
Producer - the binary will be same but the sources from where the producer will be getting data are different. User can create any number of producers from different sources. They can be added or deleted at runtime.
Tasks - there are one or many tasks for one producer - they can be added or reduced at runtime. Every task runs some particular, unique query (defined by user).
A business logic entity - which will create new producers or new tasks OR delete producer(s) or task(s) depending on the user request.
Now, Currently I am achieving this by running business logic in a pod and it runtime creates producer pod(s) & task pod(s) by using “Kubernetes python client APIs”.
I would like to know is there any better way to do that?
I am definitely not looking for replicaSet or Horizontal Pod accelerator as the arguments to my producer/task pods will always change - depending from user data.
I am also okay with converting the business logic into any other Kubernetes entity which can runtime create/delete pods?
Any help would be appreciated.
Thank you.
python kubernetes cluster-computing
add a comment |
up vote
1
down vote
favorite
I am a newbie to Kubernetes and have a design question for you.
There are 3 main things I am using:
Producer - the binary will be same but the sources from where the producer will be getting data are different. User can create any number of producers from different sources. They can be added or deleted at runtime.
Tasks - there are one or many tasks for one producer - they can be added or reduced at runtime. Every task runs some particular, unique query (defined by user).
A business logic entity - which will create new producers or new tasks OR delete producer(s) or task(s) depending on the user request.
Now, Currently I am achieving this by running business logic in a pod and it runtime creates producer pod(s) & task pod(s) by using “Kubernetes python client APIs”.
I would like to know is there any better way to do that?
I am definitely not looking for replicaSet or Horizontal Pod accelerator as the arguments to my producer/task pods will always change - depending from user data.
I am also okay with converting the business logic into any other Kubernetes entity which can runtime create/delete pods?
Any help would be appreciated.
Thank you.
python kubernetes cluster-computing
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am a newbie to Kubernetes and have a design question for you.
There are 3 main things I am using:
Producer - the binary will be same but the sources from where the producer will be getting data are different. User can create any number of producers from different sources. They can be added or deleted at runtime.
Tasks - there are one or many tasks for one producer - they can be added or reduced at runtime. Every task runs some particular, unique query (defined by user).
A business logic entity - which will create new producers or new tasks OR delete producer(s) or task(s) depending on the user request.
Now, Currently I am achieving this by running business logic in a pod and it runtime creates producer pod(s) & task pod(s) by using “Kubernetes python client APIs”.
I would like to know is there any better way to do that?
I am definitely not looking for replicaSet or Horizontal Pod accelerator as the arguments to my producer/task pods will always change - depending from user data.
I am also okay with converting the business logic into any other Kubernetes entity which can runtime create/delete pods?
Any help would be appreciated.
Thank you.
python kubernetes cluster-computing
I am a newbie to Kubernetes and have a design question for you.
There are 3 main things I am using:
Producer - the binary will be same but the sources from where the producer will be getting data are different. User can create any number of producers from different sources. They can be added or deleted at runtime.
Tasks - there are one or many tasks for one producer - they can be added or reduced at runtime. Every task runs some particular, unique query (defined by user).
A business logic entity - which will create new producers or new tasks OR delete producer(s) or task(s) depending on the user request.
Now, Currently I am achieving this by running business logic in a pod and it runtime creates producer pod(s) & task pod(s) by using “Kubernetes python client APIs”.
I would like to know is there any better way to do that?
I am definitely not looking for replicaSet or Horizontal Pod accelerator as the arguments to my producer/task pods will always change - depending from user data.
I am also okay with converting the business logic into any other Kubernetes entity which can runtime create/delete pods?
Any help would be appreciated.
Thank you.
python kubernetes cluster-computing
python kubernetes cluster-computing
edited Nov 19 at 5:46
Emruz Hossain
90329
90329
asked Nov 19 at 1:07
neo3matrix
568
568
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53367095%2fhow-to-create-delete-pods-from-another-pod-or-kubernetes-entity%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown