Docker Compose Alternatives for Kubernetes: DevSpace

DevSpace Logo

Architecture

Installation

$ brew install devspace

Initializing Your Project

$ devspace init

Entering Development Mode

$ devspace use context $ devspace use namespace
Animated GIF showing those two commands and their output
$ devspace dev

#Developing Microservices with Kubernetes

dependencies:
- name: api-server
source:
git: https://github.com/my-api-server
branch: stable
dev:
ports: true

Hooks and Custom Commands

hooks:
# Execute the hook in a golang shell (cross operating system compatible)
- command: "echo before image building"
when:
before:
images: all
# Execute the hook in a golang shell (cross operating system compatible)
- command: |
echo Hello
echo World
when:
before:
images: image-1,image-2
# Execute the hook directly on the system (echo binary must exist)
- command: "echo"
args: ["before image building"]
when:
before:
images: image-1,image-2
$ devspace run [COMMAND NAME]

Web UI For Kubernetes Development

DevSpace web UI

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store