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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.