My scrapbook about almost anything I stumble upon in my tech world. If you find anything useful don't forget to give thumbs-up :)


Wednesday, October 5, 2022

K8s cluster on your local machine via k3d

There are many tools available in marketplace to standing up a k8s cluster on your local machine, few of there are - kind, minikube, minishift, k3s but I am doing to discuss k3d which is a wrapper on k3s and using docker to build up the cluster with very neat command. I am just loving it as take only few mins (depends on machine) and voila!! your local k8s cluster is ready.  Let's see explore the tool together. 

From k3d site:
k3d is a lightweight wrapper to run k3s (Rancher Lab’s minimal Kubernetes distribution) in docker. 
    k3d makes it very easy to create single- and multi-node k3s clusters in docker, e.g. for local development on Kubernetes.

* Docker 


# To install latest k3d
curl -s | bash

# To install any specific version of k3d
curl -s | TAG=v5.0.0 bash 

Once, k3d is installed on your local machine, Check the version - 

# version check
k3d --version 

# Install with 3 worker nodes
k3d cluster create --agents 3 <cluster-name> 


# Install with 3 worker nodes
k3d cluster delete <cluster-name> 


Like the below page to get the update  
Facebook Page      Facebook Group      Twitter Feed      Telegram Group

No comments:

Post a Comment


The postings on this site are my own and don't necessarily represent IBM's or other companies positions, strategies or opinions. All content provided on this blog is for informational purposes and knowledge sharing only.
The owner of this blog makes no representations as to the accuracy or completeness of any information on this site or found by following any link on this site. The owner will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of his information.