{"id":16952146,"url":"https://github.com/superseb/multipass-rke2","last_synced_at":"2025-04-14T03:14:01.634Z","repository":{"id":69127306,"uuid":"359807738","full_name":"superseb/multipass-rke2","owner":"superseb","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-29T18:40:39.000Z","size":23,"stargazers_count":2,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T03:13:47.959Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/superseb.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}},"created_at":"2021-04-20T12:28:44.000Z","updated_at":"2025-03-14T00:58:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"81e3ed5a-0907-46a3-866c-a5df8a3af8e5","html_url":"https://github.com/superseb/multipass-rke2","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":0.2666666666666667,"last_synced_commit":"1f19e33061ce36acddfae56796e7e15b3c8b9e95"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superseb%2Fmultipass-rke2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superseb%2Fmultipass-rke2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superseb%2Fmultipass-rke2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superseb%2Fmultipass-rke2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superseb","download_url":"https://codeload.github.com/superseb/multipass-rke2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813802,"owners_count":21165634,"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":[],"created_at":"2024-10-13T22:01:22.103Z","updated_at":"2025-04-14T03:14:01.595Z","avatar_url":"https://github.com/superseb.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rke2 cluster on multipass instances\n\nThis script will create a configurable amount of instances using [multipass](https://github.com/CanonicalLtd/multipass/), install [rke2](https://github.com/rancher/rke2) server, and add additional server/agent instances to the cluster.\n\n## Requirements\n\n* multipass (See [multipass: Getting it](https://github.com/CanonicalLtd/multipass#getting-it))\n\nThis is tested on MacOS and Ubuntu Linux 22.04.\n\n## Running it\n\nClone this repo, and run the script:\n\n```\nbash multipass-rke2.sh\n```\n\nThis will (defaults):\n\n* Use `generic` as name for your cluster (configurable using `NAME`)\n* Create one master (configurable using `MASTER_NODE_COUNT`) with 2 CPU (`MASTER_NODE_CPU`), 20G disk (`MASTER_DISK_SIZE`) and 4G of memory (`MASTER_MEMORY_SIZE`) using Ubuntu jammy (`IMAGE`)\n* Create two agents (configurable using `AGENT_NODE_COUNT`) with 2 CPU (`AGENT_NODE_CPU`), 40G disk (`AGENT_DISK_SIZE`) and 8G of memory (`AGENT_MEMORY_SIZE`) using Ubuntu jammy (`IMAGE`)\n* Additional certificate names (`tls-san`) is set to `rancher.test` (configurable using `TLSSAN`)\n* Store kubeconfig in `${HOME}/.kube/config-${NAME}` (configurable using `LOCALKUBECONFIG`)\n\n## Quickstart Ubuntu 22.04 droplet\n\n```\nsudo snap install multipass jq\nwget https://raw.githubusercontent.com/superseb/multipass-rke2/master/multipass-rke2.sh\nbash multipass-rke2.sh\ncurl -Lo /usr/local/bin/kubectl \"https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl\"\nchmod +x /usr/local/bin/kubectl\nkubectl --kubeconfig $HOME/.kube/config-* get nodes\n```\n\n## Clean up\n\nYou can clean up the instances by running `remove_rke2.sh`, this only works for the default cluster `NAME` (`generic`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperseb%2Fmultipass-rke2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperseb%2Fmultipass-rke2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperseb%2Fmultipass-rke2/lists"}