No description
| ext | ||
| lib | ||
| .gitattributes | ||
| .gitlab-ci.yml | ||
| deploy-tool.gitlab-ci.yml | ||
| deploy-tools.sh | ||
| dev-apply.sh | ||
| dev-lint.sh | ||
| dev-patch.sh | ||
| Dockerfile | ||
| README.md | ||
Deploy tools
Tools for deploying kubernetes configuration (yaml) to a cluster.
Uses envsubst for variables, so you can't use templating like in helm
How to load / use
Add the dependency as a submodule to your git repo
source $(which deploy-tools.sh || echo "deploy-tools/deploy-tools.sh")
# Use any function from lib/*
env::exists TEST_VARIABLE "default_value"
Dockerfile
You can use the Dockerfile as a build / runtime environment
Gitlab CI Template
We provide a base gitlab-ci configuration without script, for you to extend:
include:
- local: deploy-tools/deploy-tool.gitlab-ci.yml
my-deploy-step:
extends: .deploy-tool-deployer
script:
- kubectl::apply_file "my_file" "" false
Minikube support
Minikube is supported, just setup your minikube, let it configure kubectl, and your deploy script should work as expected on your machine.