Main Menu

Search

Showing posts with label kubernetes cluster. Show all posts
Showing posts with label kubernetes cluster. Show all posts

KUBERNETES CONCEPTS: Kubernetes Control Plane / Control Nodes High Availability (HA) Information

On the HA aspect for the control nodes, it can be achieved either using VIP or load balancer. 

With VIP load balancing:
     
The VIP will be active on one of the  control nodes. All the kube api and cluster calls will be going to VIP URL and hitting the control node in the backend on which VIP is active. If the control node on which VIP is active goes down, the VIP will failover to the other surviving control node via keepalived failover mechanism. This way there is no interruption to the 

With the load balancer:
    
You would have an external hardware/software load balancer which would listen on 6443 port and connect to the backend set of Kubernetes control nodes on port 6443. All the kube api and cluster calls will be to load balancer URL, load balancer will route the requests to one of the backend control nodes based on the load balancer algorithm set - round robin etc. Even if one of the control node on the backend goes down, the kube api calls will still work as the other control nodes are up, and load balancer redirects the kube api calls to control nodes that are up.







Keywords

highavailability high available highly ha control plane nodes node active-active active-passive active passive fail failover fail-over load loadbalancing balancer balancing loadbalancer load-balancer load-balancing vip virtual virtual ip ips virtual-ip keepalived failing over

KUBERNETES: Kubectl Command To Dump Kubernetes Cluster Information

KUBERNETES: Kubectl Command To Dump Kubernetes Cluster Information

Below command can be used. Below command prints all the Cluster info which includes information of all running nodes, pods and their IPs, Cluster IP and other network details etc. 

kubectl cluster-info dump

KUBERNETES: Command To Check Kubernetes Cluster IP (DevOps)

Below command can be used.

# kubectl get all -owide

Below is sample output.

# kubectl get all -owide
NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE   SELECTOR
service/kubernetes   ClusterIP   10.XX.0.1    <none>        443/TCP   11h   <none>

 


Products to which Article Applies

Kubernetes

Search Keywords: Kubernetes k8s kube how to docs cluster clusters getting get check checking IP addresses address IPs command commands

Article Author: Tarun Boyella

 

KUBERNETES: How To Get/Print Kubernetes Cluster Join Command For Adding Kubernetes Node To Cluster? (DevOps)

Below command can be used.

kubeadm token create --print-join-command

Below is sample output.

# kubeadm token create --print-join-command
W0322 23:49:47.069154   24288 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
kubeadm join 10.XX.XX.164:6443 --token lu4mfu.iym25m92bcnj84qh     --discovery-token-ca-cert-hash sha256:591238ec3ca07d115779a122b079f04919407a95fa7d2f80f3bfbe9396467f27


Products to which Article Applies

Kubernetes

Search Keywords: Kubernetes k8s kube how to docs join command commands cluster clusters get getting printing print used

Article Author: Tarun Boyella