{"id":16952041,"url":"https://github.com/superseb/multipass-rke","last_synced_at":"2026-01-27T10:30:16.027Z","repository":{"id":51057003,"uuid":"162019696","full_name":"superseb/multipass-rke","owner":"superseb","description":"Create an RKE cluster using Canonical's multipass","archived":true,"fork":false,"pushed_at":"2021-05-25T11:10:27.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-04T09:41:27.157Z","etag":null,"topics":["docker","multipass","rancher","rke"],"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}},"created_at":"2018-12-16T16:27:07.000Z","updated_at":"2025-01-20T18:34:51.000Z","dependencies_parsed_at":"2022-09-04T03:40:22.024Z","dependency_job_id":null,"html_url":"https://github.com/superseb/multipass-rke","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/superseb%2Fmultipass-rke","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superseb%2Fmultipass-rke/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superseb%2Fmultipass-rke/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superseb%2Fmultipass-rke/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superseb","download_url":"https://codeload.github.com/superseb/multipass-rke/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239774082,"owners_count":19694697,"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":["docker","multipass","rancher","rke"],"created_at":"2024-10-13T22:01:18.924Z","updated_at":"2026-01-27T10:30:15.986Z","avatar_url":"https://github.com/superseb.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RKE cluster on multipass instances\n\nThis script will create a configurable amount of instances using [multipass](https://github.com/CanonicalLtd/multipass/), create or use specified SSH keys, install a configurable version of Docker on it, create the RKE configuration file (`cluster.yml`) and run RKE (`rke up`) to create the Kubernetes cluster.\n\n## Requirements\n\n* multipass (See [multipass: Getting it](https://github.com/CanonicalLtd/multipass#getting-it))\n* RKE (See [rke: latest release](https://github.com/rancher/rke/releases/latest))\n* Docker (to run `jq` in a container) or `jq` locally\n\n## Running it\n\nClone this repo, and run the script:\n\n```\nbash multipass-rke.sh\n```\n\nThis will (defaults):\n\n* Generate random name for your cluster (configurable using `NAME`)\n* Generate SSH key for RKE to access the nodes (configurable using `SSH_PRIVKEYFILE`, `SSH_PUBKEYFILE` and `SSH_PASSPHRASE`)\n* Create cloud-init to add SSH public key to the machines and install Docker (`19.03` by default, configurable using `DOCKER_VERSION`)\n* Create one machine (configurable using `COUNT_MACHINE`) with 2 CPU (`CPU_MACHINE`), 10G disk (`DISK_MACHINE`) and 4000M of memory (`MEMORY_MACHINE`) using Ubuntu focal (`IMAGE`)\n* Create cluster.yml file for RKE\n* Run `rke up` to create the cluster\n\n\n## Quickstart Ubuntu 20.04 droplet\n\n```\nsudo snap install multipass\nwget -O /usr/local/bin/rke https://github.com/$(wget https://github.com/rancher/rke/releases/latest -O - | egrep '/.*/.*/rke_linux-amd64' -o)\nchmod +x /usr/local/bin/rke\nwget https://raw.githubusercontent.com/superseb/multipass-rke/master/multipass-rke.sh\nbash multipass-rke.sh\ncurl -Lo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl\nchmod +x /usr/local/bin/kubectl\nkubectl --kubeconfig kube_config_* get nodes\n```\n\n## Clean up\n\nThe files that are created are:\n\n* `$NAME-cloud-init.yaml`\n* `$NAME-cluster.yml`\n* `$NAME-id_rsa` (if `SSH_PRIVKEYFILE` is empty)\n* `$NAME-id_rsa.pub` (if `SSH_PRIVKEYFILE` is empty)\n\nYou can clean up the instances by running `multipass delete rke-$NAME-{1,2,3} --purge` or (**WARNING** this deletes and purges all instances): `multipass delete --all --purge`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperseb%2Fmultipass-rke","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperseb%2Fmultipass-rke","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperseb%2Fmultipass-rke/lists"}