Skip to content

jon77p/infrastructure

Repository files navigation

Infrastructure

Overall Status Infrastructure Status Cluster Status OCI Status Services Status Healthchecks Status HomeAssistant Status

Open in GitHub Codespaces

Getting Started: [Minimal Setup]

  1. docker swarm init on manager node
  2. docker swarm join with correct join token on all other nodes
  3. docker network create --scope swarm --driver overlay web on manager node
  4. docker stack deploy -c cloudflared/docker-compose.yml picluster
  5. docker stack deploy -c traefik/docker-compose.yml picluster
  6. docker stack deploy -c cloudflare-companion/docker-compose.yml picluster

Locally Applying kustomizations

  1. Export environment variables to current shell
  2. Run envsubst < <(kubectl kustomize *path-to-kustomization-dir*) | kubectl apply -f -

Decrypting SOPS secrets for kubectl

  1. sops --decrypt *path-to-.sops.yaml* | kubectl apply -f -

Credits

Portions cloned from k8s-at-home/template-cluster-k3s