pod 创建失败

来源:10-2 EmptyDir 编排讲解

慕粉13598913215

2023-07-18

Events:
Type Reason Age From Message


Normal Pulled 2m28s kubelet Successfully pulled image “busybox” in 1.981001792s (1.981013162s including waiting)
Normal Pulled 2m5s kubelet Successfully pulled image “busybox” in 1.952741178s (1.952792508s including waiting)
Normal Pulled 88s kubelet Successfully pulled image “busybox” in 2.066996167s (2.067003288s including waiting)
Normal Pulling 39s (x4 over 2m30s) kubelet Pulling image "busybox"
Normal Created 37s (x4 over 2m28s) kubelet Created container download
Normal Started 37s (x4 over 2m28s) kubelet Started container download
Normal Pulled 37s kubelet Successfully pulled image “busybox” in 2.08355056s (2.083559484s including waiting)
Warning BackOff 6s (x5 over 104s) kubelet Back-off restarting failed container download in pod busybox_test(31c3b59b-c40c-4963-927a-bdd3322c93f4)

busybox 0/1 Init:CrashLoopBackOff 4 (90s ago) 4m54s 10.244.1.40 kube-node01

写回答

3回答

蜗牛没有窝

2023-08-24

我也碰到这样的情况,也许当时老师那个时间段是可以的,现在不可以了,wget也许要加header才可以,

把https://www.baidu.com/ 改为http://www.baidu.com/   就可以了,

或者用image:nginx 的curl 访问https://www.baidu.com/

https://img.mukewang.com/szimg/64e6c40b0916c44702920179.jpg


0
0

蜗牛没有窝

2023-08-24

我也碰到这样的情况,可能老师那个时间是可以的,现在用wget https百度就不可以,可能要加header这些才能下载页面,

改为http就可以了

:
  : k22
  :
    - : download
      : busybox
      :
        - wget
        - -O
        - /workdir/index.html
        - http://www.baidu.com


或者用image:nginx  ,  curl https 也行


:
  : k22
  :
    - : download
      : nginx
      :
        - curl
        - -o
        - /workdir/index.html
        - https://www.baidu.com
      :
        - : workdir
          : /workdir




0
0

暮闲

2023-07-19

同学好 从参数来看是 是initContainer中busybox报错 方便贴图看一下 busybox的command和args参数吗?

0
0

Kubernetes系统精讲 Go语言实战K8S集群可视化

核心知识+高阶应用+原理剖析+二次开发 全方位打通K8S生产实践

399 学习 · 265 问题

查看课程