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?
630 Views Asked by GDev At
1
There are 1 best solutions below
Related Questions in KUBERNETES
- Golang == Error: OCI runtime create failed: unable to start container process: exec: "./bin": stat ./bin: no such file or directory: unknown
- I can't create a pod in minikube on windows
- Oracle setting up on k8s cluster using helm charts enterprise edition
- Retrieve the Dockerfile configuration from the Kubernetes and also change container Java parameter?
- Summarize pods not running, by Namespace and Reason - I'm having trouble finding the reason
- How to get Java running parameters from Spring Boot running inside container in pod where no ps exist
- How do we configure prometheus server to scrape metrics from a pod with Istio sidecar proxy?
- In rke kube-proxy pod is not present
- problem with edge server registration in Eureka
- Unable to Access Kubernetes LoadBalancer Service from Local Device Outside Cluster
- Kubernetes cluster on GCE connection refused error
- Based on my experience, I've outlined the Kubernetes request flow. Could someone please add or highlight any points I might have overlooked?
- how to define StackGres helm chart "restapi" values to use internal LoadBalancer - AWS EKS
- Python3.11 can't open file [Errno 2] No such file or directory
- Cannot find remote pod service - SERVICE_UNAVAILABLE
Related Questions in KUBERNETES-CRONJOB
- Kubernetes: I can't get my cronjob to mount a PersistentVolumeClaim
- How resume suspended cron job having concurrency policy as forbid
- CronJob pod repeats pending forever even after deleting it
- AKS - Cronjob use script file inside PVC
- generate cronschedule for two cronjobs which gets executed alternatively
- Session/EntityManager and (EntityManagerFactory) is closed following update to Spring Batch 5.1.0
- How to run GCP Cron job in privilege mode
- Different resource description from Kubernetes Dashboard and kubectl
- How to read the kubernetes pod's creation timestamp with Terraform
- How to to schedule a Job (not a CronJob) to an future date?
- Cronjob is not executing at scheduled interval
- Why job doesn't create a pod Kubernetes (Openshift)
- why cant specify container name when using imperative cmd to create cronjob in k8s?
- k8s cronjob failures missing pod when image pull back-off
- How to scale down cron-job in Kubernetes
Related Questions in NODESELECTOR
- nodeSelect / Affinity in innodb cluster under kubernetes
- Find All Nodeselectors in a Cluster
- NodeSelector for Job - use it only if NodeSelector exists
- Assign Gitlab Runner daemon's pod and the jobs's pods to two separate node groups in Kubernetes when using Kubernetes executor
- Regex in node selector
- Kubernetes apply nodeSelector via command
- Not valid Selector/Error: No node found for selector
- GKE jenkins kubernetes plugin node selector not working
- EKS nodeSelector results in pending pod
- Is there any method to set nodeselector for pod using golang api
- How to add nodeSelector to Deployment yaml file?
- Including extra flags in the apiserver manifest file in kubernetes v1.21.0 does not seem to have any effect
- Is there a one line kubectl command to add the nodeSelector in the pod yaml?
- How can I run a cronjob on multiple nodes sequentially in kubernetes?
- deployment not in nodeSelector kubernetes
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 # Hahtags
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.