Member-only story

How to deploy full fledge Medusa app to Kubernetes cluster

Learn how to deploy the Medusa backend, Medusa storefront, and Medusa admin using Kubernetes.

Donald Le
10 min readSep 4, 2023
Photo by Maarten van den Heuvel on Unsplash

Kubernetes allows applications to be scalable with support for load balancing or self-healing. It’s widely used for deploying applications from middle to large size, with a bunch of tools built around it so that you can easily integrate your existing technology stack to Kubernetes.

Medusa is a set of open-source e-commerce tools that provides tools for backend service, admin GUI, and even store GUI. Using Medusa, you have the building blocks you need to deploy your e-commerce app. With Medusa, you can save your precious time to focus on the business requirements instead of building the same code for authentication or authorization over and over again.

In this article, let’s deploy the medusa-backend, Medusa storefront, and Medusa admin, along with PostgreSQL and Redis, to the Kubernetes cluster.

How Medusa works

Medusa typically consists of the following components:

  • A Medusa Backend, which is the backbone of Medusa, is used for creating APIs that will be used in both admin GUI and the storefront GUI
  • A storefront GUI, which is the…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Donald Le
Donald Le

Written by Donald Le

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.

Responses (3)

Write a response

Yes Beyron. Glad that you like the article.
They can be scalled horizonally if we deploy them using Kubernetes cluster.

Good article, thanks for sharing. In medusa's documentation it metions that it requires to deploy 2 servers one in Server mode and one in worker mode, in your article you only deploy one server for the backend, should we install two as suggested in medusa's documentation?

Great article. Do you know if Medusa backend app, store app and admin app can run in a clustered mode so they can scale horizontally?
Thanks