'ERROR: failed to create cluster while running kind create cluster

When I run kind create cluster in Ubuntu 20.04 I get this error:

Creating cluster "kind" ...
 ✓ Ensuring node image (kindest/node:v1.21.1) 🖼 
 ✓ Preparing nodes 📦  
 ✓ Writing configuration 📜 
 ✗ Starting control-plane 🕹️ k
ERROR: failed to create cluster: failed to init node with kubeadm: command "docker exec --privileged kind-control-plane kubeadm init --skip-phases=preflight --config=/kind/kubeadm.conf --skip-token-print --v=6" failed with error: exit status 1

Complete logs: https://paste.debian.net/1207493/

What can be the reason for this? I cannot find any relevant solution in the docs or existing github issues.



Solution 1:[1]

I had the same problem. After adjusting the docker memory allocation, the cluster was created successfully

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 York