{"id":34932562,"url":"https://github.com/okieraised/rke2-deployment","last_synced_at":"2026-03-17T19:26:07.593Z","repository":{"id":309204659,"uuid":"1031538048","full_name":"okieraised/rke2-deployment","owner":"okieraised","description":"Single-node RKE2 deployment","archived":false,"fork":false,"pushed_at":"2025-09-16T14:17:40.000Z","size":466,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-16T14:53:45.089Z","etag":null,"topics":["data","helm","helm-charts","helm-deployment","rke2"],"latest_commit_sha":null,"homepage":"","language":"Smarty","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/okieraised.png","metadata":{"files":{"readme":"README.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":"2025-08-04T00:25:32.000Z","updated_at":"2025-09-16T14:17:44.000Z","dependencies_parsed_at":"2025-09-16T14:45:15.927Z","dependency_job_id":null,"html_url":"https://github.com/okieraised/rke2-deployment","commit_stats":null,"previous_names":["okieraised/rke2-deployment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/okieraised/rke2-deployment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okieraised%2Frke2-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okieraised%2Frke2-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okieraised%2Frke2-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okieraised%2Frke2-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okieraised","download_url":"https://codeload.github.com/okieraised/rke2-deployment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okieraised%2Frke2-deployment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30629254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: 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":["data","helm","helm-charts","helm-deployment","rke2"],"created_at":"2025-12-26T17:06:06.398Z","updated_at":"2026-03-17T19:26:07.585Z","avatar_url":"https://github.com/okieraised.png","language":"Smarty","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RKE2-Deployment\nThis is my personal ***homelab*** helm deployment with RKE2 which does not use any of the Bitnami helm charts\n\n## Progress\n  - [x] Local Path Provisioner\n  - [x] GPU-Operator (with DCGM Exporter)\n  - [x] Cert Manager\n  - [x] PostgreSQL\n  - [x] MariaDB\n  - [x] MySQL\n  - [x] Cassandra\n  - [x] Elasticsearch\n  - [x] Redis\n  - [x] Keycloak\n  - [x] EMQX\n  - [x] Centrifugo\n  - [x] Harbor Registry\n  - [x] Ingress\n  - [x] MLFlow (Artifacts to MinIO, DB to Postgres)\n  - [ ] Kubeflow\n  - [ ] KServe/Seldon\n  - [x] Airflow\n  - [x] Superset\n  - [x] Prometheus/Grafana\n  - [ ] Openmetadata\n  - [ ] DataHub\n  - [ ] Oauth2-Proxy\n\n## Planned\n  - [ ] CDC: Debezium + Kafka/Redpanda or NATS JetStream.\n  - [ ] Apache Flink: Streaming\n  - [x] ReductStore: Hot telemetry + ROS2 storage-\n  - [x] OIDC Integration\n  - [ ] Velero: Cluster Backup\n\n## I. Installation\n### 1. Single Node\n    ```shell\n    curl -sfL https://get.rke2.io | sudo sh -\n    sudo systemctl enable rke2-server.service\n    sudo systemctl start rke2-server.service\n    ```\n\n### 2. Install kubectl\n    ```shell\n    curl -LO \"https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl\"\n    sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl\n    ```\n\n### 3. Add ```dev``` context\n    ```shell\n    kubectl config set-context dev \\\n      --cluster=default \\\n      --user=default \\\n      --namespace=dev\n    ```\n\n### 4. Change ```data-dir``` location\n   - Stop rke2 \n       ```shell\n       sudo systemctl stop rke2-server\n       sudo systemctl stop rke2-agent\n       ```\n   - Create ```config.yaml```\n       ```shell\n       touch /etc/rancher/rke2/config.yaml\n       ```\n   - Add the ```data-dir``` to the config file:\n       ```text\n       data-dir: \"/home/tripg/Workspace/rancher/rke2\"\n       disable: rke2-ingress-nginx\n       enable-servicelb: true\n       ```\n   - Sync files:\n       ```shell\n       sudo rsync -a /var/lib/rancher/rke2/ /home/tripg/Workspace/rancher/rke2/\n       ```\n   - Restart the RKE2 server\n       ```shell\n       sudo systemctl start rke2-server\n       ```\n\n### 5. Change Docker location\n   - Create ```daemon.json``` file:\n       ```shell\n       touch /etc/docker/daemon.json\n       ```\n   - Modify the ```/etc/docker/daemon.json``` config:\n       ```shell\n       {\n           \"data-root\": \"/home/tripg/Workspace/docker\"\n       }\n       ```\n     \n## II. Deployment\n### 1. Common Arguments\n    - Command:\n      - `helmfile init`: Initialize the helmfile, includes version checking and installation of helm and plug-ins\n      - `helmfile list`: list all the releases\n      - `helmfile template`: run helm templateon all releases, useful for debugging\n      - `helmfile sync`: run helm upgrade --install on all releases\n      - `helmfile apply`: look at what is already present in the cluster, and run helm upgrade --install only on releases that changed\n      - `helmfile diff`: only run the diff\n      - `helmfile destroy`: uninstall all releases\n    - Args:\n      - `-f, --file helmfile.yaml`: load config from file or directory\n      - `-e, --environment`: specify the environment name\n      - `--selector name=ingress`: Only run using the releases that match labels\n      - `--skip-deps`: skip running `helm repo update` and `helm dependency build`\n      - `--disable-force-update`: do not force helm repos to update when executing `helm repo add`\n\n### 2. Init ```helmfile```:\n    ```shell\n    helmfile init -i\n    ```\n\n### 3. Install all components:\n    ```shell\n    helmfile apply -i -e dev --disable-force-update --skip-deps --include-needs --selector group=infra\n    helmfile apply -i -e dev --disable-force-update --skip-deps --include-needs --selector group=init\n    ```\n\n### 4. Install individual components:\n    ```shell\n    helmfile apply -i -e dev --disable-force-update --skip-deps --selector name=keycloak\n    ```\n\n### 5. Uninstall everything:\n    ```shell\n    helmfile destroy -i -e dev --disable-force-update\n    ```\n   \n## III. GPU Operator\n### 1. Install ```NVIDIA``` container runtime:\nFollow instructions on [container runtime](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html)\n\n### 2. Install ```gpu-operator```:\nFollow instructions on [gpu operator](https://docs.nvidia.com/datacenter/cloud-native/gpu-operator/latest/getting-started.html)\n\n### 3. Troubleshooting:\n[Troubleshoot](https://docs.nvidia.com/datacenter/cloud-native/gpu-operator/24.9.1/troubleshooting.html)\n\n\n## IV. Troubleshooting\n### 1. Too many open files\ncaused by running out of inotify resources. Resource limits are defined by fs.inotify.max_user_watches and \nfs.inotify.max_user_instances system variables. For example, in Ubuntu these default to 8192 and 128 respectively, \nwhich is not enough to create a cluster with many nodes. \n\nMofidy the ```/etc/sysctl.conf```\n```shell\nfs.inotify.max_user_watches = 2099999999\nfs.inotify.max_user_instances = 2099999999\nfs.inotify.max_queued_events = 2099999999\nvm.max_map_count=262144\n```\nThen run:\n```shell\nsudo sysctl --system\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokieraised%2Frke2-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokieraised%2Frke2-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokieraised%2Frke2-deployment/lists"}