Skip to content

kube-dns pod forever pending on Amazon EC2 #7359

Closed
@madis

Description

After setting up clean cluster on Amazon with MINION_SIZE="t2.small" NUM_MINIONS=3 ./cluster/kube-up.sh --api-version="v1beta3" the kube-dns pod remains in pending state and its containers in waiting state.

I'm willing to provide more information or help in debugging, all in the name of getting the kubernetes working for me and others.

get pods output:

current-context: "aws_kubernetes"
Running: ./cluster/../cluster/aws/../../cluster/../_output/dockerized/bin/darwin/amd64/kubectl get pods -l name=kube-dns -o yaml
apiVersion: v1beta3
items:
- apiVersion: v1beta3
  kind: Pod
  metadata:
    annotations:
      kubernetes.io/created-by: '{"kind":"ReplicationController","namespace":"default","name":"kube-dns","uid":"dae03b7a-ece1-11e4-99b7-068354b7f154","apiVersion":"v1beta3","resourceVersion":"44"}'
    creationTimestamp: 2015-04-27T13:32:31Z
    generateName: kube-dns-
    labels:
      k8s-app: kube-dns
      kubernetes.io/cluster-service: "true"
      name: kube-dns
    name: kube-dns-u15f0
    namespace: default
    resourceVersion: "1763"
    selfLink: /api/v1beta1/pods/kube-dns-u15f0?namespace=default
    uid: daec5ef6-ece1-11e4-99b7-068354b7f154
  spec:
    containers:
    - args:
      - -listen-client-urls=http://0.0.0.0:2379,http://0.0.0.0:4001
      - -initial-cluster-token=skydns-etcd
      - -advertise-client-urls=http://127.0.0.1:4001
      capabilities: {}
      image: quay.io/coreos/etcd:v2.0.3
      imagePullPolicy: IfNotPresent
      name: etcd
      resources: {}
      terminationMessagePath: /dev/termination-log
    - args:
      - -domain=kubernetes.local
      - -kubecfg_file=/etc/dns_token/kubeconfig
      capabilities: {}
      image: gcr.io/google_containers/kube2sky:1.2
      imagePullPolicy: IfNotPresent
      name: kube2sky
      resources: {}
      terminationMessagePath: /dev/termination-log
      volumeMounts:
      - mountPath: /etc/dns_token
        name: dns-token
        readOnly: true
    - args:
      - -machines=http://localhost:4001
      - -addr=0.0.0.0:53
      - -domain=kubernetes.local.
      capabilities: {}
      image: gcr.io/google_containers/skydns:2015-03-11-001
      imagePullPolicy: IfNotPresent
      name: skydns
      ports:
      - containerPort: 53
        name: dns
        protocol: UDP
      resources: {}
      terminationMessagePath: /dev/termination-log
    dnsPolicy: Default
    host: ip-172-20-0-11.us-west-2.compute.internal
    restartPolicy: Always
    volumes:
    - awsElasticBlockStore: null
      emptyDir: null
      gcePersistentDisk: null
      gitRepo: null
      glusterfs: null
      hostPath: null
      iscsi: null
      name: dns-token
      nfs: null
      secret:
        secretName: token-system-dns
  status:
    Condition:
    - status: "False"
      type: Ready
    containerStatuses:
    - image: quay.io/coreos/etcd:v2.0.3
      imageID: ""
      lastState: {}
      name: etcd
      ready: false
      restartCount: 0
      state:
        waiting:
          reason: 'Image: quay.io/coreos/etcd:v2.0.3 is not ready on the node'
    - image: gcr.io/google_containers/kube2sky:1.2
      imageID: ""
      lastState: {}
      name: kube2sky
      ready: false
      restartCount: 0
      state:
        waiting:
          reason: 'Image: gcr.io/google_containers/kube2sky:1.2 is not ready on the
            node'
    - image: gcr.io/google_containers/skydns:2015-03-11-001
      imageID: ""
      lastState: {}
      name: skydns
      ready: false
      restartCount: 0
      state:
        waiting:
          reason: 'Image: gcr.io/google_containers/skydns:2015-03-11-001 is not ready
            on the node'
    hostIP: 172.20.0.11
    phase: Pending
kind: List
metadata: {}

Version info:

current-context: "aws_kubernetes"
Running: ./cluster/../cluster/aws/../../cluster/../_output/dockerized/bin/darwin/amd64/kubectl version
Client Version: version.Info{Major:"0", Minor:"15+", GitVersion:"v0.15.0-736-g8f30a210862802", GitCommit:"8f30a210862802fd5a027156c5a359873cefe5a3", GitTreeState:"clean"}
Server Version: version.Info{Major:"0", Minor:"15+", GitVersion:"v0.15.0-741-g19570418a59c1e", GitCommit:"19570418a59c1ecd24bd90b709274cf271d56869", GitTreeState:"clean"}

Metadata

Assignees

No one assigned

    Labels

    sig/nodeCategorizes an issue or PR as relevant to SIG Node.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions