All Projects → valentin2105 → Simplekube

valentin2105 / Simplekube

[DEPRECATED] A simple way to bootstrap a Kubernetes cluster.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Simplekube

X K8s
ITRI's Kubernetes platform for 5G Edge VNF.
Stars: ✭ 20 (-78.95%)
Mutual labels:  kubernetes-cluster
Tensorflow Kubernetes Art Classification
Train a TensorFlow model on Kubernetes to recognize art culture based on the collection from the Metropolitan Museum of Art
Stars: ✭ 55 (-42.11%)
Mutual labels:  kubernetes-cluster
Governor
A collection of cluster reliability tools for Kubernetes
Stars: ✭ 71 (-25.26%)
Mutual labels:  kubernetes-cluster
K8s Digitalocean Terraform
Deploy latest Kubernetes cluster on DigitalOcean using Terraform
Stars: ✭ 33 (-65.26%)
Mutual labels:  kubernetes-cluster
Raspbernetes
Raspberry Pi Kubernetes Cluster
Stars: ✭ 53 (-44.21%)
Mutual labels:  kubernetes-cluster
Terraform Kubernetes
Terraform module for provisioning AWS resources to run a Kubernetes cluster
Stars: ✭ 61 (-35.79%)
Mutual labels:  kubernetes-cluster
Zero To Jupyterhub K8s
Helm Chart & Documentation for deploying JupyterHub on Kubernetes
Stars: ✭ 888 (+834.74%)
Mutual labels:  kubernetes-cluster
Kube Aws Autoscaler
Simple, elastic Kubernetes cluster autoscaler for AWS Auto Scaling Groups
Stars: ✭ 94 (-1.05%)
Mutual labels:  kubernetes-cluster
Hkube
Kubernetes cluster deployment to Hetzner Cloud
Stars: ✭ 55 (-42.11%)
Mutual labels:  kubernetes-cluster
Kube Aws
[EOL] A command-line tool to declaratively manage Kubernetes clusters on AWS
Stars: ✭ 1,146 (+1106.32%)
Mutual labels:  kubernetes-cluster
Karch
A Terraform module to create and maintain Kubernetes clusters on AWS easily, relying entirely on kops
Stars: ✭ 38 (-60%)
Mutual labels:  kubernetes-cluster
Kubernetes With Cri O
📦 🚀 📦 - Kubernetes Cluster setup using CRI-O Runtime
Stars: ✭ 51 (-46.32%)
Mutual labels:  kubernetes-cluster
Match
🔮 Scalable reverse image search built on Kubernetes and Elasticsearch
Stars: ✭ 1,121 (+1080%)
Mutual labels:  kubernetes-cluster
Enjoliver
Build, test, deploy and maintain a baremetal Kubernetes Cluster
Stars: ✭ 27 (-71.58%)
Mutual labels:  kubernetes-cluster
Kubectl Trace
Schedule bpftrace programs on your kubernetes cluster using the kubectl
Stars: ✭ 1,194 (+1156.84%)
Mutual labels:  kubernetes-cluster
K8s On Raspbian
Kubernetes on Raspbian (Raspberry Pi)
Stars: ✭ 839 (+783.16%)
Mutual labels:  kubernetes-cluster
Kubemq
KubeMQ is Enterprise-grade message broker native for Docker and Kubernetes
Stars: ✭ 58 (-38.95%)
Mutual labels:  kubernetes-cluster
Instance Manager
Create and manage instance groups with Kubernetes
Stars: ✭ 95 (+0%)
Mutual labels:  kubernetes-cluster
Gameon Java Microservices On Kubernetes
This code demonstrates deployment of a Microservices based application Game On! on to Kubernetes cluster. Game On! is a throwback text-based adventure built to help you explore microservice architectures and related concepts.
Stars: ✭ 88 (-7.37%)
Mutual labels:  kubernetes-cluster
Private Aks Cluster
This sample shows how to create a private AKS cluster in a virtual network along with a jumpbox virtual machine.
Stars: ✭ 63 (-33.68%)
Mutual labels:  kubernetes-cluster

THIS PROJECT IS DEPRECATED

I deprecated it because I can't maintain Kubernetes updates (and test them all). Currently I am focused on maintaining https://github.com/valentin2105/Kubernetes-Saltstack which allows the creation of a single node cluster, too. Using Saltstack is more generally flexible, and also allows the creation of a production cluster.

Other tools like Simplekube: Minikube, k9s, microk8s, etc. - these all focus on simple node installation.


Simple as a shell script. It allow you to deploy easily k8s for tests or learn purposes.

With Simplekube, you can install Kubernetes on Linux servers without have to plug with any cloud provider.

Just take a Linux empty box, clone the git repo, launch the script and have fun with k8s ! It come with few things like Kube-DNS, Calico, Helm, Firewall and IPv6 !

If you need, you can easily add new workers (from multi-clouds) !

How-to use it ?

1- Tweak the head of install_k8s.sh

# please change this value :
hostIP="__PUBLIC_OR_PRIVATE_IPV4__"
# -----------------------
k8sVersion="v1.8.1"
etcdVersion="v3.2.9"
dockerVersion="17.05.0-ce"
cniVersion="v0.6.0"
calicoCNIVersion="v1.11.0"
calicoctlVersion="v1.6.1"
cfsslVersion="v1.2.0"
helmVersion="v2.6.2"

2- Launch the script as user (with sudo power)

./install_k8s.sh --master

3- You can now play with k8s (...)

$- kubectl get cs 
NAME                 STATUS    MESSAGE              ERROR
controller-manager   Healthy   ok
scheduler            Healthy   ok
etcd-0               Healthy   {"health": "true"}

$- kubectl get pod --all-namespaces
NAMESPACE     NAME                                        READY     STATUS    RESTARTS   AGE
kube-system   calico-policy-controller-4180354049-63p5v   1/1       Running   0          4m
kube-system   kube-dns-1822236363-zzkdq                   4/4       Running   0          4m
kube-system   kubernetes-dashboard-3313488171-lff6h       1/1       Running   0          4m
kube-system   tiller-deploy-1884622320-0glqq              1/1       Running   0          4m

$- calicoctl get ippool
CIDR
192.168.0.0/16
fd80:24e2:f998:72d6::/64

$- kubectl run -i -t alpine --image=alpine --restart=Never
/ # ping6 google.com
PING google.com (2404:6800:4003:80d::200e): 56 data bytes
64 bytes from 2404:6800:4003:80d::200e: seq=0 ttl=57 time=2.129 ms

4- Cluster's integrated components :

  • KubeDNS
  • HELM ready
  • KubeDashboard
  • RBAC only by default
  • Calico CNI plugin
  • Calico Policy controller
  • Calicoctl tool
  • UFW to secure access (can be disabled)
  • ECDSA cluster certs w/ CFSSL
  • IPv4/IPv6

5- Expose services :

You can expose easily your services with :

  • Only reachable on the machine : ClusterIP
  • Expose on high TCP ports : NodePort
  • Expose publicly : Service's ExternalIPs

6- Add new nodes :

You can easily add new nodes to your cluster by launching ./install_new_worker.sh

Before launch the script, be sure to tweak the head of the script :

nodeIP="__PUBLIC_OR_PRIVATE_IPV4__"
sshUser="root"
setupFirewall="True"
CAcountry="US"

Requirements

This script download each k8s components with wget and launch k8s with systemd units.

You will need socat, conntrack, sudo and git on your servers.

To add a node, you will need to setup key-based SSH authentification between master & workers.

If you want IPv6 on pods side, you need working IPv6 on hosts.

Simplekube is tested on Debian 8/9 and Ubuntu 16.x/17.x.

Feel free to open an Issue if you need assistance !

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].