{"id":25750327,"url":"https://github.com/maxwlang/argocd-homelab","last_synced_at":"2026-03-06T14:32:58.439Z","repository":{"id":221461077,"uuid":"754440603","full_name":"maxwlang/argocd-homelab","owner":"maxwlang","description":"My homelab kubernetes stack","archived":false,"fork":false,"pushed_at":"2026-02-02T03:33:01.000Z","size":604,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-02T03:42:39.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Mustache","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxwlang.png","metadata":{"files":{"readme":"README-k8s.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-08T03:48:16.000Z","updated_at":"2026-02-02T03:33:05.000Z","dependencies_parsed_at":"2025-02-18T01:21:49.627Z","dependency_job_id":"41ca0a2d-71fd-46d3-a608-ffb65618944c","html_url":"https://github.com/maxwlang/argocd-homelab","commit_stats":null,"previous_names":["maxwlang/argocd-homelab"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxwlang/argocd-homelab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxwlang%2Fargocd-homelab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxwlang%2Fargocd-homelab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxwlang%2Fargocd-homelab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxwlang%2Fargocd-homelab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxwlang","download_url":"https://codeload.github.com/maxwlang/argocd-homelab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxwlang%2Fargocd-homelab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30180672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T12:39:21.703Z","status":"ssl_error","status_checked_at":"2026-03-06T12:36:09.819Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-02-26T13:16:18.092Z","updated_at":"2026-03-06T14:32:58.417Z","avatar_url":"https://github.com/maxwlang.png","language":"Mustache","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setup\n\n## Initial cluster setup\n1. Create cluster\n2. Install ArgoCD\n    1. `cd install`\n    2. `kubectl create namespace argocd`\n    3. Apply secrets\n        1. `kubectl apply -f ../secrets/repo-secret.yaml`\n        2. `kubectl apply -f ../secrets/sops-age-secret.yaml`\n    4. `helm install argo-cd argo-cd/ --namespace argocd --values values-override.yaml`\n3. Expose ArgoCD to loadbalencer\n    1. `kubectl patch svc argocd-server -n argocd -p '{\"spec\": {\"type\": \"LoadBalancer\"}}'`\n4. Login to ArgoCD\n    1. `kubectl port-forward svc/argocd-server -n argocd 8080:443`\n    2. `argocd admin initial-password -n argocd`\n    3. [Login](https://localhost:8080) with admin:\u003cpassword\u003e\n    4. Change password\n5. Allow ArgoCD to manage itself\n    1. `cd install`\n    2. `helm upgrade argocd ./argo-cd --namespace=argocd --create-namespace -f values-override.yaml`\n\n## Setup nvidia plugin\n1. Install nvidia driver on agent 1\n    1. `sudo apt install gcc build-essential -y \u0026\u0026 wget http://international.download.nvidia.com/XFree86/Linux-x86_64/545.29.06/NVIDIA-Linux-x86_64-545.29.06.run \u0026\u0026 sudo chmod +x NVIDIA-Linux-x86_64-545.29.06.run \u0026\u0026 sudo ./NVIDIA-Linux-x86_64-545.29.06.run`\n    2. Let the installer disable nouveau, patch initramfs, then reboot\n    3. `sudo ./NVIDIA-Linux-x86_64-545.29.06.run`\n    4. reboot \n2. Apply nvidia driver patches\n    1. `sudo mkdir /opt/nvidia \u0026\u0026 sudo chown -R $USER /opt/nvidia \u0026\u0026 cd /opt/nvidia \u0026\u0026 git clone https://github.com/keylase/nvidia-patch \u0026\u0026 cd nvidia-patch \u0026\u0026 sudo bash patch.sh \u0026\u0026 sudo bash patch-fbc.sh`\n3. Install nvidia container toolkit\n    1. Follow https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#installing-with-apt\n    2. Or just run this:\n        ```bash\n        curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \\\n        \u0026\u0026 curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \\\n        sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \\\n        sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list \u0026\u0026 sudo apt update \u0026\u0026 sudo apt install -y nvidia-container-toolkit\n        \n4. Install nvidia plugin\n    1. Follow https://github.com/NVIDIA/k8s-device-plugin#configure-containerd\n5. Test cuda\n    1. Pull image `sudo ctr image pull docker.io/nvidia/cuda:12.3.1-base-ubuntu20.04`\n    2. Run image `sudo ctr run --rm --gpus 0 -t docker.io/nvidia/cuda:12.3.1-base-ubuntu20.04 nvidia-smi`\n6. Reboot agent 1\n7. Test cuda on kubernetes\n    ```bash\n    cat \u003c\u003cEOF | kubectl create -f -\n    apiVersion: v1\n    kind: Pod\n    metadata:\n        name: gpu-pod\n    spec:\n        restartPolicy: Never\n        containers:\n            - name: cuda-container\n              image: nvcr.io/nvidia/k8s/cuda-sample:vectoradd-cuda10.2\n              command: [ \"/bin/bash\", \"-c\", \"--\" ]\n              args: [ \"while true; do sleep 30; done;\" ]\n              env:\n              - name: NVIDIA_VISIBLE_DEVICES\n                value: \"all\"\n              - name: NVIDIA_DRIVER_CAPABILITIES\n                value: \"all\"\n              # Try to avoid using resource limits, so we can use the gpu on multiple containers\n              #resources:\n              #  limits:\n              #      nvidia.com/gpu: 1 # requesting 1 GPU\n        tolerations:\n        - key: nvidia.com/gpu\n          operator: Exists\n          effect: NoSchedule\n    EOF\n\n# Cluster Services \u0026 Plugins / Patches\n| Service | Namespace | Description | URL |\n| ------- | ------- | ----------- | --- |\n| ArgoCD | argocd | GitOps | https://localhost:8080 (Proxy) |\n| Ksops | N/A | Sops wrapper for kubernetes secrets | N/A |\n| Plex (Published) | media | Media server | https://app.plex.tv |\n| Plex (Local) | media | Media server | https://app.plex.tv |\n| Longhorn | longhorn-system | Replicating local storage | N/A |\n| local-storage-provisioner | local-path-storage | Local storage provisioner | N/A |\n| [Accomplice-V2](https://github.com/maxwlang/accomplice-v2) | discord | Home grown Discord leaderboard bot | N/A |\n| MetalLB | metallb-system | Loadbalencer | N/A |\n| Nvidia Device Plugin | system | Nvidia GPU support | N/A |\n| Traefik | traefik | Ingress controller | N/A |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxwlang%2Fargocd-homelab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxwlang%2Fargocd-homelab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxwlang%2Fargocd-homelab/lists"}