You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per the title, I'm using the Dockerfile in cron-k8s to build an image that I then deploy as a k8s CronJob. But, don't we need to actually exec `/opt/homer_mysql_rotate.pl' in run.sh somewhere around here
I'm unclear how it would work otherwise.
The text was updated successfully, but these errors were encountered:
davehorton
changed the title
question about trying to use cron-k8s as the image for a Kubernetes cron job
question about trying to use cron-k8s as the image for a Kubernetes CronJob
Feb 8, 2018
Hey Dave -- are you looking at this block in the deploy.yaml?
At the time I wrote that I decided to drop it because it was still an alpha feature, so... I'm unsure where I left off with it, or if I ever had it working, but decided to keep that commented out block for reference.
You're on the right track though -- you should be able to directly use that script and bypass the run. Unless the run.sh does some fancy pants copying of configurations (a kind of... pragmatic work-around in some of these cases).
Should wind up with something in the container spec looking something like...
Alright, I'm reading through more now (like actually reading the file you linked), and.... I think you're right -- that run.sh is missing actually... running the cron job, good eye.
Per the title, I'm using the Dockerfile in cron-k8s to build an image that I then deploy as a k8s CronJob. But, don't we need to actually exec `/opt/homer_mysql_rotate.pl' in run.sh somewhere around here
I'm unclear how it would work otherwise.
The text was updated successfully, but these errors were encountered: