CKA Note
Installation and Configuration
Intall kubectl
-
configuration file location:
$HOME/.kube/config
. -
handy when going from a local environment to a cluster in the cloud, or from one cluster to another, such as from development to production.
1 | $ kubectl config use-context foobar |
GKE Quickstart
-
quick start command
1 | $ gcloud container clusters create linuxfoundation |
Minikube
-
install
1 | $ curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 |
- quick start command
1 | $ minikube start |
Main Deployment configuration
- Single-node
With a single-node deployment, all the components run on the same server. This is great for testing, learning, and developing around Kubernetes.
- Single head node, multiple workers
Adding more workers, a single head node and multiple workers typically will consist of a single node etcd instance running on the head node with the API, the scheduler, and the controller-manager.
- Multiple head nodes with HA, multiple workers
Multiple head nodes in an HA configuration and multiple workers add more durability to the cluster. The API server will be fronted by a load balancer, the scheduler and the controller-manager will elect a leader (which is configured via flags). The etcd setup can still be single node.
- HA etcd, HA head nodes, multiple workers
The most advanced and resilient setup would be an HA etcd cluster, with HA head nodes and multiple workers. Also, etcd would run as a true cluster, which would provide HA and would run on nodes separate from the Kubernetes head nodes.