- Replace placeholders in files. Ex:
namespace: <NAMESPACE>
tonamespace: production
. - If secrets are used, add them to your .gitignore
*-secrets.yml
.
- Create a kubernetes cluster with kind
kind create cluster
- Load an example
./utils/apply-all.sh <EXAMPLE_FOLDER>
- Play with you cluster!
- Delete your cluster
kind delete cluster
Secrets in kubernetes files are in base64, they should never be uploaded to version control. If it is a must, a good practice is to encrypt them and store the key in a safe place. A great tool for this task is SOPS which can use cloud credential storage services such.
sops --encrypt <KEY_PROVIDER_OPTIONS> secrets.yml > secrets.enc.yml
sops --descrypt secrets.enc.yml