-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e7f2d7
commit 2775221
Showing
1 changed file
with
35 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,42 @@ | ||
# Steps to setup Cluster using kind | ||
# Multi-Node Kubernetes Cluster Setup with Kind | ||
This repository contains the code and configuration files for setting up a multi-node Kubernetes cluster using Kind (Kubernetes in Docker). | ||
|
||
## Step 1:- Install Docker Engine on Ubuntu | ||
### [Click Here](https://docs.docker.com/engine/install/ubuntu/) | ||
## Steps to Setup Cluster using Kind | ||
Follow the below steps to setup a multi-node Kubernetes cluster using Kind: | ||
|
||
## Step 2:- Install Kind | ||
### [Click Here](https://kind.sigs.k8s.io/docs/user/quick-start/#installation) | ||
### Step 1: Install Docker Engine on Ubuntu | ||
Before installing Kind, Docker Engine needs to be installed on Ubuntu. Follow the instructions mentioned [here](https://docs.docker.com/engine/install/ubuntu/) to install Docker Engine. | ||
|
||
## Step 3:- Install Kubectl | ||
`snap install kubectl --classic` | ||
### Step 2: Install Kind | ||
Kind can be installed using the instructions mentioned [here](https://kind.sigs.k8s.io/docs/user/quick-start/#installation). | ||
|
||
## Step 4:- Create Single Node Cluster | ||
`kind create cluster` | ||
### Step 3: Install Kubectl | ||
Kubectl is the command-line tool for managing Kubernetes clusters. It can be installed using the following command: | ||
``` | ||
snap install kubectl --classic | ||
``` | ||
|
||
## Other Commands | ||
### To check all clusters | ||
`kind get clusters` | ||
### Step 4:- Create Single Node Cluster | ||
Create a Single Node Cluster by running the following command: | ||
``` | ||
kind create cluster | ||
``` | ||
|
||
### To delete a clusters | ||
`kind delete cluster --name=<cluster-name>` | ||
You can check all clusters using the following command: | ||
``` | ||
kind get clusters | ||
``` | ||
|
||
### Create cluster using config file | ||
`kind create cluster --name=<cluster-name> --config=<file-name>` | ||
To delete a cluster, run the following command: | ||
``` | ||
kind delete cluster --name=<cluster-name> | ||
``` | ||
|
||
### Bonus: | ||
You can also create a cluster using a configuration file by running the following command: | ||
``` | ||
kind create cluster --name=<cluster-name> --config=<file-name> | ||
``` | ||
|
||
## Conclusion | ||
By following these simple steps, you can easily setup a multi-node Kubernetes cluster using Kind. This is a great way to test your Kubernetes applications locally before deploying to production. |