当前位置:   article > 正文

如何定位该pod是由谁(deployement)创建_查看pod由哪个文件创建

查看pod由哪个文件创建

1.deployement是部署任务,可以部署pod,job等,而当我们删除容器后会自动拉起一个pod,就是deployment创建的任务来完成的。

  1. root@ubuntu:/home/ubuntu/Desktop# kubectl get pods
  2. NAME READY STATUS RESTARTS AGE
  3. nginx-deployment-6595874d85-xmbv8 1/1 Running 0 3d
  4. root@ubuntu:/home/ubuntu/Desktop# kubectl describe pods nginx-deployment-6595874d85-xmbv8
  5. Name: nginx-deployment-6595874d85-xmbv8
  6. Namespace: default
  7. Priority: 0
  8. Node: node1/192.168.20.58
  9. Start Time: Fri, 20 May 2022 00:53:59 -0700
  10. Labels: app=nginx
  11. pod-template-hash=6595874d85
  12. Annotations: <none>
  13. Status: Running
  14. IP: 10.244.1.16
  15. IPs:
  16. IP: 10.244.1.16
  17. Controlled By: ReplicaSet/nginx-deployment-6595874d85
  18. Containers:
  19. nginx:
  20. Container ID: containerd://222162022319cedb2b7d84edc80eccd9dccc2071689a06cc66686fff81d167bc
  21. Image: nginx:1.14.2
  22. Image ID: docker.io/library/nginx@sha256:f7988fb6c02e0ce69257d9bd9cf37ae20a60f1df7563c3a2a6abe24160306b8d
  23. Port: 80/TCP
  24. Host Port: 0/TCP
  25. State: Running
  26. Started: Sun, 22 May 2022 23:59:13 -0700
  27. Ready: True
  28. Restart Count: 0
  29. Environment: <none>
  30. Mounts:
  31. /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-pxp9t (ro)
  32. Conditions:
  33. Type Status
  34. Initialized True
  35. Ready True
  36. ContainersReady True
  37. PodScheduled True
  38. Volumes:
  39. kube-api-access-pxp9t:
  40. Type: Projected (a volume that contains injected data from multiple sources)
  41. TokenExpirationSeconds: 3607
  42. ConfigMapName: kube-root-ca.crt
  43. ConfigMapOptional: <nil>
  44. DownwardAPI: true
  45. QoS Class: BestEffort
  46. Node-Selectors: <none>
  47. Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
  48. node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
  49. Events: <none>
  50. root@ubuntu:/home/ubuntu/Desktop# kubectl get deployment
  51. NAME READY UP-TO-DATE AVAILABLE AGE
  52. nginx-deployment 1/1 1 1 3d

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/162077
推荐阅读
相关标签
  

闽ICP备14008679号