{"id":22983666,"url":"https://github.com/tibeer/k0s-testbed","last_synced_at":"2026-02-07T18:30:45.826Z","repository":{"id":47675150,"uuid":"516233804","full_name":"tibeer/k0s-testbed","owner":"tibeer","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-21T05:34:02.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-24T17:26:09.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tibeer.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":"2022-07-21T05:16:08.000Z","updated_at":"2022-07-21T05:16:08.000Z","dependencies_parsed_at":"2022-09-12T15:25:35.913Z","dependency_job_id":null,"html_url":"https://github.com/tibeer/k0s-testbed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tibeer/k0s-testbed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibeer%2Fk0s-testbed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibeer%2Fk0s-testbed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibeer%2Fk0s-testbed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibeer%2Fk0s-testbed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tibeer","download_url":"https://codeload.github.com/tibeer/k0s-testbed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibeer%2Fk0s-testbed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29203782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T17:44:10.191Z","status":"ssl_error","status_checked_at":"2026-02-07T17:44:07.936Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":"2024-12-15T02:46:54.816Z","updated_at":"2026-02-07T18:30:45.810Z","avatar_url":"https://github.com/tibeer.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to setup a k0s cluster on an oracle VM\n\nOracle offers you a free Ampera based VM with up to four cores and 24GB of RAM backed by a 200GB boot drive.\nTherefore I want to use this as a kubernetes machine. k0s is currently my distribution of choice since it's not as ugly as microk8s (snap data location is baaaaaad) and not as minimalistic as k3s. Though, I do not like mirantis either, but thats for the future ...\n\n## Preparation (within the VM)\n\nSince the default images provided by oracle are strange, I need to alter some iptables settings.\n\n```sh\nsudo iptables -P INPUT ACCEPT\nsudo iptables -P FORWARD ACCEPT\nsudo iptables -P OUTPUT ACCEPT\nsudo iptables -t nat -F\nsudo iptables -t mangle -F\nsudo iptables -F\nsudo iptables -X\n```\n\nTo test: `sudo apt pruge -y iptables; sudo apt -y autoremove; sudo reboot` might work as well, need to check.\n\n## Operate (from your local working device)\n\nSince I'm working with k0s I use `k0sctl` to do the livecycle of the cluster.\n\n```sh\n./k0sctl apply -c k0s_config.yaml\n./k0sctl kubeconfig -c k0s_config.yaml\n./k0sctl reset -c k0s_config.yaml\n```\n\n## Cleanup left over directories (within your VM)\n\nIf you have to reset something during testing, keep in mind to cleanup left over directories.\n\n```sh\nsudo rm -rf /etc/k0s\nsudo rm -rf /var/lib/k0s\nsudo rm -rf /var/lib/kubelet\n```\n\n## Cluster configuration (from your local working device)\n\nTo be able to install things right, I use metallb with only one public IP address with an nginx ingress controller that handles all the traffic for the services. We have to use `hostNetwork` for the ingress controller as it would otherwise not be possible to allocate port `80` or `443` for it.\nTo test if things really work, I use my dummy helmchart that deploys a simple nginx webserver so I can check if it is reachable from the internet via the given URL. (You need to create a URL upfront that points to the public IP of your VM)\n\n```sh\nkubectl apply -f https://raw.githubusercontent.com/metallb/metallb/main/config/manifests/metallb-native.yaml\nkubectl apply -f metallb_config.yaml\n# helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx\nhelm install ingress-nginx ingress-nginx/ingress-nginx --set hostNetwork=\"true\"\nhelm install foo tibeer/default-helmchart --set ingress.host=\"test.tibeer.de\" \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftibeer%2Fk0s-testbed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftibeer%2Fk0s-testbed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftibeer%2Fk0s-testbed/lists"}