yaml files for my homelab k8s instance.
When setting up a new cluster:
cd bootstrap
helmfile diff
- review changeshelmfile apply
To remove helmfile
controlled things:
- Add
installed: false
tohelmfile.yaml
- Review
helmfile diff
- Run
helmfile apply
- Remove the entry that
installed: false
was added to
Any yaml files with sensitive information contain 1Password references. To apply them to the cluster:
cat cloudflare/tunnel-token.yaml.tpl | op inject | kubectl apply -f -
Services are exposed via a cloudflared tunnel. Once the service is stood up, some manual configuration in cloudflare is necessary.
- Visit Cloudflare and sign in
- Visit Sign in > Zero Trust > Networks > Tunnels > Edit
- Add the url to the service:
<service-name>.<namespace-name>.svc.cluster.local:<service-port>
- Grafana Dashboards -
ids can be grabbed and added to
./monitoring/datasources-and-dashboards.yaml
- If the dashboard doesn't load, sometimes a datasources var has to be specified
- Prometheus Helm Charts -
additional services can be scraped if added
- Think Redis, Erlang, etc.