1.5 KiB
Setting up Kubernetes
- How did we setup these Kubernetes clusters that we're using?
--
-
We used
kubeadmon "fresh" EC2 instances with Ubuntu 16.04 LTS-
Install Docker
-
Install Kubernetes packages
-
Run
kubeadm initon the master node -
Setup Weave (the overlay network)
(that step is just onekubectl applycommand; discussed later) -
Run
kubeadm joinon the other nodes (with the token produced bykubeadm init) -
Copy the configuration file generated by
kubeadm init
-
kubeadm drawbacks
-
Doesn't setup Docker or any other container engine
-
Doesn't setup the overlay network
-
Scripting is complex
(because extracting the token requires advancedkubectlcommands) -
Doesn't setup multi-master (no high availability)
--
- It's still twice as much steps as setting up a Swarm cluster 😕
Other deployment options
-
If you are on Google Cloud: GKE
Empirically the best Kubernetes deployment out there
-
If you are on AWS: kops
... But with AWS re:invent just around the corner, expect some changes
-
On a local machine: minikube, kubespawn
FIXME
-
If you want something customizable: kubicorn
Probably the closest to a multi-cloud/hybrid solution so far, but in development
-
Also, many commercial options!
FIXME