{"id":18761177,"url":"https://github.com/jonas-be/k8s-setup-scripts","last_synced_at":"2026-05-07T01:39:07.850Z","repository":{"id":157600986,"uuid":"616928220","full_name":"jonas-be/k8s-setup-scripts","owner":"jonas-be","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-14T22:05:02.000Z","size":25,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T04:53:27.941Z","etag":null,"topics":["bash","k8s","kubernetes","kubernetes-setup"],"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/jonas-be.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}},"created_at":"2023-03-21T11:19:23.000Z","updated_at":"2023-07-06T10:03:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"20093afc-9b05-4cc0-b048-aa8a29f06017","html_url":"https://github.com/jonas-be/k8s-setup-scripts","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/jonas-be%2Fk8s-setup-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas-be%2Fk8s-setup-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas-be%2Fk8s-setup-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas-be%2Fk8s-setup-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonas-be","download_url":"https://codeload.github.com/jonas-be/k8s-setup-scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239654134,"owners_count":19675225,"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":["bash","k8s","kubernetes","kubernetes-setup"],"created_at":"2024-11-07T18:15:14.749Z","updated_at":"2026-05-07T01:39:02.819Z","avatar_url":"https://github.com/jonas-be.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# K8s setup scripts\nThis repository includes some bash scripts to set up a Kubernetes cluster.\nThe scripts are made for VMs only with debian installed.\n\n\u003e **Warning**\n\u003e The repo follows the [kubernetes docs](https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/).\n\u003e You should always check if some steps changed!\n\u003e Go through the [kubernetes docs](https://kubernetes.io) for official installation instructions.\n\n\u003e **Warning**\n\u003e You eventually have to Update versions!\n\n\n## Requirements\n - Debian or Ubuntu\n - Access to root user\n - be able to make some DNS records _(only for multiple control plane topology)_\n\n## Versions\nCurrently used Version in the scripts:\n - Kubernetes: stable-1.25\n - Containerd: version from [Docker download](https://download.docker.com/linux/)\n - Use [Calico](https://projectcalico.org) v3.24 as Pod network\n\n## Before you start\n\u003e **Note**\n\u003e This **only** required for topologies with multiple control planes\n\nYou have to create an `A` record for each **control plane node**.\n\nThis should look something like this _(example with 3 control planes)_:\n```\nyour.domain.example.\t600\tIN\tA\t\u003ccp-node-ip-address-1\u003e\nyour.domain.example.\t600\tIN\tA\t\u003ccp-node-ip-address-2\u003e\nyour.domain.example.\t600\tIN\tA\t\u003ccp-node-ip-address-3\u003e\n```\nNext you have to change the `controlPlaneEndpoint` in the `kubeadm-config.yaml`, to your domain.\nYou can find the file creation, in the `initialize-multiple-control-plane.sh` script.\n\n## node-setup-*.sh\nSetup everything to run Kubernetes control plane or worker\n\n### What happens\n - Update system\n - Install [containerd](https://containerd.io)\n - Configure Kubernetes required stuff\n - Install\n   - kubelet\n   - kubeadm\n   - kubectl\n\n## initialize-one-control-plane.sh\nInitialize control plane for topology with **ONE** control plane\n\n### What happens\n - Create kubeadm-config.yaml\n - kubeadm init\n - Set .kube config\n - Apply pod network\n\n## initialize-multiple-control-plane.sh\nInitialize control plane for topology with **multiple** control planes.\n\n### What happens\n- Create kubeadm-config.yaml\n- kubeadm init\n- Set .kube config\n- Apply pod network","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonas-be%2Fk8s-setup-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonas-be%2Fk8s-setup-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonas-be%2Fk8s-setup-scripts/lists"}