You are now ready to deploy your application to a kubernetes cluster. With DevSpace you can create a so called Space that is basically an isolated hosted kubernetes namespace. You can also just use any other kubernetes cluster.
Optional: Create a Space
With the following command, you can create a Space called
devspace create space myapp
DevSpace CLI now will automatically work with the Space that you just created.
Deploy your application
Now, you can deploy your application with the following command:
This command will do the following:
- Build a Docker image as defined in the
- Push this Docker image to any Docker registry
- Deploy your Helm chart as defined in
- If you are using a space: Make your application available on a
You should receive an output similar to this:
[info] Loaded config from .devspace/configs.yaml [info] Building image 'registry.devspace.rocks/myuser/devspace' with engine 'docker' [done] √ Authentication successful (registry.devspace.rocks) Sending build context to Docker daemon 283.6kB Step 1/9 : FROM node:8.11.4 ---> 8198006b2b57 [...] hKEA2Kr: digest: sha256:ae6e096757da670907c41935646c4a87a5118801947af150052f5eccf4ed226d size: 2841 [info] Image pushed to registry (registry.devspace.rocks) [done] √ Done processing image 'registry.devspace.rocks/myuser/devspace' [info] Deploying devspace-app with helm [done] √ Deployed helm chart (Release revision: 3) [done] √ Finished deploying devspace-app [done] √ Successfully deployed!
Congrats you have successfully deployed an application to kubernetes!
Learn more about deploying with DevSpace
See the following guides to learn more:
- Develop with DevSpace
- Connect custom domains
- Monitor and debug deployed applications
- Configure Docker image
- Configure Helm chart
- What are components?
- Configure persistent volumes
- Configure environment variables
- Configure networking for your Helm chart (e.g. ingress)
- Add a database
- Add a custom component
- Add a container
- Add custom Kubernetes manifests (.yaml files)