4 ms·
I just rewrote some part of my system to kubernetes job. Gist is here: https://gist.github.com/kozikow/86ee26998c5de1cf3780b6bc0cd35ec0 https://gist.github.com/
by kozikow 10y ago
I just rewrote some part of my system to kubernetes job. Gist is here: https://gist.github.com/kozikow/86ee26998c5de1cf3780b6bc0cd35ec0 https://gist.github.com/kozikow/86ee26998c5de1cf3780b6bc0cd3... .
- As mentioned previously, retry count limit to job/pod would be useful.
- Minor nit: Deleting old job with the pod is cumbersome with current python API. Either delete_namespaced_job with orphan_dependencies: False, but I would need to check if job exists beforehand (deleting if job does not exist fails). On the other hand delete_collection_namespaced_job lets me delete job by label selector, but I also need to manually clean up the pod.
- Another nit: When exporting stackdriver logs collected by GKE from a job to big query, each log ends up as a separate logsource.