Based upon the Kubernetes the Hard Way project.
stackql-deploy
is a multi cloud deployment automation and testing framework which is an alternative to Terraform or similar IaC tools. stackql-deploy
uses a declarative model/ELT based approach to cloud resource deployment (inspired by dbt
). Advantages of stackql-deploy
include:
- declarative framework
- no state file (state is determined from the target environment)
- multi-cloud/omni-cloud ready
- includes resource tests which can include secure config tests
stackql-deploy
is installed as a python based CLI using...
pip install stackql-deploy
Once installed, use the init
command to scaffold a sample project directory to get started:
stackql-deploy init k8s-the-hard-way
this will create a directory named k8s-the-hard-way
which can be updated for your stack, as you can see in this project.
export GOOGLE_CREDENTIALS=$(cat ./creds.json)
# deploy a stack
stackql-deploy build \
k8s-the-hard-way \
dev \
-e GOOGLE_PROJECT=stackql-k8s-the-hard-way-demo \
--dry-run \
--log-leve DEBUG
# test a stack
stackql-deploy test \
examples/k8s-the-hard-way \
dev \
-e GOOGLE_PROJECT=stackql-k8s-the-hard-way-demo \
--dry-run
# teardown a stack
stackql-deploy teardown \
k8s-the-hard-way \
dev \
-e GOOGLE_PROJECT=stackql-k8s-the-hard-way-demo \
--dry-run