# Kubernetes with balenaEngine as the Container Runtime

**URL:** <https://forums.balena.io/t/kubernetes-with-balenaengine-as-the-container-runtime/340861>\
**Category:** balenaEngine\
**Created:** [July 23, 2021, 9:27pm UTC](https://forums.balena.io/t/kubernetes-with-balenaengine-as-the-container-runtime/340861 "2021-07-23T21:27:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shang](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@shang](https://forums.balena.io/u/shang)\
**Post date:** [July 23, 2021, 9:27pm UTC](https://forums.balena.io/t/kubernetes-with-balenaengine-as-the-container-runtime/340861/1 "2021-07-23T21:27:22Z")

</div>

Hi,

I’m trying to use balenaEngine as the container runtime on Kubernetes instead of Docker, but I’m having trouble figuring out how to change the runtime to balenaEngine, I was wondering if anyone has been successful and be able to provide instructions.

Thank you.

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [July 29, 2021, 9:53am UTC](https://forums.balena.io/t/kubernetes-with-balenaengine-as-the-container-runtime/340861/6 "2021-07-29T09:53:49Z")

</div>

Hello @shang thanks for working on this and welcome to the balena forums!

Why are you trying with Kubernetes and not k3s or k0s?

Tell us more details and we will try to help you! Let’s stay connected

---

<div class="post-metadata">

**Author:** ![shang](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@shang](https://forums.balena.io/u/shang)\
**Post date:** [July 29, 2021, 3:32pm UTC](https://forums.balena.io/t/kubernetes-with-balenaengine-as-the-container-runtime/340861/9 "2021-07-29T15:32:10Z")

</div>

Hi, I’m trying with Kubernetes, because I heard that they are deprecating Docker in the the future releases. I have also tried messing with k3s and haven’t been successful either, so I am fine with either of the ks, if someone have been able to figure it out.

---

<div class="post-metadata">

**Author:** ![tmigone](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/tmigone/32/2814_2.png) [@tmigone](https://forums.balena.io/u/tmigone)\
**Post date:** [August 3, 2021, 4:02pm UTC](https://forums.balena.io/t/kubernetes-with-balenaengine-as-the-container-runtime/340861/10 "2021-08-03T16:02:39Z")

</div>

Hi @shang, unfortunately this is uncharted territory and not one we are actively exploring afaik.

Previously you were able to do this by configuring kubelet to point to balena engine socket (see [Balena engine with Kubernetes · Issue #84 · balena-os/balena-engine · GitHub](https://github.com/balena-os/balena-engine/issues/84) and [Kubernetes with balena-engine as Container Runtime · Issue #255 · balena-os/balena-engine · GitHub](https://github.com/balena-os/balena-engine/issues/255)) but that relied on dockershim which is going away from Kubernetes with the deprecation.

In any case and in case you missed it, the docker deprecation doesn’t mean you need to stop using docker with kubernetes. Here are a couple articles that illustrate the change:

- [Don't Panic: Kubernetes and Docker | Kubernetes](https://kubernetes.io/blog/2020/12/02/dont-panic-kubernetes-and-docker/)
- [Kubernetes is deprecating Docker in 2021 | by Fabricio Pautasso | Level Up Coding](https://levelup.gitconnected.com/kubernetes-is-deprecating-docker-in-2021-fa8317f9f070)
