Why kubectl get pods displays the following error "API error (500): No command specified" ?

Solution Unverified - Updated -

Issue

  • kubernetes API error (500): No command specified message is noticed while executing the command kubectl get pods. The pod never gets scheduled
[root@XXX ~]# kubectl get pod
POD                   IP           CONTAINER(S)   IMAGE(S)   HOST                              LABELS                    STATUS    CREATED   MESSAGE
db-controller-q7h3b   10.20.79.5                             X.X.X.X/X.X.X.X                   name=db,selectorname=db   Pending   7 days    db             dbforweb                                                               Waiting             API error (500): No command specified

Environment

  • Red Hat Enterprise Linux 7.1
  • kubernetes-master-0.17.1-4.el7.x86_64

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