1. ---
    2. apiVersion: v1
    3. kind: Pod
    4. metadata:
    5. generateName: nginx-c5b885d45-
    6. labels:
    7. k8s.kuboard.cn/layer: web
    8. k8s.kuboard.cn/name: nginx
    9. pod-template-hash: c5b885d45
    10. name: nginx-c5b885d45-7zg9n
    11. namespace: learn
    12. ownerReferences:
    13. - apiVersion: apps/v1
    14. blockOwnerDeletion: true
    15. controller: true
    16. kind: ReplicaSet
    17. name: nginx-c5b885d45
    18. uid: 12e203ec-b4a4-4ff6-b477-3a309959d681
    19. resourceVersion: '46722755'
    20. spec:
    21. containers:
    22. - image: 'nginx:1.20.2-alpine'
    23. imagePullPolicy: IfNotPresent
    24. name: nginx
    25. ports:
    26. - containerPort: 80
    27. protocol: TCP
    28. resources: {}
    29. terminationMessagePath: /dev/termination-log
    30. terminationMessagePolicy: File
    31. volumeMounts:
    32. - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
    33. name: default-token-54sbw
    34. readOnly: true
    35. dnsPolicy: ClusterFirst
    36. enableServiceLinks: true
    37. imagePullSecrets:
    38. - name: local-registry
    39. nodeName: 172.20.130.3
    40. priority: 0
    41. restartPolicy: Always
    42. schedulerName: default-scheduler
    43. securityContext: {}
    44. serviceAccount: default
    45. serviceAccountName: default
    46. terminationGracePeriodSeconds: 30
    47. tolerations:
    48. - effect: NoExecute
    49. key: node.kubernetes.io/not-ready
    50. operator: Exists
    51. tolerationSeconds: 300
    52. - effect: NoExecute
    53. key: node.kubernetes.io/unreachable
    54. operator: Exists
    55. tolerationSeconds: 300
    56. volumes:
    57. - name: default-token-54sbw
    58. secret:
    59. defaultMode: 420
    60. secretName: default-token-54sbw
    61. status:
    62. conditions:
    63. - lastProbeTime: null
    64. lastTransitionTime: '2022-03-24T09:03:46Z'
    65. status: 'True'
    66. type: Initialized
    67. - lastProbeTime: null
    68. lastTransitionTime: '2022-03-24T09:04:04Z'
    69. status: 'True'
    70. type: Ready
    71. - lastProbeTime: null
    72. lastTransitionTime: '2022-03-24T09:04:04Z'
    73. status: 'True'
    74. type: ContainersReady
    75. - lastProbeTime: null
    76. lastTransitionTime: '2022-03-24T09:03:44Z'
    77. status: 'True'
    78. type: PodScheduled
    79. containerStatuses:
    80. - containerID: >-
    81. docker://6667fd8e673e042792b40fb4a7708a2b8010911db7a9415c8e50bea1b3baa404
    82. image: 'nginx:1.20-alpine'
    83. imageID: >-
    84. docker-pullable://nginx@sha256:74694f2de64c44787a81f0554aa45b281e468c0c58b8665fafceda624d31e556
    85. lastState: {}
    86. name: nginx
    87. ready: true
    88. restartCount: 0
    89. started: true
    90. state:
    91. running:
    92. startedAt: '2022-03-24T09:04:03Z'
    93. hostIP: 172.20.130.3
    94. phase: Running
    95. podIP: 10.243.7.151
    96. podIPs:
    97. - ip: 10.243.7.151
    98. qosClass: BestEffort
    99. startTime: '2022-03-24T09:03:46Z'