DevSpace – Development Environments in Kubernetes

DevSpace is a lightweight open-source CLI tool that enables local and remote development environments in Kubernetes.

▬▬▬▬▬▬ 🔗 Additional Info 🔗 ▬▬▬▬▬▬

➡ Gist with the commands:
🔗 DevSpace:
🎬 vCluster:
🎬 Argo CD:
🎬 Flux CD:
🎬 K3d:
🎬 Kustomize:

▬▬▬▬▬▬ 🚀 Courses, books, and podcasts 🚀 ▬▬▬▬▬▬

📚 DevOps Catalog, Patterns, And Blueprints:
📚 Books and courses:
🎤 Podcast:
💬 Live streams:

▬▬▬▬▬▬ 👋 Contact me 👋 ▬▬▬▬▬▬

➡ Follow me on Twitter:
➡ Follow me on LinkedIn:


8 thoughts on “DevSpace – Development Environments in Kubernetes

  1. Patrick

    @Viktor: it would be interesting to see, how the configuration of environments with crossplane could be reproduced in a dev environment – say you have a complex application that consists of many microservices – and you want do develop/change one of those – how can you test those changes in relation to the other microservices locally with devspace? (e.g. just have a backend, a redis or DB and a frontend – you want to test the frontend changes locally with devspace – ideally with the same infrastructure definitions you are using for the deployment later…)

    1. Viktor Farcic Post author

      Normally, both in local and in preview (PR) environments, I would focus only on the application I’m working on. Ideally, that app would be connected to its dependencies running in production and would not depend on unreleased stuff. If that’s not possible or practical, it can connect to its dependencies in staging. In either case, deploy the app you work on, and connect it to the dependencies running in permanent environments.

      That being said, it’s even better if devs write mocks and stubs so that there is no need to connect to “real” dependencies or if everything is lightweight so that I could spin up everything I need independently from whatever other people are doing. However, for many that is not the option since “everything” can be very heavy and, in those cases, connecting temp envs (dev, preview) to permanent envs (prod, staging) is the alternative.

      1. Patrick

        Thanks for your feedback. Well, in reality applications sadly (but also luckily) depend on each others services and functionalities (at least in my world ;-)).
        Yes, connecting to staging might be a good solution. But as soon as you need to depend on data being available/created in the “external” components, then it get tricky.
        Mocks are a great way for dealing with that – but they need to be “created” and “maintained”.
        I thought in the world of docker/kubernetes – it should not be very difficult to just bring the right version of the dependency to the dev environment?!?

        So yes, I would go for the lightweight approach (download and spin up everything independently).
        And now, back to my question:
        Is there a good way to achieve that with DevSpace?

        1. Viktor Farcic Post author

          The simplified version of the explanation of what DevSpace does is that it applies whichever manifests you tell it to apply, it modifies the image to be whatever DevSpace builds, and it synchronizes files between the file system and the container based on that image. As long as your manifests (those you tell DevSpace to use) contain all the apps you need, the mission is accomplished. Right?

          1. Patrick

            In the video I have only seen, that you change the “image”. But if you can specify manifests around it, this will do the trick.
            Great, thanks. Mission accomplished 😉

            1. Viktor Farcic Post author

              The devspace init command asks you about the location of the manifests. In my case, I used Kustomize and, with it, I would just add dependencies as (probably) external sources to overlays/dev/kustomization.yaml file. If it would be Helm, those would be entries in dependencies. On top of all that, you can fine-tune what it does through devspace.yaml file.


Leave a Reply to Patrick Cancel reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s