{"id":13474503,"url":"https://github.com/onedr0p/home-ops","last_synced_at":"2025-04-10T23:19:07.544Z","repository":{"id":36984131,"uuid":"230999826","full_name":"onedr0p/home-ops","owner":"onedr0p","description":"Wife approved HomeOps driven by Kubernetes and GitOps using Flux","archived":false,"fork":false,"pushed_at":"2025-04-09T15:08:11.000Z","size":49806,"stargazers_count":2282,"open_issues_count":2,"forks_count":199,"subscribers_count":25,"default_branch":"main","last_synced_at":"2025-04-09T15:48:09.540Z","etag":null,"topics":["flux","gitops","kubernetes","kubesearch","mise","renovate","selfhosted","talos","taskfile"],"latest_commit_sha":null,"homepage":"https://discord.gg/home-operations","language":"YAML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onedr0p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"onedr0p","custom":["https://www.paypal.me/devinbuhl"]}},"created_at":"2019-12-31T00:42:46.000Z","updated_at":"2025-04-09T14:55:04.000Z","dependencies_parsed_at":"2023-09-23T07:25:32.507Z","dependency_job_id":"a570921f-f4c3-486d-8d4d-448718ccddd4","html_url":"https://github.com/onedr0p/home-ops","commit_stats":{"total_commits":25987,"total_committers":34,"mean_commits":764.3235294117648,"dds":0.7808904452226113,"last_synced_commit":"cd37e4c991855b114bc84aaf83037fa9f80433b2"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onedr0p%2Fhome-ops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onedr0p%2Fhome-ops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onedr0p%2Fhome-ops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onedr0p%2Fhome-ops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onedr0p","download_url":"https://codeload.github.com/onedr0p/home-ops/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312343,"owners_count":21082673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flux","gitops","kubernetes","kubesearch","mise","renovate","selfhosted","talos","taskfile"],"created_at":"2024-07-31T16:01:12.804Z","updated_at":"2025-04-10T23:19:07.509Z","avatar_url":"https://github.com/onedr0p.png","language":"YAML","funding_links":["https://github.com/sponsors/onedr0p","https://www.paypal.me/devinbuhl"],"categories":["YAML","Shell","kubernetes"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"https://github.com/user-attachments/assets/cba21e9d-1275-4c92-ab9b-365f31f35add\" align=\"center\" width=\"175px\" height=\"175px\"/\u003e\n\n### \u003cimg src=\"https://fonts.gstatic.com/s/e/notoemoji/latest/1f680/512.gif\" alt=\"🚀\" width=\"16\" height=\"16\"\u003e My Home Operations Repository \u003cimg src=\"https://fonts.gstatic.com/s/e/notoemoji/latest/1f6a7/512.gif\" alt=\"🚧\" width=\"16\" height=\"16\"\u003e\n\n_... managed with Flux, Renovate, and GitHub Actions_ \u003cimg src=\"https://fonts.gstatic.com/s/e/notoemoji/latest/1f916/512.gif\" alt=\"🤖\" width=\"16\" height=\"16\"\u003e\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Discord](https://img.shields.io/discord/673534664354430999?style=for-the-badge\u0026label\u0026logo=discord\u0026logoColor=white\u0026color=blue)](https://discord.gg/home-operations)\u0026nbsp;\u0026nbsp;\n[![Talos](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.devbu.io%2Ftalos_version\u0026style=for-the-badge\u0026logo=talos\u0026logoColor=white\u0026color=blue\u0026label=%20)](https://talos.dev)\u0026nbsp;\u0026nbsp;\n[![Kubernetes](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.devbu.io%2Fkubernetes_version\u0026style=for-the-badge\u0026logo=kubernetes\u0026logoColor=white\u0026color=blue\u0026label=%20)](https://kubernetes.io)\u0026nbsp;\u0026nbsp;\n[![Flux](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.devbu.io%2Fflux_version\u0026style=for-the-badge\u0026logo=flux\u0026logoColor=white\u0026color=blue\u0026label=%20)](https://fluxcd.io)\u0026nbsp;\u0026nbsp;\n[![Renovate](https://img.shields.io/github/actions/workflow/status/onedr0p/home-ops/renovate.yaml?branch=main\u0026label=\u0026logo=renovatebot\u0026style=for-the-badge\u0026color=blue)](https://github.com/onedr0p/home-ops/actions/workflows/renovate.yaml)\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Home-Internet](https://img.shields.io/uptimerobot/status/m793494864-dfc695db066960233ac70f45?color=brightgreeen\u0026label=Home%20Internet\u0026style=for-the-badge\u0026logo=ubiquiti\u0026logoColor=white)](https://status.devbu.io)\u0026nbsp;\u0026nbsp;\n[![Status-Page](https://img.shields.io/uptimerobot/status/m793599155-ba1b18e51c9f8653acd0f5c1?color=brightgreeen\u0026label=Status%20Page\u0026style=for-the-badge\u0026logo=statuspage\u0026logoColor=white)](https://status.devbu.io)\u0026nbsp;\u0026nbsp;\n[![Alertmanager](https://img.shields.io/uptimerobot/status/m793494864-dfc695db066960233ac70f45?color=brightgreeen\u0026label=Alertmanager\u0026style=for-the-badge\u0026logo=prometheus\u0026logoColor=white)](https://status.devbu.io)\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Age-Days](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.devbu.io%2Fcluster_age_days\u0026style=flat-square\u0026label=Age)](https://github.com/kashalls/kromgo)\u0026nbsp;\u0026nbsp;\n[![Uptime-Days](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.devbu.io%2Fcluster_uptime_days\u0026style=flat-square\u0026label=Uptime)](https://github.com/kashalls/kromgo)\u0026nbsp;\u0026nbsp;\n[![Node-Count](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.devbu.io%2Fcluster_node_count\u0026style=flat-square\u0026label=Nodes)](https://github.com/kashalls/kromgo)\u0026nbsp;\u0026nbsp;\n[![Pod-Count](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.devbu.io%2Fcluster_pod_count\u0026style=flat-square\u0026label=Pods)](https://github.com/kashalls/kromgo)\u0026nbsp;\u0026nbsp;\n[![CPU-Usage](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.devbu.io%2Fcluster_cpu_usage\u0026style=flat-square\u0026label=CPU)](https://github.com/kashalls/kromgo)\u0026nbsp;\u0026nbsp;\n[![Memory-Usage](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.devbu.io%2Fcluster_memory_usage\u0026style=flat-square\u0026label=Memory)](https://github.com/kashalls/kromgo)\u0026nbsp;\u0026nbsp;\n[![Power-Usage](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.devbu.io%2Fcluster_power_usage\u0026style=flat-square\u0026label=Power)](https://github.com/kashalls/kromgo)\u0026nbsp;\u0026nbsp;\n[![Alerts](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.devbu.io%2Fcluster_alert_count\u0026style=flat-square\u0026label=Alerts)](https://github.com/kashalls/kromgo)\n\n\u003c/div\u003e\n\n---\n\n## \u003cimg src=\"https://fonts.gstatic.com/s/e/notoemoji/latest/1f4a1/512.gif\" alt=\"💡\" width=\"20\" height=\"20\"\u003e Overview\n\nThis is a mono repository for my home infrastructure and Kubernetes cluster. I try to adhere to Infrastructure as Code (IaC) and GitOps practices using tools like [Ansible](https://www.ansible.com/), [Terraform](https://www.terraform.io/), [Kubernetes](https://kubernetes.io/), [Flux](https://github.com/fluxcd/flux2), [Renovate](https://github.com/renovatebot/renovate), and [GitHub Actions](https://github.com/features/actions).\n\n---\n\n## \u003cimg src=\"https://fonts.gstatic.com/s/e/notoemoji/latest/1f331/512.gif\" alt=\"🌱\" width=\"20\" height=\"20\"\u003e Kubernetes\n\nMy Kubernetes cluster is deployed with [Talos](https://www.talos.dev). This is a semi-hyper-converged cluster, workloads and block storage are sharing the same available resources on my nodes while I have a separate server with ZFS for NFS/SMB shares, bulk file storage and backups.\n\nThere is a template over at [onedr0p/cluster-template](https://github.com/onedr0p/cluster-template) if you want to try and follow along with some of the practices I use here.\n\n### Core Components\n\n- [actions-runner-controller](https://github.com/actions/actions-runner-controller): Self-hosted Github runners.\n- [cert-manager](https://github.com/cert-manager/cert-manager): Creates SSL certificates for services in my cluster.\n- [cilium](https://github.com/cilium/cilium): eBPF-based networking for my workloads.\n- [cloudflared](https://github.com/cloudflare/cloudflared): Enables Cloudflare secure access to my routes.\n- [external-dns](https://github.com/kubernetes-sigs/external-dns): Automatically syncs ingress DNS records to a DNS provider.\n- [external-secrets](https://github.com/external-secrets/external-secrets): Managed Kubernetes secrets using [1Password Connect](https://github.com/1Password/connect).\n- [rook](https://github.com/rook/rook): Distributed block storage for peristent storage.\n- [sops](https://github.com/getsops/sops): Managed secrets for Kubernetes and Terraform which are commited to Git.\n- [spegel](https://github.com/spegel-org/spegel): Stateless cluster local OCI registry mirror.\n- [volsync](https://github.com/backube/volsync): Backup and recovery of persistent volume claims.\n\n### GitOps\n\n[Flux](https://github.com/fluxcd/flux2) watches the clusters in my [kubernetes](./kubernetes/) folder (see Directories below) and makes the changes to my clusters based on the state of my Git repository.\n\nThe way Flux works for me here is it will recursively search the `kubernetes/apps` folder until it finds the most top level `kustomization.yaml` per directory and then apply all the resources listed in it. That aforementioned `kustomization.yaml` will generally only have a namespace resource and one or many Flux kustomizations (`ks.yaml`). Under the control of those Flux kustomizations there will be a `HelmRelease` or other resources related to the application which will be applied.\n\n[Renovate](https://github.com/renovatebot/renovate) watches my **entire** repository looking for dependency updates, when they are found a PR is automatically created. When some PRs are merged Flux applies the changes to my cluster.\n\n### Directories\n\nThis Git repository contains the following directories under [Kubernetes](./kubernetes/).\n\n```sh\n📁 kubernetes\n├── 📁 apps       # applications\n├── 📁 components # re-useable kustomize components\n└── 📁 flux       # flux system configuration\n```\n\n### Flux Workflow\n\nThis is a high-level look how Flux deploys my applications with dependencies. In most cases a `HelmRelease` will depend on other `HelmRelease`'s, in other cases a `Kustomization` will depend on other `Kustomization`'s, and in rare situations an app can depend on a `HelmRelease` and a `Kustomization`. The example below shows that `atuin` won't be deployed or upgrade until the `rook-ceph-cluster` Helm release is installed or in a healthy state.\n\n```mermaid\ngraph TD\n    A\u003eKustomization: rook-ceph] --\u003e|Creates| B[HelmRelease: rook-ceph]\n    A\u003eKustomization: rook-ceph] --\u003e|Creates| C[HelmRelease: rook-ceph-cluster]\n    C\u003eHelmRelease: rook-ceph-cluster] --\u003e|Depends on| B\u003eHelmRelease: rook-ceph]\n    D\u003eKustomization: atuin] --\u003e|Creates| E(HelmRelease: atuin)\n    E\u003eHelmRelease: atuin] --\u003e|Depends on| C\u003eHelmRelease: rook-ceph-cluster]\n```\n\n### Networking\n\n\u003cdetails\u003e\n  \u003csummary\u003eClick here to see my high-level network diagram\u003c/summary\u003e\n\n  \u003cimg src=\"https://raw.githubusercontent.com/onedr0p/home-ops/main/docs/src/assets/network-topology.png\" align=\"center\" width=\"600px\" alt=\"dns\"/\u003e\n\u003c/details\u003e\n\n---\n\n## \u003cimg src=\"https://fonts.gstatic.com/s/e/notoemoji/latest/1f636_200d_1f32b_fe0f/512.gif\" alt=\"😶\" width=\"20\" height=\"20\"\u003e Cloud Dependencies\n\nWhile most of my infrastructure and workloads are self-hosted I do rely upon the cloud for certain key parts of my setup. This saves me from having to worry about three things. (1) Dealing with chicken/egg scenarios, (2) services I critically need whether my cluster is online or not and (3) The \"hit by a bus factor\" - what happens to critical apps (e.g. Email, Password Manager, Photos) that my family relies on when I no longer around.\n\nAlternative solutions to the first two of these problems would be to host a Kubernetes cluster in the cloud and deploy applications like [HCVault](https://www.vaultproject.io/), [Vaultwarden](https://github.com/dani-garcia/vaultwarden), [ntfy](https://ntfy.sh/), and [Gatus](https://gatus.io/); however, maintaining another cluster and monitoring another group of workloads would be more work and probably be more or equal out to the same costs as described below.\n\n| Service                                         | Use                                                               | Cost           |\n|-------------------------------------------------|-------------------------------------------------------------------|----------------|\n| [1Password](https://1password.com/)             | Secrets with [External Secrets](https://external-secrets.io/)     | ~$65/yr        |\n| [Cloudflare](https://www.cloudflare.com/)       | Domain and S3                                                     | ~$30/yr        |\n| [GCP](https://cloud.google.com/)                | Voice interactions with Home Assistant over Google Assistant      | Free           |\n| [GitHub](https://github.com/)                   | Hosting this repository and continuous integration/deployments    | Free           |\n| [Migadu](https://migadu.com/)                   | Email hosting                                                     | ~$20/yr        |\n| [Pushover](https://pushover.net/)               | Kubernetes Alerts and application notifications                   | $5 OTP         |\n| [UptimeRobot](https://uptimerobot.com/)         | Monitoring internet connectivity and external facing applications | ~$58/yr        |\n|                                                 |                                                                   | Total: ~$20/mo |\n\n---\n\n## \u003cimg src=\"https://fonts.gstatic.com/s/e/notoemoji/latest/1f30e/512.gif\" alt=\"🌎\" width=\"20\" height=\"20\"\u003e DNS\n\nIn my cluster there are two instances of [ExternalDNS](https://github.com/kubernetes-sigs/external-dns) running. One for syncing private DNS records to my `UDM Pro Max` using [ExternalDNS webhook provider for UniFi](https://github.com/kashalls/external-dns-unifi-webhook), while another instance syncs public DNS to `Cloudflare`. This setup is managed by creating ingresses with two specific classes: `internal` for private DNS and `external` for public DNS. The `external-dns` instances then syncs the DNS records to their respective platforms accordingly.\n\n---\n\n## \u003cimg src=\"https://fonts.gstatic.com/s/e/notoemoji/latest/2699_fe0f/512.gif\" alt=\"⚙\" width=\"20\" height=\"20\"\u003e Hardware\n\n\u003cdetails\u003e\n  \u003csummary\u003eClick here to see my server rack\u003c/summary\u003e\n\n  \u003cimg width=\"273\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/5bd67299-a809-4e53-ba39-707cac8d3852\" /\u003e\n\u003c/details\u003e\n\n| Device                      | Num | OS Disk Size | Data Disk Size                  | Ram  | OS            | Function                |\n|-----------------------------|-----|--------------|---------------------------------|------|---------------|-------------------------|\n| ASUS NUC 14 Pro CU 5 125H   | 3   | 1TB SSD      | 1TB (local) / 800GB (rook-ceph) | 96GB | Talos         | Kubernetes              |\n| Dell PowerEdge T340         | 1   | 1TB SSD      | 8x22TB ZFS (mirrored vdevs)     | 64GB | TrueNAS SCALE | NFS + Backup Server     |\n| PiKVM (RasPi 4)             | 1   | 64GB (SD)    | -                               | 4GB  | PiKVM         | KVM                     |\n| TESmart 8 Port KVM Switch   | 1   | -            | -                               | -    | -             | Network KVM (for PiKVM) |\n| UniFi UDMP Max              | 1   | -            | 2x4TB HDD                       | -    | -             | Router \u0026 NVR            |\n| UniFi US-16-XG              | 1   | -            | -                               | -    | -             | 10Gb Core Switch        |\n| UniFi USW-Enterprise-24-PoE | 1   | -            | -                               | -    | -             | 2.5Gb PoE Switch        |\n| UniFi USP PDU Pro           | 1   | -            | -                               | -    | -             | PDU                     |\n| APC SMT1500RM2U             | 1   | -            | -                               | -    | -             | UPS                     |\n\n---\n\n## \u003cimg src=\"https://fonts.gstatic.com/s/e/notoemoji/latest/1f31f/512.gif\" alt=\"🌟\" width=\"20\" height=\"20\"\u003e Stargazers\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ca href=\"https://star-history.com/#onedr0p/home-ops\u0026Date\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=onedr0p/home-ops\u0026type=Date\u0026theme=dark\" /\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=onedr0p/home-ops\u0026type=Date\" /\u003e\n    \u003cimg alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=onedr0p/home-ops\u0026type=Date\" /\u003e\n  \u003c/picture\u003e\n\u003c/a\u003e\n\n\u003c/div\u003e\n\n---\n\n## \u003cimg src=\"https://fonts.gstatic.com/s/e/notoemoji/latest/1f64f/512.gif\" alt=\"🙏\" width=\"20\" height=\"20\"\u003e Gratitude and Thanks\n\nThanks to all the people who donate their time to the [Home Operations](https://discord.gg/home-operations) Discord community. Be sure to check out [kubesearch.dev](https://kubesearch.dev/) for ideas on how to deploy applications or get ideas on what you could deploy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonedr0p%2Fhome-ops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonedr0p%2Fhome-ops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonedr0p%2Fhome-ops/lists"}