Stephen Bailey04/06/2022, 5:09 PM
while jobs are running? im assuming configuration gets applied in a safe way?
johann04/06/2022, 5:09 PM
ba04/06/2022, 7:37 PM
, but useful to know in general for troubleshooting: • if the configmap/secret is mounted as a volume, the file on the volume is updated, but if the job only reads it once at startup, it shouldn't affect the running job. • if the configmap/secret is mounted as an environment variable, the environment variable will not change • caveat for both: if the job restarts(job spec
) or gets rescheduled onto another node it will probably pick up the change. It is very unlikely that a job with
is rescheduled, but kubernetes cannot guarantee this:
Note that even if you specifyand
.spec.parallelism = 1and
.spec.completions = 1, the same program may sometimes be started twice.
.spec.template.spec.restartPolicy = "Never"
Stephen Bailey04/06/2022, 8:00 PM