Answer the question
In order to leave comments, you need to log in
Kubernetes: Run a container once on demand from another container?
Good afternoon!
I am designing a video processing system, tell me, let's say I have a Pod in which api-container works, it processes all incoming requests from clients via HTTPs, for some requests you need to run a separate container (in a separate Node / Pod designed for this), which will transcode the video for quite a long time. Can you tell me how you can run such a container once? Or even several to parallelize tasks?
Sincerely.
Answer the question
In order to leave comments, you need to log in
You can do Horizontal Pod Autoscaling ( https://kubernetes.io/docs/tasks/run-application/h... based on custom metric - number of videos for processing.
Through Jobs in K8s API. The link specs in YAML and kubectl, but for the application you need to knock directly, so you need to:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question