Kubernetes (k8s) installation options
- Broadly k8s installation is of two types
- single node: This for developer purposes
- multi node: This if for production
Multi-node options
- Here we have two broader options
- Are the nodes maintained by you: Here we install k8s cluster
- you can use physical servers or virtual machines
- Get the nodes when required: Here we get k8s cluster and will pay bills for using.
- Use kubernetes as a service:
- Azure Kubernetes Services (AKS)
- AWS Elastic Kuberenetes Services (EKS)
- Google Kubernetes Engine (GKE)
K8s installation options
-
IN k8s we have
- master node:
- This has to be a linux machine
- node:
- This can be any os (linux, windows)
-
Installing k8s also has multiple ways
You are an expert in kuberentes
I'm a beginner.
Give me the possible options of installing k8s cluster on 3 nodes.
Give me options for
* learning
* dev environments
* production environments
Ensure you dont give Kubernetes as a Service options
Lab-Experiment
-
Lets install k8s on 2 – node
- node-1 => master
- node-2 => worker
-
Overview
-
We have two choices to make
-
Setting up kubeadm Refer Here
-
Create two vms in Azure (you can use other cloud)
-
Login into both machines and install docker
- Now install CRI-dockerd
Give me steps to install CRI-dockerd on the ubuntu 24.04 LTS where docker is already installed and i need CRI-dockerd to work with kubeadm 1.36
- Before initializing
kubeadm init, lets choose the command based on CNI
You are expert in kuberenetes
Give me a begineer friendly CNI for my two-node kubernetes cluster 1.36 with two ubuntu 24.04 installed using kubeadm and CRI-dockerd.
Give me installation steps from initializing the kubeadm to CNI installation