cattle-system cattle-node-agent Back-off restarting failed container

想用离线仓库Harbor 无法使用命令


环境是:
[rancher@rancher1 ~]$ docker -v
Docker version 18.09.6, build 481bc77156

Rancher 版本2.4.5

[rancher@rancher1 ~]$ kubectl describe pod cattle-cluster-agent-6578b49d99-z4nxn -ncattle-system
Name:         cattle-cluster-agent-6578b49d99-z4nxn
Namespace:    cattle-system
Priority:     0
Node:         192.168.0.20/192.168.0.20
Start Time:   Tue, 07 Jul 2020 16:32:12 +0800
Labels:       app=cattle-cluster-agent
              pod-template-hash=6578b49d99
Annotations:  cni.projectcalico.org/podIP: 10.42.2.14/32
              cni.projectcalico.org/podIPs: 10.42.2.14/32
Status:       Running
IP:           10.42.2.14
IPs:
  IP:           10.42.2.14
Controlled By:  ReplicaSet/cattle-cluster-agent-6578b49d99
Containers:
  cluster-register:
    Container ID:   docker://53a9d5260660d06781b168d60958b7bcadcf1814b7a5f30b0e92e02a82435d89
    Image:          192.168.0.17:8080/rancher/rancher-agent:v2.4.5
    Image ID:       docker-pullable://192.168.0.17:8080/rancher/rancher-agent@sha256:aca493b61ebcc9ea8c520bbc92f44da32fa952aeb182194b52e3c4a2632d6cdb
    Port:           <none>
    Host Port:      <none>
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Error
      Exit Code:    1
      Started:      Fri, 10 Jul 2020 13:00:49 +0800
      Finished:     Fri, 10 Jul 2020 13:00:51 +0800
    Ready:          False
    Restart Count:  307
    Environment:
      CATTLE_FEATURES:     dashboard=true
      CATTLE_SERVER:       https://rancher.com
      CATTLE_CA_CHECKSUM:  75b6c85b27b2cb7e296c9c9c8c74d95932a8b35c9051c813627ea9c0e7f80269
      CATTLE_CLUSTER:      true
      CATTLE_K8S_MANAGED:  true
    Mounts:
      /cattle-credentials from cattle-credentials (ro)
      /var/run/secrets/kubernetes.io/serviceaccount from cattle-token-5nm2k (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             False 
  ContainersReady   False 
  PodScheduled      True 
Volumes:
  cattle-credentials:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  cattle-credentials-0b59f36
    Optional:    false
  cattle-token-5nm2k:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  cattle-token-5nm2k
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     
Events:
  Type     Reason   Age                     From                   Message
  ----     ------   ----                    ----                   -------
  Warning  BackOff  4m42s (x6555 over 23h)  kubelet, 192.168.0.20  Back-off restarting failed container

/uploads/files_user2512/question/5f07f71643329623862.jpg

/uploads/files_user2512/question/5f07f7f13bc34206053.png
/uploads/files_user2512/question/5f07f7f15b0d7388411.jpg

/uploads/files_user2512/question/5f07fa76507f2188215.jpg

已邀请:

要回复问题请先登录注册