{"id":13819494,"url":"https://github.com/JefeDavis/k8s-HomeOps","last_synced_at":"2025-05-16T04:33:59.472Z","repository":{"id":154059939,"uuid":"540669728","full_name":"JefeDavis/k8s-HomeOps","owner":"JefeDavis","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-09T18:15:26.000Z","size":4573,"stargazers_count":13,"open_issues_count":48,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-09T18:24:39.773Z","etag":null,"topics":["fluxcd","k8s-at-home","talos"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JefeDavis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-24T01:17:11.000Z","updated_at":"2025-05-09T18:13:15.000Z","dependencies_parsed_at":"2023-10-03T07:29:43.318Z","dependency_job_id":"56c4c4bd-764e-4deb-8772-0de37c5d38c8","html_url":"https://github.com/JefeDavis/k8s-HomeOps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JefeDavis%2Fk8s-HomeOps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JefeDavis%2Fk8s-HomeOps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JefeDavis%2Fk8s-HomeOps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JefeDavis%2Fk8s-HomeOps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JefeDavis","download_url":"https://codeload.github.com/JefeDavis/k8s-HomeOps/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254470304,"owners_count":22076566,"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":["fluxcd","k8s-at-home","talos"],"created_at":"2024-08-04T08:00:49.258Z","updated_at":"2025-05-16T04:33:59.466Z","avatar_url":"https://github.com/JefeDavis.png","language":"CSS","funding_links":[],"categories":["CSS"],"sub_categories":[],"readme":"# k8s-HomeOps\n\n### Core Components\n\n- [actions-runner-controller](https://github.com/actions/actions-runner-controller): Self-hosted Github runners.\n- [cert-manager](https://cert-manager.io/docs/): Creates SSL certificates for services in my Kubernetes cluster.\n- [external-dns](https://github.com/kubernetes-sigs/external-dns): Automatically manages DNS records for my cluster.\n- [metallb](https://metallb.universe.tf/): Bare-Metal Load-balancer\nimplementation.\n- [ingress-nginx](https://github.com/kubernetes/ingress-nginx/): Ingress controller to expose HTTP traffic to pods over DNS.\n- [synology-csi](https://github.com/SynologyOpenSource/synology-csi): The official Container Storage Interface driver for Synology NAS.\n- [sops](https://toolkit.fluxcd.io/guides/mozilla-sops/): Managed secrets for Kubernetes, Ansible and Terraform which are commited to Git.\n- [tf-controller](https://github.com/weaveworks/tf-controller): Additional Flux component used to run Terraform from within a Kubernetes cluster.\n- [volsync](https://github.com/backube/volsync) and [snapscheduler](https://github.com/backube/snapscheduler): Backup and recovery of persistent volume claims.\n- [system-upgrade-controller](https://github.com/rancher/system-upgrade-controller) Automatically updates kubernetes based off of a plan.\n\n### GitOps\n\n[Flux](https://github.com/fluxcd/flux2) watches my [kubernetes](./kubernetes/) folder (see Directories below) and makes the changes to my cluster based on the YAML manifests.\n\nThe way Flux works for me here is it will recursively search the [./kubernetes/jsdyb-k8s-001/apps](./kubernetes/jsdyb-k8s-001/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. Those Flux kustomizations will generally have a `HelmRelease` or other resources related to the application underneath it 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](https://github.com/fluxcd/flux2) applies the changes to my cluster.\n\n### Directories\n\nThis Git repository contains the following directories under [kubernetes](./kubernetes/).\n\n```sh\n📁 k8s-home-ops\n├── 📁 kubernetes                 # kubernetes configurations\n│   ├── 📁 apps                   # applications\n│   │   └─ 📁 network             # namespace folder\n│   │      └─ 📁 cert-manager     # application folder\n│   ├── 📁 bootstrap              # bootstrap procedures\n│   ├── 📁 flux                   # core flux configuration\n│   └── 📁 templates              # re-useable components\n└── 📁 infrastructure             # infrastructure configuration\n```\n\n### Cluster layout\n\nBelow is a a high level look at the layout of how my directory structure with Flux works. In this brief example you are able to see that `authentik` will not be able to run until `cloudnative-pg` is ready, which itself requires `rook-ceph-cluster` to be ready\n\n```mermaid\nflowchart TD\n  id01\u003eKustomization: cluster] ==\u003e|Creates| id02\u003eKustomization: cluster-apps]\n  id02 ==\u003e|Creates| id06\u003eKustomization: cluster-apps-rook-ceph]\n  id02 ==\u003e|Creates| id07\u003eKustomization: cluster-apps-rook-ceph-cluster]\n  id02 ==\u003e|Creates| id08\u003eKustomization: cluster-apps-cloudnative-pg]\n  id02 ==\u003e|Creates| id09\u003eKustomization: cluster-apps-authentik-database]\n  id02 ==\u003e|Creates| id10\u003eKustomization: cluster-apps-authentik]\n  id06 ==\u003e|Creates| id11(HelmRelease: rook-ceph-operator)\n  id07 -.-\u003e|Depends on| id06\n  id07 ==\u003e|Creates| id12(HelmRelease: rook-ceph-cluster)\n  id08 -.-\u003e|Depends on| id07\n  id08 ==\u003e|Creates| id13(HelmRelease: cloudnative-pg)\n  id09 -.-\u003e|Depends on| id08\n  id09 ==\u003e|Creates| id14[PGCluster: pg-authentik]\n  id10 -.-\u003e|Depends on| id09\n  id10 ==\u003e|Creates| id15(HelmRelease: authentik)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJefeDavis%2Fk8s-HomeOps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJefeDavis%2Fk8s-HomeOps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJefeDavis%2Fk8s-HomeOps/lists"}