# Kubernetes as an Open edX development environment

**URL:** <https://discuss.openedx.org/t/kubernetes-as-an-open-edx-development-environment/9580>\
**Category:** DevOps\
**Created:** [March 14, 2023, 3:00pm UTC](https://discuss.openedx.org/t/kubernetes-as-an-open-edx-development-environment/9580 "2023-03-14T15:00:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![regis](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/regis/32/2640_2.png) [@regis](https://discuss.openedx.org/u/regis)\
**Post date:** [March 14, 2023, 3:00pm UTC](https://discuss.openedx.org/t/kubernetes-as-an-open-edx-development-environment/9580/1 "2023-03-14T15:00:13Z")

</div>

Are Open edX developers interested in running a development environment on Kubernetes? The Kubernetes tooling ecosystem is very active and there are many tools out there that make it easier to run a local Kubernetes cluster for application development. For instance, they integrate host bind-mounting, repo sync, provisioning scripts, etc. A first exploration of such tools was done here: [[Discovery] Cloud-based developer environments · Issue #82 · edx/edx-arch-experiments · GitHub](https://github.com/edx/edx-arch-experiments/issues/82)

As a community, we need to figure out whether these tools are right for us. To that end I created this issue: [Can we improve support for Kubernetes as a development environment? · Issue #5 · openedx/wg-devops · GitHub](https://github.com/openedx/wg-devops/issues/5)

**We are looking for people to explore this opportunity: should we push for Kubernetes as a default dev environment for Open edX?** What would it take, in terms of technical changes? In particular, we’d like to know what changes (if any) would have to be made to Tutor.

Do you want to try to run Open edX with [Tilt](https://docs.tilt.dev/)/[Devspace](https://www.devspace.sh/)/[Okteto](https://www.okteto.com/)? Please discuss here 🙂

---

<div class="post-metadata">

**Author:** ![Jeff\_Cohen](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jeff_cohen/32/3417_2.png) [@Jeff\_Cohen](https://discuss.openedx.org/u/Jeff_Cohen)\
**Post date:** [March 15, 2023, 2:07pm UTC](https://discuss.openedx.org/t/kubernetes-as-an-open-edx-development-environment/9580/2 "2023-03-15T14:07:24Z")

</div>

I would be interested in using Kubernetes for dev, but do not have expertise (or time) to offer at this time. I’ll be following the discussion and enhancements. Thanks for all you do to push the tech stack forward.

---

<div class="post-metadata">

**Author:** ![chintan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/chintan/32/52_2.png) [@chintan](https://discuss.openedx.org/u/chintan)\
**Post date:** [March 16, 2023, 9:49am UTC](https://discuss.openedx.org/t/kubernetes-as-an-open-edx-development-environment/9580/3 "2023-03-16T09:49:09Z")

</div>

Is using minikube and tutor k8s same as using tutor with kubernetes ?

---

<div class="post-metadata">

**Author:** ![regis](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/regis/32/2640_2.png) [@regis](https://discuss.openedx.org/u/regis)\
**Post date:** [March 16, 2023, 10:10am UTC](https://discuss.openedx.org/t/kubernetes-as-an-open-edx-development-environment/9580/4 "2023-03-16T10:10:37Z")

</div>

@Jeff_Cohen thanks for the kind words! watch this space 🙂

> [@chintan](#):
>
> Is using minikube and tutor k8s same as using tutor with kubernetes ?

@chintan Yes, pretty much. But at the moment I’m not quite sure that running Open edX on a local kubernetes cluster with Minikube works out of the box. See this issue for more information: [How to run Open edX on a local Kubernetes cluster? · Issue #4 · openedx/wg-devops · GitHub](https://github.com/openedx/wg-devops/issues/4) Did you manage to deploy Open edX on a local minikube cluster?

---

<div class="post-metadata">

**Author:** ![chintan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/chintan/32/52_2.png) [@chintan](https://discuss.openedx.org/u/chintan)\
**Post date:** [March 16, 2023, 10:18am UTC](https://discuss.openedx.org/t/kubernetes-as-an-open-edx-development-environment/9580/5 "2023-03-16T10:18:36Z")

</div>

@regis

Yes I was able to run it with minikube

- You have to run ‘minikube tunnel’
- That command will give you the output of EXTERNAL IP of caddy service
- Copy that IP and use it in hosts file
- After that it works well.

**OS** : Ubuntu 20.04  
**Tutor Versions tested with this method** : 15.3.0 and 15.3.1  
**Open edx tag** : olive.2

As far as I know it worked out of the box apart from hosts entries and minikube setup with tunnel

Mostly all the steps I did were followed from this link

[https://openedx.atlassian.net/wiki/spaces/COMM/pages/3325198774/Tutor+troubleshooting+notes#Task-2:-Set-up-Tutor-in-a-local-Kubernetes-(k8s)-cluster](https://openedx.atlassian.net/wiki/spaces/COMM/pages/3325198774/Tutor+troubleshooting+notes#Task-2:-Set-up-Tutor-in-a-local-Kubernetes-(k8s)-cluster)
