Guest User

Untitled

a guest
Aug 31st, 2018
910
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.63 KB | None | 0 0
  1. ubuntu@ubuntu-HP-Pavilion-15-Notebook-PC:~$ sudo kubeadm init
  2. [init] using Kubernetes version: v1.11.2
  3. [preflight] running pre-flight checks
  4. I0831 21:39:01.864813 17729 kernel_validator.go:81] Validating kernel version
  5. I0831 21:39:01.864999 17729 kernel_validator.go:96] Validating kernel config
  6. [preflight/images] Pulling images required for setting up a Kubernetes cluster
  7. [preflight/images] This might take a minute or two, depending on the speed of your internet connection
  8. [preflight/images] You can also perform this action in beforehand using 'kubeadm config images pull'
  9. [kubelet] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
  10. [kubelet] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
  11. [preflight] Activating the kubelet service
  12. [certificates] Generated ca certificate and key.
  13. [certificates] Generated apiserver certificate and key.
  14. [certificates] apiserver serving cert is signed for DNS names [ubuntu-hp-pavilion-15-notebook-pc kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs [10.96.0.1 192.168.8.100]
  15. [certificates] Generated apiserver-kubelet-client certificate and key.
  16. [certificates] Generated sa key and public key.
  17. [certificates] Generated front-proxy-ca certificate and key.
  18. [certificates] Generated front-proxy-client certificate and key.
  19. [certificates] Generated etcd/ca certificate and key.
  20. [certificates] Generated etcd/server certificate and key.
  21. [certificates] etcd/server serving cert is signed for DNS names [ubuntu-hp-pavilion-15-notebook-pc localhost] and IPs [127.0.0.1 ::1]
  22. [certificates] Generated etcd/peer certificate and key.
  23. [certificates] etcd/peer serving cert is signed for DNS names [ubuntu-hp-pavilion-15-notebook-pc localhost] and IPs [192.168.8.100 127.0.0.1 ::1]
  24. [certificates] Generated etcd/healthcheck-client certificate and key.
  25. [certificates] Generated apiserver-etcd-client certificate and key.
  26. [certificates] valid certificates and keys now exist in "/etc/kubernetes/pki"
  27. [kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/admin.conf"
  28. [kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/kubelet.conf"
  29. [kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/controller-manager.conf"
  30. [kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/scheduler.conf"
  31. [controlplane] wrote Static Pod manifest for component kube-apiserver to "/etc/kubernetes/manifests/kube-apiserver.yaml"
  32. [controlplane] wrote Static Pod manifest for component kube-controller-manager to "/etc/kubernetes/manifests/kube-controller-manager.yaml"
  33. [controlplane] wrote Static Pod manifest for component kube-scheduler to "/etc/kubernetes/manifests/kube-scheduler.yaml"
  34. [etcd] Wrote Static Pod manifest for a local etcd instance to "/etc/kubernetes/manifests/etcd.yaml"
  35. [init] waiting for the kubelet to boot up the control plane as Static Pods from directory "/etc/kubernetes/manifests"
  36. [init] this might take a minute or longer if the control plane images have to be pulled
  37. [kubelet-check] It seems like the kubelet isn't running or healthy.
  38. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: dial tcp 127.0.0.1:10248: connect: connection refused.
  39. [kubelet-check] It seems like the kubelet isn't running or healthy.
  40. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: dial tcp 127.0.0.1:10248: connect: connection refused.
  41. [kubelet-check] It seems like the kubelet isn't running or healthy.
  42. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: dial tcp 127.0.0.1:10248: connect: connection refused.
  43. [kubelet-check] It seems like the kubelet isn't running or healthy.
  44. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: dial tcp 127.0.0.1:10248: connect: connection refused.
  45. [kubelet-check] It seems like the kubelet isn't running or healthy.
  46. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: dial tcp 127.0.0.1:10248: connect: connection refused.
  47.  
  48. Unfortunately, an error has occurred:
  49. timed out waiting for the condition
  50.  
  51. This error is likely caused by:
  52. - The kubelet is not running
  53. - The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)
  54. - No internet connection is available so the kubelet cannot pull or find the following control plane images:
  55. - k8s.gcr.io/kube-apiserver-amd64:v1.11.2
  56. - k8s.gcr.io/kube-controller-manager-amd64:v1.11.2
  57. - k8s.gcr.io/kube-scheduler-amd64:v1.11.2
  58. - k8s.gcr.io/etcd-amd64:3.2.18
  59. - You can check or miligate this in beforehand with "kubeadm config images pull" to make sure the images
  60. are downloaded locally and cached.
  61.  
  62. If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:
  63. - 'systemctl status kubelet'
  64. - 'journalctl -xeu kubelet'
  65.  
  66. Additionally, a control plane component may have crashed or exited when started by the container runtime.
  67. To troubleshoot, list all containers using your preferred container runtimes CLI, e.g. docker.
  68. Here is one example how you may list all Kubernetes containers running in docker:
  69. - 'docker ps -a | grep kube | grep -v pause'
  70. Once you have found the failing container, you can inspect its logs with:
  71. - 'docker logs CONTAINERID'
  72. couldn't initialize a Kubernetes cluster
Add Comment
Please, Sign In to add comment