https://rancher.com/ logo
e

echoing-ability-7881

10/15/2022, 11:48 AM
Hi Rancher community how are you, my question today is related to Cronjob on Rancher RKE GUI- Lets suppose i have a application deploy on Rancher workload and i want to run Schedule for it that will run per minute whole day and i want some other command to run constantly. What should i do in RKE please help #general #k3s #rancher-desktop #k3s #rancher-desktop
q

quick-keyboard-83126

10/16/2022, 7:20 AM
Cross Posting is generally frowned upon... That said, having something run constantly would just be a pod/deployment with restartpolicy:always (the default): https://gaurav-kaushikgk88.medium.com/self-healing-pods-in-kubernetes-their-restart-policies-84d929778e6d#:~:text=In%20Kubernetes%2C%20Always%20is%20the,always%20needs%20to%20be%20running. The other side would probably just be: concurrencyPolicy: forbid & https://crontab.guru/#*_*_*_*_* I personally wouldn't suggest doing this, but hey...
e

echoing-ability-7881

10/16/2022, 8:54 AM
@quick-keyboard-83126 Actually i want to run cronjob on rancher RKE 2.7
which is run all commands
q

quick-keyboard-83126

10/16/2022, 11:07 AM
Then I think you're in the wrong channel. This is Rancher Desktop, and my answer is reasonable for a generic kubernetes.
e

echoing-ability-7881

10/16/2022, 11:08 AM
sure