devspace
DevSpace - The Fastest Developer Tool for Kubernetes ⚡ Automate your deployment workflow with DevSpace and develop software directly inside Kubernetes.
Top Related Projects
vCluster - Create fully functional virtual Kubernetes clusters - Each vcluster runs inside a namespace of the underlying k8s cluster. It's cheaper than creating separate full-blown clusters and it offers better multi-tenancy and isolation than regular namespaces.
Develop your applications directly in your Kubernetes Cluster
Local development against a remote Kubernetes or OpenShift cluster
Define your dev environment as code. For microservice apps on Kubernetes.
Automation for Kubernetes development and testing. Spin up production-like environments for development, testing, and CI on demand. Use the same configuration and workflows at every step of the process. Speed up your builds and test runs via shared result caching
Lens - The way the world runs Kubernetes
Quick Overview
DevSpace is an open-source developer tool for Kubernetes that aims to streamline the development process for cloud-native applications. It provides features like hot reloading, efficient image building, and simplified deployment management, allowing developers to work more efficiently with Kubernetes environments.
Pros
- Accelerates development cycles with fast, iterative workflows
- Simplifies Kubernetes deployments and configuration management
- Supports multiple programming languages and frameworks
- Integrates well with existing CI/CD pipelines
Cons
- Steep learning curve for developers new to Kubernetes
- May require additional setup and configuration for complex projects
- Limited documentation for advanced use cases
- Potential performance overhead in large-scale deployments
Getting Started
To get started with DevSpace:
- Install DevSpace:
curl -L -o devspace "https://github.com/devspace-sh/devspace/releases/latest/download/devspace-linux-amd64" && sudo install -c -m 0755 devspace /usr/local/bin
- Initialize a new project:
devspace init
- Start development:
devspace dev
This will set up a basic DevSpace configuration and start the development environment. For more detailed instructions and advanced usage, refer to the official documentation.
Competitor Comparisons
vCluster - Create fully functional virtual Kubernetes clusters - Each vcluster runs inside a namespace of the underlying k8s cluster. It's cheaper than creating separate full-blown clusters and it offers better multi-tenancy and isolation than regular namespaces.
Pros of vcluster
- Creates lightweight virtual clusters within a host cluster, enabling better resource isolation and multi-tenancy
- Allows running multiple Kubernetes versions within a single physical cluster
- Simplifies cluster management and reduces infrastructure costs
Cons of vcluster
- Limited to Kubernetes-specific use cases, while DevSpace supports broader development workflows
- May introduce additional complexity in networking and resource management
- Requires more setup and configuration compared to DevSpace's simpler approach
Code Comparison
vcluster:
apiVersion: v1
kind: ConfigMap
metadata:
name: vcluster-config
data:
config.yaml: |
dev:
service:
type: ClusterIP
DevSpace:
images:
backend:
image: myregistry.com/backend
build:
dockerfile: ./Dockerfile
dev:
sync:
- path: ./
The vcluster configuration focuses on cluster-level settings, while DevSpace emphasizes application-level development and deployment configurations. vcluster is more suited for managing virtual Kubernetes clusters, whereas DevSpace provides a broader set of tools for containerized application development and deployment workflows.
Develop your applications directly in your Kubernetes Cluster
Pros of Okteto
- Offers a complete development platform with built-in collaboration features
- Provides a managed cloud service option for easier setup and maintenance
- Includes a web-based IDE for quick access to development environments
Cons of Okteto
- May have a steeper learning curve for users new to cloud-native development
- Limited flexibility in terms of customization compared to DevSpace
- Potentially higher costs for larger teams or projects due to the managed service model
Code Comparison
DevSpace configuration example:
images:
backend:
image: myregistry.com/backend
build:
dockerfile: ./Dockerfile
deployments:
- name: backend
helm:
chart:
name: ./chart
Okteto configuration example:
name: myapp
image: okteto/node:14
command: bash
volumes:
- /usr/src/app
sync:
- .:/usr/src/app
Both tools use YAML configuration files, but DevSpace focuses more on image building and deployment, while Okteto emphasizes development environment setup and synchronization.
Local development against a remote Kubernetes or OpenShift cluster
Pros of Telepresence
- Offers real-time local development with remote Kubernetes clusters
- Provides seamless integration with existing development workflows
- Supports multiple programming languages and frameworks
Cons of Telepresence
- Requires additional setup and configuration compared to DevSpace
- May have performance overhead due to traffic proxying
- Limited to development scenarios, not suitable for production deployments
Code Comparison
Telepresence:
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: example-mapping
spec:
prefix: /example/
service: example-service
DevSpace:
images:
backend:
image: myregistry.com/backend
build:
dockerfile: ./Dockerfile
deployments:
- name: backend
helm:
chart:
name: ./chart
Both tools aim to improve Kubernetes development workflows, but they approach the problem differently. Telepresence focuses on creating a seamless local-to-remote development experience, while DevSpace provides a more comprehensive solution for building, deploying, and managing applications in Kubernetes environments. DevSpace offers a wider range of features, including image building and deployment management, making it more suitable for end-to-end development and deployment scenarios.
Define your dev environment as code. For microservice apps on Kubernetes.
Pros of Tilt
- More flexible configuration with Tiltfile (Python-based)
- Better support for microservices and multi-service applications
- Live updates and hot reloading capabilities
Cons of Tilt
- Steeper learning curve due to custom Tiltfile syntax
- Less focus on production deployment scenarios
- Limited built-in CI/CD integration compared to DevSpace
Code Comparison
Tilt (Tiltfile):
docker_build('myapp', '.')
k8s_yaml('k8s.yaml')
k8s_resource('myapp', port_forwards='8080:8080')
DevSpace (devspace.yaml):
images:
myapp:
image: myapp
dockerfile: ./Dockerfile
deployments:
- name: myapp
helm:
chart:
name: ./chart
Both DevSpace and Tilt aim to improve the developer experience for Kubernetes-based applications, but they have different approaches. Tilt focuses on fast, iterative development with live updates, while DevSpace provides a more comprehensive solution that includes production deployment features. Tilt's Tiltfile offers more flexibility, but DevSpace's YAML configuration may be easier for some users to understand and maintain. The choice between the two depends on specific project requirements and team preferences.
Automation for Kubernetes development and testing. Spin up production-like environments for development, testing, and CI on demand. Use the same configuration and workflows at every step of the process. Speed up your builds and test runs via shared result caching
Pros of Garden
- More comprehensive project management with support for multiple services and dependencies
- Built-in testing and CI/CD integration
- Supports multiple cloud providers and Kubernetes environments out of the box
Cons of Garden
- Steeper learning curve due to more complex configuration
- May be overkill for simpler projects or single-service applications
- Less focus on local development compared to DevSpace
Code Comparison
Garden configuration example:
kind: Project
name: my-project
environments:
- name: local
- name: remote
kind: Module
name: backend
type: container
DevSpace configuration example:
version: v2beta1
deployments:
- name: backend
helm:
chart:
name: ./charts/backend
Both tools use YAML for configuration, but Garden's structure is more complex due to its broader scope. DevSpace focuses primarily on Kubernetes deployments, while Garden manages the entire project lifecycle, including testing and dependencies.
Lens - The way the world runs Kubernetes
Pros of Lens
- User-friendly GUI for managing Kubernetes clusters
- Supports multiple clusters and contexts simultaneously
- Provides real-time cluster metrics and resource usage visualization
Cons of Lens
- Primarily focused on cluster management, not local development
- Less integrated with CI/CD pipelines compared to DevSpace
- May have a steeper learning curve for users new to Kubernetes
Code Comparison
Lens doesn't have a CLI or configuration files like DevSpace. Instead, it uses a GUI interface. DevSpace, on the other hand, uses YAML configuration files:
DevSpace configuration example:
version: v2beta1
deployments:
- name: my-deployment
helm:
chart:
name: my-chart
repo: https://charts.my-repo.com
Lens doesn't have an equivalent code-based configuration. It's primarily operated through its graphical interface.
Summary
DevSpace is more focused on streamlining local development and deployment workflows for Kubernetes, while Lens provides a comprehensive GUI for cluster management and monitoring. DevSpace offers more flexibility in terms of configuration and integration with development processes, whereas Lens excels in providing a user-friendly interface for visualizing and managing Kubernetes resources across multiple clusters.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
Website ⢠Quickstart ⢠Documentation ⢠Blog ⢠Twitter
Client-Only Developer Tool for Cloud-Native Development with Kubernetes
- Build, test and debug applications directly inside Kubernetes
- Develop with hot reloading: updates your running containers without rebuilding images or restarting containers
- Unify deployment workflows within your team and across dev, staging and production
- Automate repetitive tasks for image building and deployment
âï¸ Do you like DevSpace? Support the project with a star âï¸
DevSpace was created by Loft Labs and is a Cloud Native Computing Foundation (CNCF) sandbox project.
Contents
Why DevSpace?
Building modern, distributed and highly scalable microservices with Kubernetes is hard - and it is even harder for large teams of developers. DevSpace is the next-generation tool for fast cloud-native software development.
Standardize & Version Your Workflows
DevSpace allows you to store all your workflows in one declarative config file: devspace.yaml
- Codify workflow knowledge about building images, deploying your project and its dependencies etc.
- Version your workflows together with your code (i.e. you can get any old version up and running with just a single command)
- Share your workflows with your team mates
Let Everyone on Your Team Deploy to Kubernetes
DevSpace helps your team to standardize deployment and development workflows without requiring everyone on your team to become a Kubernetes expert.
- The DevOps and Kubernetes expert on your team can configure DevSpace using
devspace.yaml
and simply commits it via git - If other developers on your team check out the project, they only need to run
devspace deploy
to deploy the project (including image building and deployment of other related project etc.) and they have a running instance of the project - The configuration of DevSpace is highly dynamic, so you can configure everything using config variables that make it much easier to have one base configuration but still allow differences among developers (e.g. different sub-domains for testing)
Giving everyone on your team on-demand access to a Kubernetes cluster is a challenging problem for system administrators and infrastructure managers. If you want to efficiently share dev clusters for your engineering team, take a look at www.loft.sh.
Speed Up Cloud-Native Development
Instead of rebuilding images and redeploying containers, DevSpace allows you to hot reload running containers while you are coding:
- Simply edit your files with your IDE and see how your application reloads within the running container.
- The high performance, bi-directional file synchronization detects code changes immediately and synchronizes files immediately between your local dev environment and the containers running in Kubernetes
- Stream logs, connect debuggers or open a container terminal directly from your IDE with just a single command.
Automate Repetitive Tasks
Deploying and debugging services with Kubernetes requires a lot of knowledge and forces you to repeatedly run commands like kubectl get pod
and copy pod ids back and forth. Stop wasting time and let DevSpace automate the tedious parts of working with Kubernetes:
- DevSpace lets you build multiple images in parallel, tag them automatically and and deploy your entire application (including its dependencies) with just a single command
- Let DevSpace automatically start port-fowarding and log streaming, so you don't have to constantly copy and paste pod ids or run 10 commands to get everything started.
Works with Any Kubernetes Clusters
DevSpace is battle tested with many Kubernetes distributions including:
- local Kubernetes clusters like minikube, k3s, MikroK8s, kind
- managed Kubernetes clusters in GKE (Google Cloud), EKS (Amazon Web Service), AKS (Microsoft Azure), Digital Ocean
- self-managed Kubernetes clusters created with Rancher
DevSpace also lets you switch seamlessly between clusters and namespaces. You can work with a local cluster as long as that is sufficient. If things get more advanced, you need cloud power like GPUs or you simply want to share a complex system such as Kafka with your team, simply tell DevSpace to use a remote cluster by switching your kube-context and continue working.
Quickstart
Please take a look at our getting started guide.
Architecture & Workflow
DevSpace runs as a single binary CLI tool directly on your computer and ideally, you use it straight from the terminal within your IDE. DevSpace does not require a server-side component as it communicates directly to your Kubernetes cluster using your kube-context, just like kubectl.
Contributing
Help us make DevSpace the best tool for developing, deploying and debugging Kubernetes apps.
Reporting Issues
If you find a bug while working with the DevSpace, please open an issue on GitHub and let us know what went wrong. We will try to fix it as quickly as we can.
Feedback & Feature Requests
You are more than welcome to open issues in this project to:
Contributing Code
This project is mainly written in Golang. If you want to contribute code:
- Ensure you are running golang version 1.11.4 or greater for go module support
- Set the following environment variables:
GO111MODULE=on GOFLAGS=-mod=vendor
- Check-out the project:
git clone https://github.com/loft-sh/devspace && cd devspace
- Make changes to the code
- Build the project, e.g. via
go build -o devspace[.exe]
- Evaluate and test your changes
./devspace [SOME_COMMAND]
See Contributing Guidelines for more information.
The DevSpace project follows the CNCF Code of Conduct.
FAQ
What is DevSpace?
DevSpace is an open-source command-line tool that provides everything you need to develop, deploy and debug applications with Docker and Kubernetes. It lets you streamline deployment workflows and share them with your colleagues through a declarative configuration file devspace.yaml
.
Is DevSpace free?
YES. DevSpace is open-source and you can use it for free for any private projects and even for commercial projects.
Do I need a Kubernetes cluster to use DevSpace?
Yes. You can either use a local cluster such as Docker Desktop Kubernetes, minikube, or Kind, but you can also use a remote cluster such as GKE, EKS, AKS, RKE (Rancher), or DOKS.
Can I use DevSpace with my existing Kubernetes clusters?
Yes. DevSpace is using your regular kube-context. As long as you can run kubectl
commands with a cluster, you can use this cluster with DevSpace as well.
What is a Helm chart?
Helm is the package manager for Kubernetes. Packages in Helm are called Helm charts.
License
DevSpace is released under the Apache 2.0 license. See the LICENSE file for details.
DevSpace is a Cloud Native Computing Foundation (CNCF) sandbox project and was contributed by Loft Labs.
Top Related Projects
vCluster - Create fully functional virtual Kubernetes clusters - Each vcluster runs inside a namespace of the underlying k8s cluster. It's cheaper than creating separate full-blown clusters and it offers better multi-tenancy and isolation than regular namespaces.
Develop your applications directly in your Kubernetes Cluster
Local development against a remote Kubernetes or OpenShift cluster
Define your dev environment as code. For microservice apps on Kubernetes.
Automation for Kubernetes development and testing. Spin up production-like environments for development, testing, and CI on demand. Use the same configuration and workflows at every step of the process. Speed up your builds and test runs via shared result caching
Lens - The way the world runs Kubernetes
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot