{"id":16287984,"url":"https://github.com/valentin2105/simplekube","last_synced_at":"2025-03-16T13:31:29.941Z","repository":{"id":95267583,"uuid":"68553489","full_name":"valentin2105/Simplekube","owner":"valentin2105","description":"[DEPRECATED] A simple way to bootstrap a Kubernetes cluster.","archived":false,"fork":false,"pushed_at":"2019-04-19T01:05:40.000Z","size":72,"stargazers_count":95,"open_issues_count":3,"forks_count":21,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-27T09:46:56.328Z","etag":null,"topics":["docker","kubernetes","kubernetes-cluster"],"latest_commit_sha":null,"homepage":"","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/valentin2105.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}},"created_at":"2016-09-18T23:43:44.000Z","updated_at":"2024-03-10T20:01:28.000Z","dependencies_parsed_at":"2023-03-03T23:30:33.881Z","dependency_job_id":null,"html_url":"https://github.com/valentin2105/Simplekube","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/valentin2105%2FSimplekube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valentin2105%2FSimplekube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valentin2105%2FSimplekube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valentin2105%2FSimplekube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valentin2105","download_url":"https://codeload.github.com/valentin2105/Simplekube/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243817153,"owners_count":20352504,"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","kubernetes","kubernetes-cluster"],"created_at":"2024-10-10T19:46:57.662Z","updated_at":"2025-03-16T13:31:29.659Z","avatar_url":"https://github.com/valentin2105.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# THIS PROJECT IS DEPRECATED\n\nI deprecated it because I can't maintain Kubernetes updates (and test them all). \nCurrently I am focused on maintaining https://github.com/valentin2105/Kubernetes-Saltstack which \nallows the creation of a single node cluster, too. Using Saltstack is more generally flexible, and\nalso allows the creation of a production cluster.\n\n**Other tools like Simplekube**: **[Minikube](https://github.com/kubernetes/minikube)**, **[k9s](https://k9ss.io/)**, **[microk8s](https://github.com/ubuntu/microk8s)**, etc. - these all focus on simple node installation.\n\n----\n\n\u003cimg src=\"https://i.imgur.com/gMGVimd.png\" width=\"500\"\u003e\n\n\u003e Simple as a shell script. It allow you to deploy easily k8s for tests or learn purposes.\n\nWith Simplekube, you can install Kubernetes on Linux servers without have to plug with any cloud provider.\n\nJust take a Linux empty box, clone the git repo, launch the script and have fun with k8s ! \nIt come with few things like Kube-DNS, Calico, Helm, Firewall and IPv6 !\n\nIf you need, you can easily add new workers (from multi-clouds) !\n\n## How-to use it ?\n\n#### 1- Tweak the head of `install_k8s.sh`\n \n```\n# please change this value :\nhostIP=\"__PUBLIC_OR_PRIVATE_IPV4__\"\n# -----------------------\nk8sVersion=\"v1.8.1\"\netcdVersion=\"v3.2.9\"\ndockerVersion=\"17.05.0-ce\"\ncniVersion=\"v0.6.0\"\ncalicoCNIVersion=\"v1.11.0\"\ncalicoctlVersion=\"v1.6.1\"\ncfsslVersion=\"v1.2.0\"\nhelmVersion=\"v2.6.2\"\n```\n#### 2- Launch the script as user (with sudo power)\n\n`./install_k8s.sh --master`\n\n#### 3- You can now play with k8s (...)\n```\n$- kubectl get cs \nNAME                 STATUS    MESSAGE              ERROR\ncontroller-manager   Healthy   ok\nscheduler            Healthy   ok\netcd-0               Healthy   {\"health\": \"true\"}\n\n$- kubectl get pod --all-namespaces\nNAMESPACE     NAME                                        READY     STATUS    RESTARTS   AGE\nkube-system   calico-policy-controller-4180354049-63p5v   1/1       Running   0          4m\nkube-system   kube-dns-1822236363-zzkdq                   4/4       Running   0          4m\nkube-system   kubernetes-dashboard-3313488171-lff6h       1/1       Running   0          4m\nkube-system   tiller-deploy-1884622320-0glqq              1/1       Running   0          4m\n\n$- calicoctl get ippool\nCIDR\n192.168.0.0/16\nfd80:24e2:f998:72d6::/64\n\n$- kubectl run -i -t alpine --image=alpine --restart=Never\n/ # ping6 google.com\nPING google.com (2404:6800:4003:80d::200e): 56 data bytes\n64 bytes from 2404:6800:4003:80d::200e: seq=0 ttl=57 time=2.129 ms\n```\n#### 4- Cluster's integrated components :\n\n  - KubeDNS\n  - HELM ready\n  - KubeDashboard\n  - RBAC only by default\n  - Calico CNI plugin\n  - Calico Policy controller \n  - Calicoctl tool\n  - UFW to secure access (can be disabled)\n  - ECDSA cluster certs w/ CFSSL\n  - IPv4/IPv6\n\n#### 5- Expose services :\n\nYou can expose easily your services with :\n\n  - Only reachable on the machine : `ClusterIP`\n  - Expose on high TCP ports : `NodePort`\n  - Expose publicly : Service's `ExternalIPs`\n\n\n#### 6- Add new nodes :\n\nYou can easily add new nodes to your cluster by launching `./install_new_worker.sh`\n\nBefore launch the script, be sure to tweak the head of the script :\n```\nnodeIP=\"__PUBLIC_OR_PRIVATE_IPV4__\"\nsshUser=\"root\"\nsetupFirewall=\"True\"\nCAcountry=\"US\"\n```\n\n## Requirements\n\nThis script download each k8s components with `wget` and launch k8s with `systemd units`. \n\nYou will need `socat`, `conntrack`, `sudo` and `git` on your servers. \n\nTo add a node, you will need to setup `key-based` SSH authentification between master \u0026 workers.\n\nIf you want IPv6 on pods side, you need working IPv6 on hosts.\n\nSimplekube is tested on `Debian 8/9` and `Ubuntu 16.x/17.x`.\n\nFeel free to open an Issue if you need assistance !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalentin2105%2Fsimplekube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalentin2105%2Fsimplekube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalentin2105%2Fsimplekube/lists"}