An open API service indexing awesome lists of open source software.

https://github.com/jon77p/infrastructure

A collection of docker-compose files to setup my current homelab infrastructure, powered by several Raspberry Pi’s and the Cloud!
https://github.com/jon77p/infrastructure

ansible cdktf cloudflare cloudflared docker docker-compose homelab infrastructure infrastructure-as-code k3s kubernetes tailscale traefik

Last synced: about 2 months ago
JSON representation

A collection of docker-compose files to setup my current homelab infrastructure, powered by several Raspberry Pi’s and the Cloud!

Awesome Lists containing this project

README

          

# Infrastructure

![Overall Status](https://healthchecks.thepi.cloud/badge/e4651ff1-7eb9-4a73-ab52-7a41c6/8umX5Vja-2.svg)
![Infrastructure Status](https://healthchecks.thepi.cloud/badge/e4651ff1-7eb9-4a73-ab52-7a41c6/Frnnv0Xh-2/infrastructure.svg)
![Cluster Status](https://healthchecks.thepi.cloud/badge/e465366a-14f0-4ef1-b81a-6abc40/3iKjcFGj-2/Local.svg)
![OCI Status](https://healthchecks.thepi.cloud/badge/e4651ff1-7eb9-4a73-ab52-7a41c6/__-7GQXW-2/oci.svg)
![Services Status](https://healthchecks.thepi.cloud/badge/e4651ff1-7eb9-4a73-ab52-7a41c6/YGeGePrI-2/services.svg)
![Healthchecks Status](https://healthchecks.io/badge/db2e13af-f58d-4333-954b-d85bbe/OCsy-OX3-2.svg)
![HomeAssistant Status](https://healthchecks.thepi.cloud/badge/e4651ff1-7eb9-4a73-ab52-7a41c6/Dcg8sgEY-2/hass.svg)

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new)

## 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](https://github.com/k8s-at-home/template-cluster-k3s)