@@ -51,13 +51,8 @@ job.batch/pi created
51
51
52
52
Check on the status of the Job with ` kubectl ` :
53
53
54
- ``` shell
55
- kubectl describe jobs/pi
56
- ```
57
-
58
- The output is similar to this:
59
-
60
- ```
54
+ {{< tabs name="Check status of Job" >}}
55
+ {{< tab name="kubectl describe job pi" codelang="bash" >}}
61
56
Name: pi
62
57
Namespace: default
63
58
Selector: controller-uid=c9948307-e56d-4b5d-8302-ae2d7b7da67c
@@ -91,7 +86,62 @@ Events:
91
86
Type Reason Age From Message
92
87
---- ------ ---- ---- -------
93
88
Normal SuccessfulCreate 14m job-controller Created pod: pi-5rwd7
94
- ```
89
+ {{< /tab >}}
90
+ {{< tab name="kubectl get job pi -o yaml" codelang="bash" >}}
91
+ apiVersion: batch/v1
92
+ kind: Job
93
+ metadata:
94
+ annotations:
95
+ kubectl.kubernetes.io/last-applied-configuration: |
96
+ {"apiVersion":"batch/v1","kind":"Job","metadata":{"annotations":{},"name":"pi","namespace":"default"},"spec":{"backoffLimit":4,"template":{"spec":{"containers":[ {"command":[ "perl","-Mbignum=bpi","-wle","print bpi(2000)"] ,"image":"perl","name":"pi"}] ,"restartPolicy":"Never"}}}}
97
+ creationTimestamp: "2022-06-15T08:40:15Z"
98
+ generation: 1
99
+ labels:
100
+ controller-uid: 863452e6-270d-420e-9b94-53a54146c223
101
+ job-name: pi
102
+ name: pi
103
+ namespace: default
104
+ resourceVersion: "987"
105
+ uid: 863452e6-270d-420e-9b94-53a54146c223
106
+ spec:
107
+ backoffLimit: 4
108
+ completionMode: NonIndexed
109
+ completions: 1
110
+ parallelism: 1
111
+ selector:
112
+ matchLabels:
113
+ controller-uid: 863452e6-270d-420e-9b94-53a54146c223
114
+ suspend: false
115
+ template:
116
+ metadata:
117
+ creationTimestamp: null
118
+ labels:
119
+ controller-uid: 863452e6-270d-420e-9b94-53a54146c223
120
+ job-name: pi
121
+ spec:
122
+ containers:
123
+ - command:
124
+ - perl
125
+ - -Mbignum=bpi
126
+ - -wle
127
+ - print bpi(2000)
128
+ image: perl
129
+ imagePullPolicy: Always
130
+ name: pi
131
+ resources: {}
132
+ terminationMessagePath: /dev/termination-log
133
+ terminationMessagePolicy: File
134
+ dnsPolicy: ClusterFirst
135
+ restartPolicy: Never
136
+ schedulerName: default-scheduler
137
+ securityContext: {}
138
+ terminationGracePeriodSeconds: 30
139
+ status:
140
+ active: 1
141
+ ready: 1
142
+ startTime: "2022-06-15T08:40:15Z"
143
+ {{< /tab >}}
144
+ {{< /tabs >}}
95
145
96
146
To view completed Pods of a Job, use ` kubectl get pods ` .
97
147
0 commit comments