pod is not showing in ready state

9/21/2015

I am trying to configure php phabricator example from kubernetes but after creating the replication controller. POD is not showing in ready state ever. It shows in below state:

NAME                           READY     STATUS             RESTARTS   AGE
phabricator-controller-z0nk3   0/1       CrashLoopBackOff   5          2m

Below is the controller yaml:

{
  "kind": "ReplicationController",
  "apiVersion": "v1",
  "metadata": {
    "name": "phabricator-controller",
    "labels": {
      "name": "phabricator"
    }
  },
  "spec": {
    "replicas": 1,
    "selector": {
      "name": "phabricator"
    },
    "template": {
      "metadata": {
        "labels": {
          "name": "phabricator"
        }
      },
      "spec": {
        "containers": [
          {
            "name": "phabricator",
            "image": "fgrzadkowski/example-php-phabricator",
            "ports": [
              {
                "name": "http-server",
                "containerPort": 80
              }
            ]
          }
        ]
      }
    }
  }
}

Can someone please suggest me how to fix this?

-- ramesh.mimit
google-container-registry
google-kubernetes-engine
kubernetes

1 Answer

9/28/2015

This Pod is crash-looping. You can tell because the number of restarts is greater than zero.

kubectl describe pods <pod-name>

Should give further details to help debug. As will

kubectl logs <pod-name>
-- brendan
Source: StackOverflow