$ kubectl run nginx --image=nginx
pod/nginx created
$ kubectl get pod nginx
NAME READY STATUS RESTARTS AGE
nginx 1/1 Running 0 21s
$ kubectl get pod nginx -oyaml
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2025-06-21T04:46:52Z"
labels:
run: nginx
name: nginx
namespace: default
resourceVersion: "1233023703"
uid: cbe80ee6-c20f-4526-9239-745a83b348b5
spec:
containers:
- image: nginx
imagePullPolicy: Always
name: nginx
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: kube-api-access-ftvfp
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
nodeName: cluster1-worker6-2db8977f-bplm
preemptionPolicy: PreemptLowerPriority
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- name: kube-api-access-ftvfp
projected:
defaultMode: 420
sources:
- serviceAccountToken:
expirationSeconds: 3607
path: token
- configMap:
items:
- key: ca.crt
path: ca.crt
name: kube-root-ca.crt
- downwardAPI:
items:
- fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
path: namespace
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2025-06-21T04:46:57Z"
status: "True"
type: PodReadyToStartContainers
- lastProbeTime: null
lastTransitionTime: "2025-06-21T04:46:52Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2025-06-21T04:46:57Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2025-06-21T04:46:57Z"
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2025-06-21T04:46:52Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: containerd://60f5a7d980d42a4f750eac088b897d95743e59f6b90e0b60c5231a69c38d5145
image: docker.io/library/nginx:latest
imageID: docker.io/library/nginx@sha256:6784fb0834aa7dbbe12e3d7471e69c290df3e6ba810dc38b34ae33d3c1c05f7d
lastState: {}
name: nginx
ready: true
restartCount: 0
started: true
state:
running:
startedAt: "2025-06-21T04:46:57Z"
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: kube-api-access-ftvfp
readOnly: true
recursiveReadOnly: Disabled
hostIP: 10.178.15.226
hostIPs:
- ip: 10.178.15.226
phase: Running
podIP: 10.20.1.110
podIPs:
- ip: 10.20.1.110
qosClass: BestEffort
startTime: "2025-06-21T04:46:52Z"