Reputation: 9028
I have a CronJob in Kubernetes which is writing logs to console and to a file. Now, I am writing a web application on top this. This application will show all the Jobs and the history of run and logs for each run.
Upvotes: 1
Views: 2492
Reputation: 1481
spec.Pod
specification. Meaning you can have multiple containers running inside of a single pod (ran by the job)https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#jobspec-v1-batch https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#podtemplatespec-v1-core
status:
completionTime: "2019-10-21T02:13:16Z"
conditions:
- lastProbeTime: "2019-10-21T02:13:16Z"
lastTransitionTime: "2019-10-21T02:13:16Z"
status: "True"
type: Complete
startTime: "2019-10-21T01:00:08Z"
succeeded: 1
user:~$ kubectl get jobs -n elasticsearch
NAME COMPLETIONS DURATION AGE
elasticsearch-elastic-stack-kibana-backup-1571443200 1/1 5s 2d4h
elasticsearch-elastic-stack-kibana-backup-1571529600 1/1 5s 28h
elasticsearch-elastic-stack-kibana-backup-1571616000 1/1 5s 4h58m
Upvotes: 2