Forum Topic

Thanks for your participation and contribution.


Back to Kubernetes

Kubernets CronJob

Post a reply
247 views
i90runner
i90runner

Cronjob

https://medium.com/@pranay.shah/how-to-get-logs-from-cron-job-in-kubernetes-last-completed-job-7957327c7e76

watch "kubectl get pods -n cj2 -l cj2job --sort-by=.metadata.creationTimestamp -o 'jsonpath={.items[-1].metadata.name}' | xargs kubectl logs -n cj2"

1-1 of 1

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.