{"id":17027336,"url":"https://github.com/jaypyles/kubernetes-starter","last_synced_at":"2026-04-30T18:32:56.636Z","repository":{"id":257195713,"uuid":"857487575","full_name":"jaypyles/kubernetes-starter","owner":"jaypyles","description":"Create a very basic kubernetes cluster in Virtualbox using Ansible.","archived":false,"fork":false,"pushed_at":"2024-09-18T02:38:29.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T19:29:21.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/jaypyles.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":"2024-09-14T19:33:55.000Z","updated_at":"2025-02-10T10:59:30.000Z","dependencies_parsed_at":"2024-09-18T05:58:54.042Z","dependency_job_id":"dc97a963-c6be-4b55-aabc-b8a93c02b811","html_url":"https://github.com/jaypyles/kubernetes-starter","commit_stats":null,"previous_names":["jaypyles/kubernetes-starter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jaypyles/kubernetes-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaypyles%2Fkubernetes-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaypyles%2Fkubernetes-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaypyles%2Fkubernetes-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaypyles%2Fkubernetes-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaypyles","download_url":"https://codeload.github.com/jaypyles/kubernetes-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaypyles%2Fkubernetes-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32473804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":[],"created_at":"2024-10-14T07:47:31.189Z","updated_at":"2026-04-30T18:32:56.620Z","avatar_url":"https://github.com/jaypyles.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Summary\n\n## Startup\n\n- Create two virtual machines using VirtualBox, using a host-only network adapter configuration\n\n- Enable the DHCP server on the host only network\n\n  - `sudo systemctl restart networking \u0026\u0026 sudo dhclient` to assign an address using dhcp\n\n## Creating a Cluster\n\n### Master Node\n\n- Disable swap\n\n```bash\nsudo swapoff -a\n\nsudo sed -i '/ swap / s/^\\(.*\\)$/#\\1/g' /etc/fstab\n```\n\n- Init the cluster\n\n```bash\nsudo kubeadm init --apiserver-advertise-address=\u003cHOST_ONLY_ADAPTER_IP\u003e --pod-network-cidr=192.168.0.0/16\n```\n\n- Apply a network configuration\n\n```bash\n# apply flannel network config\nkubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml\n```\n\n- Get the join token\n\n```bash\nkubeadm token create --print-join-command\n```\n\n### Worker Node\n\n- Join cluster\n\n```bash\n#join the cluster\nsudo kubeadm join \u003cMASTER_IP\u003e --token \u003cTOKEN\u003e --discovery-token-ca-cert-hash \u003cHASH\u003e\n```\n\n## Troubleshooting\n\nUsing Debian 11 or Ubuntu 22.04, the following steps are required to enable systemd cgroup\n\n```bash\nsudo containerd config default | sudo tee /etc/containerd/config.toml\nsudo sed -i 's/SystemdCgroup = false/SystemdCgroup = true/g' /etc/containerd/config.toml\nsudo service containerd restart\nsudo service kubelet restart\n```\n\nThis is done manually for now to avoid cert errors:\n\n```bash\nsudo rm -rf $HOME/.kube || true\nsudo mkdir -p $HOME/.kube\nsudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config\nsudo chown $(id -u):$(id -g) $HOME/.kube/config\n```\n\n# K3S setup\n\nInstall k3s\n\n```bash\ncurl -sfL https://get.k3s.io | sh -\n```\n\nGet join token\n```bash\ncat /etc/rancher/k3s/k3s.yaml\n```\n\nJoin the cluster on the worker node\n\n```bash\nexport URL=\"https://\u003cMASTER_IP\u003e:6443\"\nexport TOKEN=\"\u003c\u003cTOKEN\u003e\u003e\"\ncurl -sfL https://get.k3s.io | K3S_URL=$URL K3S_TOKEN=$TOKEN sh -\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaypyles%2Fkubernetes-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaypyles%2Fkubernetes-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaypyles%2Fkubernetes-starter/lists"}