# Kubectl deployment ubuntu --image=ubuntu does work

**URL:** <https://discuss.kubernetes.io/t/kubectl-deployment-ubuntu-image-ubuntu-does-work/15585>\
**Category:** General Discussions\
**Created:** [April 19, 2021, 4:02am UTC](https://discuss.kubernetes.io/t/kubectl-deployment-ubuntu-image-ubuntu-does-work/15585 "2021-04-19T04:02:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrunoHigino](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/brunohigino/32/6974_2.png) [@BrunoHigino](https://discuss.kubernetes.io/u/BrunoHigino)\
**Post date:** [April 19, 2021, 4:02am UTC](https://discuss.kubernetes.io/t/kubectl-deployment-ubuntu-image-ubuntu-does-work/15585/1 "2021-04-19T04:02:44Z")

</div>

Why this happend… I not found nothing about this error on internet… pls help me =]

All nodes up  
If I create a nginx deployment works (kubectl create deployment nginx --image=nginx), but when I deploy a ubuntu its not…

 ![image](https://us1.discourse-cdn.com/flex016/uploads/kubernetes/original/2X/6/6bc10ad11f2c396db9f3bb636be2a5cac7460a9d.png)

---

<div class="post-metadata">

**Author:** ![tej-singh-rana](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/tej-singh-rana/32/5921_2.png) [@tej-singh-rana](https://discuss.kubernetes.io/u/tej-singh-rana)\
**Post date:** [April 21, 2021, 5:38am UTC](https://discuss.kubernetes.io/t/kubectl-deployment-ubuntu-image-ubuntu-does-work/15585/2 "2021-04-21T05:38:22Z")

</div>

Hey, @BrunoHigino  
I don’t know if you’re familiar with the Docker or similar technologies. But you’re running a container with an Ubuntu image which has no process defined inside. It’s just a simple shell container and waiting for a process.  
If you add the `sleep` command then you won’t see the “CrashLoopBackOff” error.  
In simple words, Kubelet is trying to achieve a running state of Pod’s container (restarting, killing, restarting …) → `kubectl describe pod <pod-name>`  
Add `sleep` command as a testing -

```auto
command:
 - /bin/sh
 - -c
 - "sleep 8999"

```
