/kubernetes-atlas

A collection of runnable kubernetes examples and templates

Primary LanguageShell

KUBERNETES-ATLAS

USAGE

  1. Replace placeholders in files. Ex: namespace: <NAMESPACE> to namespace: production.
  2. If secrets are used, add them to your .gitignore *-secrets.yml.

TRY IT YOURSELF IN LOCAL!

Prerequirements

Load an example

  1. Create a kubernetes cluster with kind kind create cluster
  2. Load an example ./utils/apply-all.sh <EXAMPLE_FOLDER>
  3. Play with you cluster!
  4. Delete your cluster kind delete cluster

Regarding secrets

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.

  1. SOPS with Azure KV
  2. SOPS with AWS KmsKMS
  3. SOPS with GCP KMS
  4. SOPS with GPG keys (Unnoficial source)
sops --encrypt <KEY_PROVIDER_OPTIONS> secrets.yml > secrets.enc.yml
sops --descrypt secrets.enc.yml