Advertisement
squigley

Untitled

May 8th, 2021
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. $ sudo kubeadm init --control-plane-endpoint cluster-endpoint --pod-network-cidr 192.168.15.0/24 --upload-certs
  2. [init] Using Kubernetes version: v1.21.0
  3. [preflight] Running pre-flight checks
  4. [preflight] Pulling images required for setting up a Kubernetes cluster
  5. [preflight] This might take a minute or two, depending on the speed of your internet connection
  6. [preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
  7. [certs] Using certificateDir folder "/etc/kubernetes/pki"
  8. [certs] Generating "ca" certificate and key
  9. [certs] Generating "apiserver" certificate and key
  10. [certs] apiserver serving cert is signed for DNS names [cluster-endpoint kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local smic-2] and IPs [10.96.0.1 192.168.13.244]
  11. [certs] Generating "apiserver-kubelet-client" certificate and key
  12. [certs] Generating "front-proxy-ca" certificate and key
  13. [certs] Generating "front-proxy-client" certificate and key
  14. [certs] Generating "etcd/ca" certificate and key
  15. [certs] Generating "etcd/server" certificate and key
  16. [certs] etcd/server serving cert is signed for DNS names [localhost smic-2] and IPs [192.168.13.244 127.0.0.1 ::1]
  17. [certs] Generating "etcd/peer" certificate and key
  18. [certs] etcd/peer serving cert is signed for DNS names [localhost smic-2] and IPs [192.168.13.244 127.0.0.1 ::1]
  19. [certs] Generating "etcd/healthcheck-client" certificate and key
  20. [certs] Generating "apiserver-etcd-client" certificate and key
  21. [certs] Generating "sa" key and public key
  22. [kubeconfig] Using kubeconfig folder "/etc/kubernetes"
  23. [kubeconfig] Writing "admin.conf" kubeconfig file
  24. [kubeconfig] Writing "kubelet.conf" kubeconfig file
  25. [kubeconfig] Writing "controller-manager.conf" kubeconfig file
  26. [kubeconfig] Writing "scheduler.conf" kubeconfig file
  27. [kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
  28. [kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
  29. [kubelet-start] Starting the kubelet
  30. [control-plane] Using manifest folder "/etc/kubernetes/manifests"
  31. [control-plane] Creating static Pod manifest for "kube-apiserver"
  32. [control-plane] Creating static Pod manifest for "kube-controller-manager"
  33. [control-plane] Creating static Pod manifest for "kube-scheduler"
  34. [etcd] Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests"
  35. [wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s
  36. [kubelet-check] Initial timeout of 40s passed.
  37.  
  38. Unfortunately, an error has occurred:
  39. timed out waiting for the condition
  40.  
  41. This error is likely caused by:
  42. - The kubelet is not running
  43. - The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)
  44.  
  45. If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:
  46. - 'systemctl status kubelet'
  47. - 'journalctl -xeu kubelet'
  48.  
  49. Additionally, a control plane component may have crashed or exited when started by the container runtime.
  50. To troubleshoot, list all containers using your preferred container runtimes CLI.
  51.  
  52. Here is one example how you may list all Kubernetes containers running in docker:
  53. - 'docker ps -a | grep kube | grep -v pause'
  54. Once you have found the failing container, you can inspect its logs with:
  55. - 'docker logs CONTAINERID'
  56.  
  57. error execution phase wait-control-plane: couldn't initialize a Kubernetes cluster
  58. To see the stack trace of this error execute with --v=5 or higher
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement