Stacks allows you to deploy applications on Okteto Cloud using a simple docker-compose like format. Stacks are designed for developers who don't want to deal with the complexities of Kubernetes manifests or Helm charts.

The following sample illustrates how easy is to define an application based on microservices using Stacks:

public: true
image: okteto/vote:stacks
build: vote
replicas: 2
- 8080
cpu: 100m
memory: 128Mi
image: redis
- 6379
cpu: 100m
memory: 128Mi
storage: 1Gi
- /data

The equivalent Kubernetes manifests would have more than 200 lines of yaml!

Head over the Stack Manifest reference documentation to learn how to define your application using Stacks. The Stack CLI reference explains how to deploy your stack from your local terminal. The rest of this document explains how to manage stacks from the Okteto Cloud Dashboard.

Deploying Stacks from the Okteto Cloud Dashboard

Click on the Deploy button on the top left of the Okteto Cloud dashboard. A dialog will open with the list of available applications you can deploy on your namespace. The list will look something like this:

Click stacks to switch to the stack configuration view. There you give it a name, and more important, you define the Stack manifest in the configuration text box to suit your own application:

Once you're ready, click on the Deploy button on the bottom of the dialog to launch your stack. After a while, your application will be up and running:

Upgrading Stacks from the Okteto Cloud Dashboard

Click on the extended menu in the right of your stack, and select the Upgrade option. The Upgrade Application dialog shows you the configuration used to deploy the current version of your stack:

Modify your Stack manifest and click on the Upgrade button to start the upgrade process. The changes will be applied in seconds.

Destroying Stacks from the Okteto Cloud Dashboard

Finally, you can also destroy your stack with a single click. Go back to the extended menu of your stack and select the Destroy option. A confirmation dialog will pop up. Click on the Destroy button to confirm your action, and the stack and all of the resources created for it will be gone.

Persistent volumes created by your stack are not deleted to avoid accidental data lost. If you want to delete them, you can do it directly from the Okteto Cloud dashboard once your persistent volume transitions to the Unused state: