Skip to content

Instantly share code, notes, and snippets.

@xstevens
Last active December 6, 2018 23:56
Show Gist options
  • Save xstevens/f43236505e7849d4079f8204c4a3f52b to your computer and use it in GitHub Desktop.
Save xstevens/f43236505e7849d4079f8204c4a3f52b to your computer and use it in GitHub Desktop.
KIND 0.1.0-alpha on macOS host (Docker for Mac) EOF error
$ docker version
Client: Docker Engine - Community
Version: 18.09.0
API version: 1.39
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:47:43 2018
OS/Arch: darwin/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.0
API version: 1.39 (minimum version 1.12)
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:55:00 2018
OS/Arch: linux/amd64
Experimental: true
$ kind version
0.1.0-alpha
$ kind create cluster --loglevel debug
Creating cluster 'kind-1' ...
DEBU[15:36:10] Running: /usr/local/bin/docker [docker inspect --type=image kindest/node:v1.12.2@sha256:6ac1dc1750fc0efd13d4e294115f9012a21282957e4380a5535bd32154193d4d]
INFO[15:36:10] Image: kindest/node:v1.12.2@sha256:6ac1dc1750fc0efd13d4e294115f9012a21282957e4380a5535bd32154193d4d present locally
✓ Ensuring node image (kindest/node:v1.12.2) 🖼
DEBU[15:36:10] Running: /usr/local/bin/docker [docker info --format '{{json .SecurityOptions}}']
DEBU[15:36:10] Running: /usr/local/bin/docker [docker run -d --privileged --security-opt seccomp=unconfined --tmpfs /tmp --tmpfs /run -v /lib/modules:/lib/modules:ro --hostname kind-1-control-plane --name kind-1-control-plane --label io.k8s.sigs.kind.cluster=1 --expose 59857 -p 59857:59857 --entrypoint=/usr/local/bin/entrypoint kindest/node:v1.12.2@sha256:6ac1dc1750fc0efd13d4e294115f9012a21282957e4380a5535bd32154193d4d /sbin/init]
✓ [kind-1-control-plane] Creating node container 📦
DEBU[15:36:11] Running: /usr/local/bin/docker [docker info --format '{{json .SecurityOptions}}']
DEBU[15:36:11] Running: /usr/local/bin/docker [docker exec --privileged kind-1-control-plane mount -o remount,ro /sys]
DEBU[15:36:11] Running: /usr/local/bin/docker [docker exec --privileged kind-1-control-plane mount --make-shared /]
DEBU[15:36:11] Running: /usr/local/bin/docker [docker exec --privileged kind-1-control-plane mount --make-shared /run]
DEBU[15:36:11] Running: /usr/local/bin/docker [docker exec --privileged kind-1-control-plane mount --make-shared /var/lib/docker]
✓ [kind-1-control-plane] Fixing mounts 🗻
DEBU[15:36:12] Running: /usr/local/bin/docker [docker kill -s SIGUSR1 kind-1-control-plane]
✓ [kind-1-control-plane] Starting systemd 🖥
DEBU[15:36:12] Running: /usr/local/bin/docker [docker exec --privileged -t kind-1-control-plane systemctl is-active docker]
DEBU[15:36:12] Running: /usr/local/bin/docker [docker exec --privileged -t kind-1-control-plane systemctl is-active docker]
DEBU[15:36:12] Running: /usr/local/bin/docker [docker exec --privileged -t kind-1-control-plane systemctl is-active docker]
DEBU[15:36:12] Running: /usr/local/bin/docker [docker exec --privileged -t kind-1-control-plane systemctl is-active docker]
DEBU[15:36:12] Running: /usr/local/bin/docker [docker exec --privileged kind-1-control-plane find /kind/images -name *.tar -exec docker load -i {} ;]
DEBU[15:36:25] Running: /usr/local/bin/docker [docker exec --privileged -t kind-1-control-plane cat /kind/version]
INFO[15:36:26] Using KubeadmConfig:or docker to be ready 🐋
apiServerCertSANs:
- localhost
apiServerExtraVolumes:
- hostPath: /etc/nsswitch.conf
mountPath: /etc/nsswitch.conf
name: nsswitch
pathType: FileOrCreate
writeable: false
apiVersion: kubeadm.k8s.io/v1alpha3
clusterName: kind-1
kind: ClusterConfiguration
kubernetesVersion: v1.12.2
---
apiEndpoint:
bindPort: 59857
apiVersion: kubeadm.k8s.io/v1alpha3
kind: InitConfiguration
DEBU[15:36:26] Running: /usr/local/bin/docker [docker cp /var/folders/ms/6hsm722x7cdfd0t5dvc3yyzm0000gn/T/620253971 kind-1-control-plane:/kind/kubeadm.conf]
✓ [kind-1-control-plane] Waiting for docker to be ready 🐋
DEBU[15:36:26] Running: /usr/local/bin/docker [docker exec --privileged kind-1-control-plane kubeadm init --ignore-preflight-errors=all --config=/kind/kubeadm.conf]
DEBU[15:36:53] Running: /usr/local/bin/docker [docker exec --privileged -t kind-1-control-plane cat /etc/kubernetes/admin.conf]
DEBU[15:36:53] Running: /usr/local/bin/docker [docker exec --privileged kind-1-control-plane /bin/sh -c kubectl apply --kubeconfig=/etc/kubernetes/admin.conf -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version --kubeconfig=/etc/kubernetes/admin.conf | base64 | tr -d '\n')"]
DEBU[15:36:55] Running: /usr/local/bin/docker [docker exec --privileged kind-1-control-plane kubectl --kubeconfig=/etc/kubernetes/admin.conf taint nodes --all node-role.kubernetes.io/master-]
DEBU[15:36:55] Running: /usr/local/bin/docker [docker exec --privileged -i kind-1-control-plane kubectl --kubeconfig=/etc/kubernetes/admin.conf apply -f -]
✓ [kind-1-control-plane] Starting Kubernetes (this may take a minute) ☸
Cluster creation complete. You can now use the cluster with:
export KUBECONFIG="$(kind get kubeconfig-path --name="1")"
kubectl cluster-info
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ef8b4e5ea462 kindest/node:v1.12.2 "/usr/local/bin/entr…" 10 minutes ago Up 10 minutes 0.0.0.0:59857->59857/tcp kind-1-control-plane
$ docker logs ef8b4e5ea462
2018/12/06 23:36:11 Waiting for SIGUSR1 ...
2018/12/06 23:36:12 Received SIGUSR1, execing to: /sbin/init [/sbin/init]
$ kubectl cluster-info
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
Unable to connect to the server: EOF
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.0", GitCommit:"ddf47ac13c1a9483ea035a79cd7c10005ff21a6d", GitTreeState:"clean", BuildDate:"2018-12-04T07:48:45Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"darwin/amd64"}
Unable to connect to the server: EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment