<p>I am trying to create a deployment on a K8s cluster with one master and two worker nodes. The cluster is running on 3 AWS EC2 instances.  I have been using this environment for quite sometime to play with Kubernetes.  Three days back, I have started to see all the pods status to change to <code>ContainerCreating</code> from <code>Running</code>.  Only the pods that are scheduled on master are shown as <code>Running</code>. The pods running on worker nodes are shown as <code>ContainerCreating</code>.  When I run <code>kubectl describe pod &lt;podname&gt;</code>, it shows in the event the following</p>

<pre><code> Events:
  Type     Reason                  Age   From                      Message
  ----     ------                  ----  ----                      -------
  Normal   Scheduled               34s   default-scheduler         Successfully assigned nginx-8586cf59-5h2dp to ip-172-31-20-57
  Normal   SuccessfulMountVolume   34s   kubelet, ip-172-31-20-57  MountVolume.SetUp succeeded for volume "default-token-wz7rs"
  Warning  FailedCreatePodSandBox  4s    kubelet, ip-172-31-20-57  Failed create pod sandbox.
  Normal   SandboxChanged          3s    kubelet, ip-172-31-20-57  Pod sandbox changed, it will be killed and re-created.
</code></pre>

<p>This error has been bugging me now. I tried to search around online on related error but I couldn't get anything specific. I did kubeadm reset on the cluster including master and worker nodes and brought up the cluster again. The nodes status shows ready. But I run into the same problem again whenever I try to create a deployment using the below command for example:</p>

<pre><code>kubectl run nginx --image=nginx --replicas=2
</code></pre>

<p>This can occur if you specify a limit or request on memory and use the wrong unit.</p>

<p>Below triggered the message:</p>

<pre><code>resources:
   limits:
      cpu: "300m"
     memory: "256m"
   requests:
     cpu: "50m"
     memory: "64m"
</code></pre>

<p>The correct line would be:</p>

<pre><code>resources:
   limits:
      cpu: "300m"
     memory: "256Mi"
   requests:
     cpu: "50m"
     memory: "64Mi"
</code></pre>
