Skip to content

brian-petersen/k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

k8s

yaml files for my homelab k8s instance.

Helmfile Tips

When setting up a new cluster:

  1. cd bootstrap
  2. helmfile diff - review changes
  3. helmfile apply

To remove helmfile controlled things:

  1. Add installed: false to helmfile.yaml
  2. Review helmfile diff
  3. Run helmfile apply
  4. Remove the entry that installed: false was added to

Applying Files

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 -

Exposing Services

Services are exposed via a cloudflared tunnel. Once the service is stood up, some manual configuration in cloudflare is necessary.

  1. Visit Cloudflare and sign in
  2. Visit Sign in > Zero Trust > Networks > Tunnels > Edit
  3. Add the url to the service: <service-name>.<namespace-name>.svc.cluster.local:<service-port>

Other Tips

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages