I have a backend nodeJS application running in a kubernetes cluster. Now I want to run two cron jobs to be scheduled every month. The cron jobs are in a JS file. How do I create a job that runs those JS files in the pod running that service every month using Kubernetes ?
Unfortunately, you cannot run the CronJob inside a container of your application.
But you can create a container which will contain your cronjob and necessary environment for running it and schedule to run that pod by a CronJob.
Create a Pod that runs two Containers
Create a ...READ MORE
Follow these steps
Add --bind-address=0.0.0.0 option to the line https://github.com/kubernetes/kubernetes/blob/v1.2.0/docs/getting-started-guides/coreos/azure/cloud_config_templates/kubernetes-cluster-main-nodes-template.yml#L218
Created ...READ MORE
There is an issue with networking between ...READ MORE
Ofcourse you can. Cron job specification is ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Try using ingress itself in this manner
except ...READ MORE
Hi Kalgi after following above steps it ...READ MORE
Follow these steps:
$ kubeadm reset
$ kubeadm init ...READ MORE
You will find the CronJobresource in the batch/v1beta1 API group. ...READ MORE
If the Pod is part of a ...READ MORE