Cannot remove recycler pod.

Solution Verified - Updated -

Issue

  • Have an unwanted pod running in openshift-infra namespace that has no replication controller, deployment configuration associated with it. The oc delete gets pod deleted but comes right back. An oc describe on the pod gives the output below.
oc describe pod recycler-for-logs
Name:           recycler-for-logs
Namespace:      openshift-infra
Security Policy:    hostmount-anyuid
Node:           node.example.com/10.0.0.00
Start Time:     Fri, 14 Sep 2018 11:08:47 -0400
Labels:         <none>
Annotations:        openshift.io/scc=hostmount-anyuid
Status:         Pending
IP:         10.0.0.00
Controllers:        <none>
Containers:
  pv-recycler:
    Container ID:
    Image:      openshift3/ose-recycler:v3.6.173.0.21
    Image ID:
    Port:
    Command:
      /usr/bin/openshift-recycle
    Args:
      /scrub
    State:      Waiting
      Reason:       ImagePullBackOff
    Ready:      False
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /scrub from vol (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from pv-recycler-controller-token-vvjk5 (ro)
Conditions:
  Type      Status
  Initialized   True
  Ready     False
  PodScheduled  True
Volumes:
  vol:
    Type:   NFS (an NFS mount that lasts the lifetime of a pod)
    Server: nfs.example.com
    Path:   /nfs/shared-storage
    ReadOnly:   false
  pv-recycler-controller-token-vvjk5:
    Type:   Secret (a volume populated by a Secret)
    SecretName: pv-recycler-controller-token-vvjk5
    Optional:   false
QoS Class:  BestEffort
Node-Selectors: <none>
Tolerations:    <none>
Events:
  FirstSeen LastSeen    Count   From                    SubObjectPath           Type        Reason      Message
  --------- --------    -----   ----                    -------------           --------    ------      -------
  4m        4m      1   default-scheduler                           Normal      Scheduled   Successfully assigned recycler-for-logs to node.example.com
  4m        3m      4   kubelet, node.example.com   spec.containers{pv-recycler}    Normal      Pulling     pulling image "openshift3/ose-recycler:v3.6.173.0.21"
  4m        3m      4   kubelet, node.example.com   spec.containers{pv-recycler}    Warning     Failed      Failed to pull image "openshift3/ose-recycler:v3.6.173.0.21": rpc error: code = 2 desc = unauthorized: authentication required
  4m        2m      10  kubelet, node.example.com                   Warning     FailedSync  Error syncing pod
  4m        2m      7   kubelet, node.example.com   spec.containers{pv-recycler}    Normal      BackOff     Back-off pulling image "openshift3/ose-recycler:v3.6.173.0.21"

Environment

  • OpenShift Container Platform 3.6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content