Creating a Stack
A Stack is a private PaaS installed into your Google Cloud account. Once you have a Stack running you can use it to deploy and manage your applications and backing resources. You can create a stack from our CLI.
| => datacol init -h NAME: init - create new stack USAGE: init [command options] [arguments...] OPTIONS: --stack value Name of stack (default: "dev") --project value GCP project name or id to use --zone value zone for stack (default: "us-east1-b") --bucket value GCP storage bucket --nodes value number of nodes in container cluster (default: 2) --cluster value name for existing Kubernetes cluster in GCP --machine-type value name of machine-type to use for cluster (default: "n1-standard-1") --preemptible use preemptible vm --opt-out Opt-out from getting updates by email by datacol
A standard Stack will include following resources -
- A Deployment by name demo (name of stack as given above)
A Service account for the stack by name
dcolctl@<project>.iam.gserviceaccount.comhaving roles -
- A Kubernetes cluster tuned for Datacol
- A storage bucket for storing environment variables and build logs
Deleting a Stack
If you want to delete a Stack, you can simply run
datacol destroy command. It will safely teardown Kubernetes cluster and all of the apps deployed by Datacol.
STACK=demo datacol destroy
Currently we don’t support automatic deletion for following resources from console -
- Service Account: Go to your Google Cloud console and remove service account by name
- Docker images created by datacol cli. You can purge