Issue 1:
I tried to set up kubernetes locally via Docker according to http://kubernetes.io/docs/getting-started-guides/docker/

I ran into the following problems:

kubedns was not running (only 2 of the three containers in the DNS pod were coming up)

Dashboard was not running

kubedns problem

The kubedns container in the kubedns pod wrote the following logs

...
I0719 08:24:17.689766 1 dns.go:172] Ignoring error while waiting for service default/kubernetes: serializer for text/html; charset=utf-8 doesn't exist. Sleeping 1s before retrying.
E0719 08:24:17.690289 1 reflector.go:216] pkg/dns/dns.go:155: Failed to list *api.Service: serializer for text/html; charset=utf-8 doesn't exist
E0719 08:24:18.370902 1 reflector.go:216] pkg/dns/dns.go:154: Failed to list *api.Endpoints: serializer for text/html; charset=utf-8 doesn't exist
I0719 08:24:18.692780 1 dns.go:172] Ignoring error while waiting for service default/kubernetes: serializer for text/html; charset=utf-8 doesn't exist. Sleeping 1s before retrying.
E0719 08:24:18.693100 1 reflector.go:216] pkg/dns/dns.go:155: Failed to list *api.Service: serializer for text/html; charset=utf-8 doesn't exist
I0719 08:24:19.369996 1 dns.go:439] Received DNS Request:kubernetes.default.svc.cluster.local., exact:false
I0719 08:24:19.370082 1 dns.go:539] records:[], retval:[], path:[local cluster svc default kubernetes]
I0719 08:24:19.370647 1 dns.go:439] Received DNS Request:kubernetes.default.svc.cluster.local., exact:false
I0719 08:24:19.370703 1 dns.go:539] records:[], retval:[], path:[local cluster svc default kubernetes]
E0719 08:24:19.469504 1 reflector.go:216] pkg/dns/dns.go:154: Failed to list *api.Endpoints: serializer for text/html; charset=utf-8 doesn't exist
E0719 08:24:19.876888 1 reflector.go:216] pkg/dns/dns.go:155: Failed to list *api.Service: serializer for text/html; charset=utf-8 doesn't exist
I0719 08:24:19.876947 1 dns.go:172] Ignoring error while waiting for service default/kubernetes: serializer for text/html; charset=utf-8 doesn't exist. Sleeping 1s before retrying.
E0719 08:24:20.569325 1 reflector.go:216] pkg/dns/dns.go:154: Failed to list *api.Endpoints: serializer for text/html; charset=utf-8 doesn't exist
E0719 08:24:21.170742 1 reflector.go:216] pkg/dns/dns.go:155: Failed to list *api.Service: serializer for text/html; charset=utf-8 doesn't exist
I0719 08:24:21.171316 1 dns.go:172] Ignoring error while waiting for service default/kubernetes: serializer for text/html; charset=utf-8 doesn't exist. Sleeping 1s before retrying.
F0719 08:24:21.473908 1 server.go:127] Received signal: terminated

and it was repeatedly restarted (health check also did not work!)

Dashboard problem

The dashboard was restarted over and over again with the following log:

Starting HTTP server on port 9090
Creating API server client for http://localhost:8080
Error while initializing connection to Kubernetes apiserver. This most likely means that the cluster is misconfigured (e.g., it has invalid apiserver certificates or service accounts configuration) or the --apiserver-host param points to a server that does not exist. Reason: Get http://localhost:8080/version: dial tcp [::1]:8080: getsockopt: connection refused

Work around

Just drop the two lines

--cluster-dns=10.0.0.10 \
--cluster-domain=cluster.local \

from the k8s Docker container start. Then everything starts up nicely!

Working start up script

#!/bin/bash

set -eu

: ${ARCH:="amd64"}
: ${K8S_VERSION:="v1.3.2"}

exec docker run -d \
--volume=/:/rootfs:ro \
--volume=/sys:/sys:rw \
--volume=/var/lib/docker/:/var/lib/docker:rw \
--volume=/var/lib/kubelet/:/var/lib/kubelet:rw \
--volume=/var/run:/var/run:rw \
--net=host \
--pid=host \
--privileged \
gcr.io/google_containers/hyperkube-${ARCH}:${K8S_VERSION} \
/hyperkube kubelet \
--containerized \
--hostname-override=127.0.0.1 \
--api-servers=http://localhost:8080 \
--config=/etc/kubernetes/manifests \
--allow-privileged --v=2

