I have two different types of worker nodes, ones that do data preparation and nodes that do machine learning.
I want to run a Cronjob that runs one process on a preparation node, then (only when finished) a second process on an ML node.
How can I do this in Kubernetes?
How can I run a cronjob on multiple nodes sequentially in kubernetes?
627 Views Asked by GDev At
1
There are 1 best solutions below
Related Questions in KUBERNETES
- How to know a Pod's own IP address from inside a container in the Pod?
- Who will decide the "specified number of pods" for replication controller in kubernetes?
- Access other containers of a pod in Kubernetes
- Kubernetes cluster using Vagrant not working after restart
- kubectl not installed with gcloud SDK
- How do I access the Kubernetes api from within a pod container?
- Exposing several services with Vagrant and Kubernetes on my own server
- Does Kubernetes provision new VMs for pods on my cloud platform?
- Any suggestion for running Aerospike on Kubernetes on CoreOS on GCE?
- Kubernetes - kubectl exec bash - session drop and line width
- Google Container Engine (GKE): "Hello Wordpress" tutorial not working (ERR_CONNECTION_REFUSED)
- Kubernetes Pod Creation Speed
- How can i set max count of pods for replication-controller per node?
- Is there a way to tell kubernetes to update your containers?
- Postgres with Kubernetes and persistentDisk
Related Questions in KUBERNETES-CRONJOB
- Cron Jobs in Kubernetes - connect to existing Pod, execute script
- How to automatically remove completed Kubernetes Jobs created by a CronJob?
- Get timestamp of the last successful cronjob completion via kubectl
- How can I run a cronjob on multiple nodes sequentially in kubernetes?
- K8s Pod Anti Affinity for Cronjob Pod Even Scheduling
- Controlling cron job on kubernates
- When do Kubernetes Cronjobs create2 jobs or none at all?
- Is it a good practice to use Kubernetes CronJobs for dynamically creating and managing a large number of scheduled jobs?
- Kubernetes cronjob missed two runs
- AWS EKS: schedule a deployment to scale down and up replicas at specific time using CronJob
- k8s cronjob failures missing pod when image pull back-off
- How to scale down cron-job in Kubernetes
- Create dependency between CRON jobs in Kubernetes docker-compose
- Why job doesn't create a pod Kubernetes (Openshift)
- why cant specify container name when using imperative cmd to create cronjob in k8s?
Related Questions in NODESELECTOR
- How can I run a cronjob on multiple nodes sequentially in kubernetes?
- Regex in node selector
- Including extra flags in the apiserver manifest file in kubernetes v1.21.0 does not seem to have any effect
- Kubernetes apply nodeSelector via command
- Is there a one line kubectl command to add the nodeSelector in the pod yaml?
- Kubernetes node affinity - Assigning a pod to a specific node?
- Is there any method to set nodeselector for pod using golang api
- How to add nodeSelector to Deployment yaml file?
- EKS nodeSelector results in pending pod
- Assign Gitlab Runner daemon's pod and the jobs's pods to two separate node groups in Kubernetes when using Kubernetes executor
- GKE jenkins kubernetes plugin node selector not working
- Not valid Selector/Error: No node found for selector
- nodeSelect / Affinity in innodb cluster under kubernetes
- Find All Nodeselectors in a Cluster
- NodeSelector for Job - use it only if NodeSelector exists
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
A CronJob is only one Pod.
What you want to do here is a Workflow or Pipeline consisting of two pods, executed on different nodes.
This can be done with e.g. Argo Workflow or Kubeflow Pipelines or maybe Tekton Pipeline.