{"id":35054836,"url":"https://github.com/fcrespel/k8s-vagrant-node","last_synced_at":"2026-04-11T15:36:09.721Z","repository":{"id":147360576,"uuid":"373591582","full_name":"fcrespel/k8s-vagrant-node","owner":"fcrespel","description":"Kubernetes Vagrant node (master/worker) for local testing with CRI-O, Calico, WireGuard, Ingress Nginx and OpenEBS","archived":false,"fork":false,"pushed_at":"2025-12-29T16:23:38.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-01T20:52:53.710Z","etag":null,"topics":["calico","cri-o","ingress-nginx","k8s","kubernetes","openebs","vagrant","wireguard"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fcrespel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-06-03T17:35:12.000Z","updated_at":"2025-12-29T16:23:42.000Z","dependencies_parsed_at":"2023-05-29T15:00:31.277Z","dependency_job_id":"1dd41034-3034-450e-be05-28469a3aa007","html_url":"https://github.com/fcrespel/k8s-vagrant-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fcrespel/k8s-vagrant-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcrespel%2Fk8s-vagrant-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcrespel%2Fk8s-vagrant-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcrespel%2Fk8s-vagrant-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcrespel%2Fk8s-vagrant-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcrespel","download_url":"https://codeload.github.com/fcrespel/k8s-vagrant-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcrespel%2Fk8s-vagrant-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31686140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["calico","cri-o","ingress-nginx","k8s","kubernetes","openebs","vagrant","wireguard"],"created_at":"2025-12-27T09:52:38.658Z","updated_at":"2026-04-11T15:36:09.685Z","avatar_url":"https://github.com/fcrespel.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes Vagrant node\n\nThis repository contains a [Vagrant](https://www.vagrantup.com) VM to run a Kubernetes node (master or worker) for local testing/debugging, using:\n- [CRI-O](https://cri-o.io) as the container runtime\n- [Calico](https://www.projectcalico.org) as the network plugin\n- [WireGuard](https://www.wireguard.com) to encrypt communication between nodes\n- [Ingress Nginx](https://kubernetes.github.io/ingress-nginx/) to expose ingress resources\n- [OpenEBS](https://openebs.io) to support local persistent volumes\n\n## Prerequisites\n\nMake sure you have [VirtualBox](https://www.virtualbox.org) and [Vagrant](https://www.vagrantup.com) installed before starting.\n\nYou may clone this repository mutliple times in different folders to build a cluster with multiple VMs (e.g. 1 master and 2 workers). \n\n## Configuration\n\nFirst, configure the `Vagrantfile`:\n- Update the `private_network` IP address (e.g. 192.168.56.101 for master, 192.168.56.102 for worker).\n- Adjust `vb.memory` depending on your available RAM and node role (at least 2048 MB for a master, less for a worker).\n\nEdit the `provision.conf.sh` file:\n- Update `K8S_MASTER_IP` if you changed it in the master `Vagrantfile`\n- Set `K8S_NODE_ROLE` to `master` or `worker`\n- Set `K8S_NODE_NAME` to an arbitrary name  (e.g. `node1`, `node2`, ...)\n\nFor a worker node, you will need to obtain a token and certificate hash from the master first. This information is displayed at the end of master creation, if necessary you can get it again with:\n\n```\nkubeadm token create\n\nopenssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2\u003e/dev/null | openssl dgst -sha256 -hex | sed 's/^.* //'\n```\n\nThen, update the worker `provision.conf.sh`:\n- Set `K8S_TOKEN` to the join token\n- Set `K8S_CERTHASH` to the certificate hash\n\n## Running\n\nStart the VM by running `vagrant up` in the repository directory. The provisioning script will take some time to install and configure the node.\n\nWhen done or if an error occurs, you should restart the VM with `vagrant reload` to make sure the updated kernel and modules are properly loaded.\n\nAfter that, you may get a shell in the VM with `vagrant ssh`, and run commands such as the following:\n```\n# Switch to root\nsudo su -\n\n# Check pod/deployment status\nkubectl get all -A\n\n# Check Calico node status\ncalicoctl node status\n\n# Check WireGuard status\nwg\n\n# Check containers running locally\ncrictl ps\n```\n\nIf everything is OK, you may deploy pods with `kubectl` or `helm`, or configure Calico resources with `calicoctl`. You may also use `k9s` to get an interactive text-based interface; `kubectx` and `kubens` utilities are also available.\n\nNote that Ingress Nginx is preinstalled and exposed on node ports 30080 (HTTP) and 30443 (HTTPS).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcrespel%2Fk8s-vagrant-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcrespel%2Fk8s-vagrant-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcrespel%2Fk8s-vagrant-node/lists"}