Issue 2:
http://kubekins.dls.corp.google.com:8081/job/kubernetes-pull-build-test-e2e-gce/28687/

In the e2e test, the last three tests failed:

Kubernetes e2e suite.Downward API volume should update labels on modification [Conformance]

Kubernetes e2e suite.Services should be able to change the type and ports of a service

Kubernetes e2e suite.Networking should provide Internet connection for containers [Conformance]

All these tests failed because at the end of the e2e test, the node e2e-gce-builder-2-2-minion-fz40 became not ready.

From kubelet.log, we can see that kubelet can't detect docker daemon suddenly:

E0216 01:08:25.357402 3938 kubelet.go:2617] Container runtime sanity check failed: docker: failed to get docker version: Get http://unix.sock/version: dial unix /var/run/docker.sock: no such file or directory

Here is supervisord log:

2016-02-16 01:00:38,864 CRIT Supervisor running as root (no user in config file)
2016-02-16 01:00:38,930 INFO RPC interface 'supervisor' initialized
2016-02-16 01:00:38,931 WARN cElementTree not installed, using slower XML parser for XML-RPC
2016-02-16 01:00:38,931 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2016-02-16 01:00:38,932 INFO daemonizing the supervisord process
2016-02-16 01:00:38,932 INFO supervisord started with pid 2340
2016-02-16 01:02:16,760 WARN received SIGTERM indicating exit request
2016-02-16 01:02:21,811 CRIT Supervisor running as root (no user in config file)
2016-02-16 01:02:21,811 WARN Included extra file "/etc/supervisor/conf.d/kubelet.conf" during parsing
2016-02-16 01:02:21,811 WARN Included extra file "/etc/supervisor/conf.d/docker.conf" during parsing
2016-02-16 01:02:21,831 INFO RPC interface 'supervisor' initialized
2016-02-16 01:02:21,831 WARN cElementTree not installed, using slower XML parser for XML-RPC
2016-02-16 01:02:21,831 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2016-02-16 01:02:21,832 INFO daemonizing the supervisord process
2016-02-16 01:02:21,833 INFO supervisord started with pid 3855
2016-02-16 01:02:22,835 INFO spawned: 'kubelet' with pid 3869
2016-02-16 01:02:22,837 INFO spawned: 'docker' with pid 3870
2016-02-16 01:02:23,894 INFO success: kubelet entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-02-16 01:02:23,894 INFO success: docker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-02-16 01:08:16,756 INFO exited: docker (exit status 2; expected)
2016-02-16 01:08:17,758 INFO spawned: 'docker' with pid 21508
2016-02-16 01:08:18,783 INFO success: docker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-02-16 01:09:17,820 INFO exited: docker (exit status 2; expected)
2016-02-16 01:09:18,822 INFO spawned: 'docker' with pid 21697
2016-02-16 01:09:19,847 INFO success: docker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-02-16 01:10:38,852 INFO exited: docker (exit status 2; expected)
2016-02-16 01:10:39,854 INFO spawned: 'docker' with pid 21953
2016-02-16 01:10:40,884 INFO success: docker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-02-16 01:11:59,885 INFO exited: docker (exit status 2; expected)
2016-02-16 01:12:00,887 INFO spawned: 'docker' with pid 22152
2016-02-16 01:12:01,916 INFO success: docker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-02-16 01:12:54,256 INFO exited: kubelet (exit status 2; expected)
2016-02-16 01:12:55,258 INFO spawned: 'kubelet' with pid 22277
2016-02-16 01:12:56,301 INFO success: kubelet entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-02-16 01:13:20,921 INFO exited: docker (exit status 2; expected)
2016-02-16 01:13:21,923 INFO spawned: 'docker' with pid 22344
2016-02-16 01:13:22,951 INFO success: docker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-02-16 01:13:55,308 INFO exited: kubelet (exit status 2; expected)
2016-02-16 01:13:56,310 INFO spawned: 'kubelet' with pid 22399
2016-02-16 01:13:57,355 INFO success: kubelet entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

@kubernetes/sig-node