背景说明

通过kubectl进行获取资源对象例如pod、pv时可能需要自定义输出字段,比如默认情况下

  1. student@master01:~$ kubectl get pod
  2. NAME READY STATUS RESTARTS AGE
  3. 11-factor-app 1/1 Running 6 (23d ago) 72d
  4. foo 1/1 Running 6 (23d ago) 72d
  5. front-end-94f5bf8fb-hxg4p 1/1 Running 6 (23d ago) 72d
  6. podname1 1/1 Running 1 (112m ago) 113m
  7. podname2 1/1 Running 1 (107m ago) 112m
  8. presentation-5649f596b9-jxfnn 1/1 Running 6 (23d ago) 72d
  9. student@master01:~$

假如只想得到NAME时则可以使用一定的指令进行配置

解决方案

官方文档

https://kubernetes.io/zh/docs/reference/kubectl/jsonpath/

中间过程

  1. student@master01:~$ kubectl get pod -o yaml
  2. apiVersion: v1
  3. items:
  4. - apiVersion: v1
  5. kind: Pod
  6. metadata:
  7. creationTimestamp: "2022-02-23T16:55:04Z"
  8. name: 11-factor-app
  9. namespace: default
  10. resourceVersion: "57635"
  11. uid: 16578c61-8ab6-4ba3-9157-b76aeef403be
  12. spec:
  13. containers:
  14. - args:
  15. - /bin/sh
  16. - -c
  17. - |
  18. i=0; while true; do
  19. echo "$(date) INFO $i" >> /var/log/11-factor-app.log;
  20. i=$((i+1));
  21. sleep 1;
  22. done
  23. image: busybox
  24. imagePullPolicy: IfNotPresent
  25. name: count
  26. resources: {}
  27. terminationMessagePath: /dev/termination-log
  28. terminationMessagePolicy: File
  29. volumeMounts:
  30. - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
  31. name: kube-api-access-kcjc2
  32. readOnly: true
  33. dnsPolicy: ClusterFirst
  34. enableServiceLinks: true
  35. nodeName: node02
  36. preemptionPolicy: PreemptLowerPriority
  37. priority: 0
  38. restartPolicy: Always
  39. schedulerName: default-scheduler
  40. securityContext: {}
  41. serviceAccount: default
  42. serviceAccountName: default
  43. terminationGracePeriodSeconds: 30
  44. tolerations:
  45. - effect: NoExecute
  46. key: node.kubernetes.io/not-ready
  47. operator: Exists
  48. tolerationSeconds: 300
  49. - effect: NoExecute
  50. key: node.kubernetes.io/unreachable
  51. operator: Exists
  52. tolerationSeconds: 300
  53. volumes:
  54. - name: kube-api-access-kcjc2
  55. projected:
  56. defaultMode: 420
  57. sources:
  58. - serviceAccountToken:
  59. expirationSeconds: 3607
  60. path: token
  61. - configMap:
  62. items:
  63. - key: ca.crt
  64. path: ca.crt
  65. name: kube-root-ca.crt
  66. - downwardAPI:
  67. items:
  68. - fieldRef:
  69. apiVersion: v1
  70. fieldPath: metadata.namespace
  71. path: namespace
  72. status:
  73. conditions:
  74. - lastProbeTime: null
  75. lastTransitionTime: "2022-02-23T16:55:04Z"
  76. status: "True"
  77. type: Initialized
  78. - lastProbeTime: null
  79. lastTransitionTime: "2022-05-07T06:29:43Z"
  80. status: "True"
  81. type: Ready
  82. - lastProbeTime: null
  83. lastTransitionTime: "2022-05-07T06:29:43Z"
  84. status: "True"
  85. type: ContainersReady
  86. - lastProbeTime: null
  87. lastTransitionTime: "2022-02-23T16:55:04Z"
  88. status: "True"
  89. type: PodScheduled
  90. containerStatuses:
  91. - containerID: docker://da36ee8fe4f43e96232f6686a95b27bd8433a6c521addc03c168cb51efca3e82
  92. image: busybox:latest
  93. imageID: docker-pullable://busybox@sha256:5acba83a746c7608ed544dc1533b87c737a0b0fb730301639a0179f9344b1678
  94. lastState:
  95. terminated:
  96. containerID: docker://07e5061731c3e797189812bd7625499422269ec5bbf192e3e50fa90548d49fef
  97. exitCode: 137
  98. finishedAt: "2022-04-14T06:20:41Z"
  99. reason: Error
  100. startedAt: "2022-04-14T06:19:50Z"
  101. name: count
  102. ready: true
  103. restartCount: 6
  104. started: true
  105. state:
  106. running:
  107. startedAt: "2022-05-07T06:29:41Z"
  108. hostIP: 11.0.1.113
  109. phase: Running
  110. podIP: 10.244.2.34
  111. podIPs:
  112. - ip: 10.244.2.34
  113. qosClass: BestEffort
  114. startTime: "2022-02-23T16:55:04Z"
  115. - apiVersion: v1
  116. kind: Pod
  117. metadata:
  118. creationTimestamp: "2022-02-23T16:54:17Z"
  119. labels:
  120. name: foo
  121. name: foo
  122. namespace: default
  123. resourceVersion: "57658"
  124. uid: cae12fa2-3c47-48d7-b982-a451f956255c
  125. spec:
  126. containers:
  127. - image: nginx
  128. imagePullPolicy: IfNotPresent
  129. name: nginx
  130. resources: {}
  131. terminationMessagePath: /dev/termination-log
  132. terminationMessagePolicy: File
  133. volumeMounts:
  134. - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
  135. name: kube-api-access-l969c
  136. readOnly: true
  137. dnsPolicy: ClusterFirst
  138. enableServiceLinks: true
  139. nodeName: node01
  140. preemptionPolicy: PreemptLowerPriority
  141. priority: 0
  142. restartPolicy: Always
  143. schedulerName: default-scheduler
  144. securityContext: {}
  145. serviceAccount: default
  146. serviceAccountName: default
  147. terminationGracePeriodSeconds: 30
  148. tolerations:
  149. - effect: NoExecute
  150. key: node.kubernetes.io/not-ready
  151. operator: Exists
  152. tolerationSeconds: 300
  153. - effect: NoExecute
  154. key: node.kubernetes.io/unreachable
  155. operator: Exists
  156. tolerationSeconds: 300
  157. volumes:
  158. - name: kube-api-access-l969c
  159. projected:
  160. defaultMode: 420
  161. sources:
  162. - serviceAccountToken:
  163. expirationSeconds: 3607
  164. path: token
  165. - configMap:
  166. items:
  167. - key: ca.crt
  168. path: ca.crt
  169. name: kube-root-ca.crt
  170. - downwardAPI:
  171. items:
  172. - fieldRef:
  173. apiVersion: v1
  174. fieldPath: metadata.namespace
  175. path: namespace
  176. status:
  177. conditions:
  178. - lastProbeTime: null
  179. lastTransitionTime: "2022-02-23T16:54:17Z"
  180. status: "True"
  181. type: Initialized
  182. - lastProbeTime: null
  183. lastTransitionTime: "2022-05-07T06:29:47Z"
  184. status: "True"
  185. type: Ready
  186. - lastProbeTime: null
  187. lastTransitionTime: "2022-05-07T06:29:47Z"
  188. status: "True"
  189. type: ContainersReady
  190. - lastProbeTime: null
  191. lastTransitionTime: "2022-02-23T16:54:17Z"
  192. status: "True"
  193. type: PodScheduled
  194. containerStatuses:
  195. - containerID: docker://9302d2be6a478977c3f63332084161eb3ac97c471bd978b84c8e9a973444e377
  196. image: nginx:latest
  197. imageID: docker-pullable://nginx@sha256:0d17b565c37bcbd895e9d92315a05c1c3c9a29f762b011a10c54a66cd53c9b31
  198. lastState:
  199. terminated:
  200. containerID: docker://a83d66b5c42e9107f59439bc6d12a0e9d3235938a9464593f1642b8d3df17e4c
  201. exitCode: 0
  202. finishedAt: "2022-04-14T06:20:31Z"
  203. reason: Completed
  204. startedAt: "2022-04-14T06:19:50Z"
  205. name: nginx
  206. ready: true
  207. restartCount: 6
  208. started: true
  209. state:
  210. running:
  211. startedAt: "2022-05-07T06:29:44Z"
  212. hostIP: 11.0.1.112
  213. phase: Running
  214. podIP: 10.244.1.28
  215. podIPs:
  216. - ip: 10.244.1.28
  217. qosClass: BestEffort
  218. startTime: "2022-02-23T16:54:17Z"
  219. - apiVersion: v1
  220. kind: Pod
  221. metadata:
  222. creationTimestamp: "2022-02-23T16:48:28Z"
  223. generateName: front-end-94f5bf8fb-
  224. labels:
  225. app: front-end
  226. pod-template-hash: 94f5bf8fb
  227. name: front-end-94f5bf8fb-hxg4p
  228. namespace: default
  229. ownerReferences:
  230. - apiVersion: apps/v1
  231. blockOwnerDeletion: true
  232. controller: true
  233. kind: ReplicaSet
  234. name: front-end-94f5bf8fb
  235. uid: fe59f286-24df-4169-8842-89b401d78a40
  236. resourceVersion: "57611"
  237. uid: fa6c8aa9-b010-49a7-9cb9-fa41a3c716c0
  238. spec:
  239. containers:
  240. - image: vicuu/nginx:hello
  241. imagePullPolicy: IfNotPresent
  242. name: nginx
  243. resources: {}
  244. terminationMessagePath: /dev/termination-log
  245. terminationMessagePolicy: File
  246. volumeMounts:
  247. - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
  248. name: kube-api-access-xww5d
  249. readOnly: true
  250. dnsPolicy: ClusterFirst
  251. enableServiceLinks: true
  252. nodeName: node02
  253. preemptionPolicy: PreemptLowerPriority
  254. priority: 0
  255. restartPolicy: Always
  256. schedulerName: default-scheduler
  257. securityContext: {}
  258. serviceAccount: default
  259. serviceAccountName: default
  260. terminationGracePeriodSeconds: 30
  261. tolerations:
  262. - effect: NoExecute
  263. key: node.kubernetes.io/not-ready
  264. operator: Exists
  265. tolerationSeconds: 300
  266. - effect: NoExecute
  267. key: node.kubernetes.io/unreachable
  268. operator: Exists
  269. tolerationSeconds: 300
  270. volumes:
  271. - name: kube-api-access-xww5d
  272. projected:
  273. defaultMode: 420
  274. sources:
  275. - serviceAccountToken:
  276. expirationSeconds: 3607
  277. path: token
  278. - configMap:
  279. items:
  280. - key: ca.crt
  281. path: ca.crt
  282. name: kube-root-ca.crt
  283. - downwardAPI:
  284. items:
  285. - fieldRef:
  286. apiVersion: v1
  287. fieldPath: metadata.namespace
  288. path: namespace
  289. status:
  290. conditions:
  291. - lastProbeTime: null
  292. lastTransitionTime: "2022-02-23T16:48:28Z"
  293. status: "True"
  294. type: Initialized
  295. - lastProbeTime: null
  296. lastTransitionTime: "2022-05-07T06:29:41Z"
  297. status: "True"
  298. type: Ready
  299. - lastProbeTime: null
  300. lastTransitionTime: "2022-05-07T06:29:41Z"
  301. status: "True"
  302. type: ContainersReady
  303. - lastProbeTime: null
  304. lastTransitionTime: "2022-02-23T16:48:28Z"
  305. status: "True"
  306. type: PodScheduled
  307. containerStatuses:
  308. - containerID: docker://3fc52fe7042dc1260318b9d5dd9dd7cab336342b42715495470ed9b6666005c9
  309. image: vicuu/nginx:hello
  310. imageID: docker-pullable://vicuu/nginx@sha256:6ab7771fa243c2773b5f2344f00f70a833a45f4bdfb0b26e93f69b5eedfb51fb
  311. lastState:
  312. terminated:
  313. containerID: docker://b6b3a89101209f6094b784855a846efb6dbcce978bb5bddc1a579522e8998ac1
  314. exitCode: 0
  315. finishedAt: "2022-04-14T06:20:30Z"
  316. reason: Completed
  317. startedAt: "2022-04-14T06:19:50Z"
  318. name: nginx
  319. ready: true
  320. restartCount: 6
  321. started: true
  322. state:
  323. running:
  324. startedAt: "2022-05-07T06:29:40Z"
  325. hostIP: 11.0.1.113
  326. phase: Running
  327. podIP: 10.244.2.32
  328. podIPs:
  329. - ip: 10.244.2.32
  330. qosClass: BestEffort
  331. startTime: "2022-02-23T16:48:28Z"
  332. - apiVersion: v1
  333. kind: Pod
  334. metadata:
  335. creationTimestamp: "2022-05-07T07:12:37Z"
  336. labels:
  337. run: podname1
  338. name: podname1
  339. namespace: default
  340. resourceVersion: "61725"
  341. uid: 3db68ff6-72a7-46d9-9992-0fe946865619
  342. spec:
  343. containers:
  344. - image: nginx
  345. imagePullPolicy: Always
  346. name: podname1
  347. resources: {}
  348. stdin: true
  349. stdinOnce: true
  350. terminationMessagePath: /dev/termination-log
  351. terminationMessagePolicy: File
  352. tty: true
  353. volumeMounts:
  354. - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
  355. name: kube-api-access-q9g2n
  356. readOnly: true
  357. dnsPolicy: ClusterFirst
  358. enableServiceLinks: true
  359. nodeName: node01
  360. preemptionPolicy: PreemptLowerPriority
  361. priority: 0
  362. restartPolicy: Always
  363. schedulerName: default-scheduler
  364. securityContext: {}
  365. serviceAccount: default
  366. serviceAccountName: default
  367. terminationGracePeriodSeconds: 30
  368. tolerations:
  369. - effect: NoExecute
  370. key: node.kubernetes.io/not-ready
  371. operator: Exists
  372. tolerationSeconds: 300
  373. - effect: NoExecute
  374. key: node.kubernetes.io/unreachable
  375. operator: Exists
  376. tolerationSeconds: 300
  377. volumes:
  378. - name: kube-api-access-q9g2n
  379. projected:
  380. defaultMode: 420
  381. sources:
  382. - serviceAccountToken:
  383. expirationSeconds: 3607
  384. path: token
  385. - configMap:
  386. items:
  387. - key: ca.crt
  388. path: ca.crt
  389. name: kube-root-ca.crt
  390. - downwardAPI:
  391. items:
  392. - fieldRef:
  393. apiVersion: v1
  394. fieldPath: metadata.namespace
  395. path: namespace
  396. status:
  397. conditions:
  398. - lastProbeTime: null
  399. lastTransitionTime: "2022-05-07T07:12:37Z"
  400. status: "True"
  401. type: Initialized
  402. - lastProbeTime: null
  403. lastTransitionTime: "2022-05-07T07:13:24Z"
  404. status: "True"
  405. type: Ready
  406. - lastProbeTime: null
  407. lastTransitionTime: "2022-05-07T07:13:24Z"
  408. status: "True"
  409. type: ContainersReady
  410. - lastProbeTime: null
  411. lastTransitionTime: "2022-05-07T07:12:37Z"
  412. status: "True"
  413. type: PodScheduled
  414. containerStatuses:
  415. - containerID: docker://ed770b4fa71794e842d07622b51cdd68572904cb2df07da3e49e3ef666d6594c
  416. image: nginx:latest
  417. imageID: docker-pullable://nginx@sha256:0d17b565c37bcbd895e9d92315a05c1c3c9a29f762b011a10c54a66cd53c9b31
  418. lastState:
  419. terminated:
  420. containerID: docker://1ed55f27f239effc3668797023f45b35d1e720123960aa93567f4521ef1924fd
  421. exitCode: 0
  422. finishedAt: "2022-05-07T07:13:06Z"
  423. reason: Completed
  424. startedAt: "2022-05-07T07:12:54Z"
  425. name: podname1
  426. ready: true
  427. restartCount: 1
  428. started: true
  429. state:
  430. running:
  431. startedAt: "2022-05-07T07:13:23Z"
  432. hostIP: 11.0.1.112
  433. phase: Running
  434. podIP: 10.244.1.32
  435. podIPs:
  436. - ip: 10.244.1.32
  437. qosClass: BestEffort
  438. startTime: "2022-05-07T07:12:37Z"
  439. - apiVersion: v1
  440. kind: Pod
  441. metadata:
  442. creationTimestamp: "2022-05-07T07:13:39Z"
  443. labels:
  444. run: podname2
  445. name: podname2
  446. namespace: default
  447. resourceVersion: "62209"
  448. uid: a919402b-c6f7-4c2b-b441-7254748beb4f
  449. spec:
  450. containers:
  451. - args:
  452. - /bin/bash
  453. image: nginx
  454. imagePullPolicy: Always
  455. name: podname2
  456. resources: {}
  457. stdin: true
  458. stdinOnce: true
  459. terminationMessagePath: /dev/termination-log
  460. terminationMessagePolicy: File
  461. tty: true
  462. volumeMounts:
  463. - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
  464. name: kube-api-access-j4prk
  465. readOnly: true
  466. dnsPolicy: ClusterFirst
  467. enableServiceLinks: true
  468. nodeName: node02
  469. preemptionPolicy: PreemptLowerPriority
  470. priority: 0
  471. restartPolicy: Always
  472. schedulerName: default-scheduler
  473. securityContext: {}
  474. serviceAccount: default
  475. serviceAccountName: default
  476. terminationGracePeriodSeconds: 30
  477. tolerations:
  478. - effect: NoExecute
  479. key: node.kubernetes.io/not-ready
  480. operator: Exists
  481. tolerationSeconds: 300
  482. - effect: NoExecute
  483. key: node.kubernetes.io/unreachable
  484. operator: Exists
  485. tolerationSeconds: 300
  486. volumes:
  487. - name: kube-api-access-j4prk
  488. projected:
  489. defaultMode: 420
  490. sources:
  491. - serviceAccountToken:
  492. expirationSeconds: 3607
  493. path: token
  494. - configMap:
  495. items:
  496. - key: ca.crt
  497. path: ca.crt
  498. name: kube-root-ca.crt
  499. - downwardAPI:
  500. items:
  501. - fieldRef:
  502. apiVersion: v1
  503. fieldPath: metadata.namespace
  504. path: namespace
  505. status:
  506. conditions:
  507. - lastProbeTime: null
  508. lastTransitionTime: "2022-05-07T07:13:39Z"
  509. status: "True"
  510. type: Initialized
  511. - lastProbeTime: null
  512. lastTransitionTime: "2022-05-07T07:18:29Z"
  513. status: "True"
  514. type: Ready
  515. - lastProbeTime: null
  516. lastTransitionTime: "2022-05-07T07:18:29Z"
  517. status: "True"
  518. type: ContainersReady
  519. - lastProbeTime: null
  520. lastTransitionTime: "2022-05-07T07:13:39Z"
  521. status: "True"
  522. type: PodScheduled
  523. containerStatuses:
  524. - containerID: docker://eaf617143c82156404e59a986d626805ef6befe65aa5f949ecbec720f5a20135
  525. image: nginx:latest
  526. imageID: docker-pullable://nginx@sha256:0d17b565c37bcbd895e9d92315a05c1c3c9a29f762b011a10c54a66cd53c9b31
  527. lastState:
  528. terminated:
  529. containerID: docker://429f55451268195da3bf7bda2b1b060bafdcc8a5f19892b96cb5748908e0f80f
  530. exitCode: 0
  531. finishedAt: "2022-05-07T07:18:13Z"
  532. reason: Completed
  533. startedAt: "2022-05-07T07:13:56Z"
  534. name: podname2
  535. ready: true
  536. restartCount: 1
  537. started: true
  538. state:
  539. running:
  540. startedAt: "2022-05-07T07:18:29Z"
  541. hostIP: 11.0.1.113
  542. phase: Running
  543. podIP: 10.244.2.37
  544. podIPs:
  545. - ip: 10.244.2.37
  546. qosClass: BestEffort
  547. startTime: "2022-05-07T07:13:39Z"
  548. - apiVersion: v1
  549. kind: Pod
  550. metadata:
  551. creationTimestamp: "2022-02-23T16:49:42Z"
  552. generateName: presentation-5649f596b9-
  553. labels:
  554. app: presentation
  555. pod-template-hash: 5649f596b9
  556. name: presentation-5649f596b9-jxfnn
  557. namespace: default
  558. ownerReferences:
  559. - apiVersion: apps/v1
  560. blockOwnerDeletion: true
  561. controller: true
  562. kind: ReplicaSet
  563. name: presentation-5649f596b9
  564. uid: 627e4117-ed25-4003-8832-b1c00e1b250c
  565. resourceVersion: "57631"
  566. uid: 7aae8380-c712-4e75-8909-2a2593c25b2c
  567. spec:
  568. containers:
  569. - image: vicuu/nginx:hello
  570. imagePullPolicy: IfNotPresent
  571. name: nginx
  572. resources: {}
  573. terminationMessagePath: /dev/termination-log
  574. terminationMessagePolicy: File
  575. volumeMounts:
  576. - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
  577. name: kube-api-access-ml9qn
  578. readOnly: true
  579. dnsPolicy: ClusterFirst
  580. enableServiceLinks: true
  581. nodeName: node02
  582. preemptionPolicy: PreemptLowerPriority
  583. priority: 0
  584. restartPolicy: Always
  585. schedulerName: default-scheduler
  586. securityContext: {}
  587. serviceAccount: default
  588. serviceAccountName: default
  589. terminationGracePeriodSeconds: 30
  590. tolerations:
  591. - effect: NoExecute
  592. key: node.kubernetes.io/not-ready
  593. operator: Exists
  594. tolerationSeconds: 300
  595. - effect: NoExecute
  596. key: node.kubernetes.io/unreachable
  597. operator: Exists
  598. tolerationSeconds: 300
  599. volumes:
  600. - name: kube-api-access-ml9qn
  601. projected:
  602. defaultMode: 420
  603. sources:
  604. - serviceAccountToken:
  605. expirationSeconds: 3607
  606. path: token
  607. - configMap:
  608. items:
  609. - key: ca.crt
  610. path: ca.crt
  611. name: kube-root-ca.crt
  612. - downwardAPI:
  613. items:
  614. - fieldRef:
  615. apiVersion: v1
  616. fieldPath: metadata.namespace
  617. path: namespace
  618. status:
  619. conditions:
  620. - lastProbeTime: null
  621. lastTransitionTime: "2022-02-23T16:49:42Z"
  622. status: "True"
  623. type: Initialized
  624. - lastProbeTime: null
  625. lastTransitionTime: "2022-05-07T06:29:43Z"
  626. status: "True"
  627. type: Ready
  628. - lastProbeTime: null
  629. lastTransitionTime: "2022-05-07T06:29:43Z"
  630. status: "True"
  631. type: ContainersReady
  632. - lastProbeTime: null
  633. lastTransitionTime: "2022-02-23T16:49:42Z"
  634. status: "True"
  635. type: PodScheduled
  636. containerStatuses:
  637. - containerID: docker://f7d274a74bb94eef3c34f27e2b1db9519438697b2c99d4d06419dc7c3a1583d0
  638. image: vicuu/nginx:hello
  639. imageID: docker-pullable://vicuu/nginx@sha256:6ab7771fa243c2773b5f2344f00f70a833a45f4bdfb0b26e93f69b5eedfb51fb
  640. lastState:
  641. terminated:
  642. containerID: docker://f65473c41ca83a04f22429c132a09c8ce5ecf4881a250ae93ab19375cbdd3621
  643. exitCode: 0
  644. finishedAt: "2022-04-14T06:20:30Z"
  645. reason: Completed
  646. startedAt: "2022-04-14T06:19:48Z"
  647. name: nginx
  648. ready: true
  649. restartCount: 6
  650. started: true
  651. state:
  652. running:
  653. startedAt: "2022-05-07T06:29:41Z"
  654. hostIP: 11.0.1.113
  655. phase: Running
  656. podIP: 10.244.2.33
  657. podIPs:
  658. - ip: 10.244.2.33
  659. qosClass: BestEffort
  660. startTime: "2022-02-23T16:49:42Z"
  661. kind: List
  662. metadata:
  663. resourceVersion: ""
  664. selfLink: ""
  665. student@master01:~$

固定字段

  1. student@master01:~$ kubectl get pod -o=jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.startTime}{"\n"}{end}'
  2. 11-factor-app 2022-02-23T16:55:04Z
  3. foo 2022-02-23T16:54:17Z
  4. front-end-94f5bf8fb-hxg4p 2022-02-23T16:48:28Z
  5. podname1 2022-05-07T07:12:37Z
  6. podname2 2022-05-07T07:13:39Z
  7. presentation-5649f596b9-jxfnn 2022-02-23T16:49:42Z
  8. student@master01:~$