Difference between revisions of "Install Kubernetes in Docker (KinD)"
Jump to navigation
Jump to search
(Created page with "== Installing Kubernetes in Docker (KinD) == === Prerequisites === * Docker installed and running * kubectl installed (see below) === Installing kubectl === 1. Download kube...") |
|||
Line 29: | Line 29: | ||
1. Install KinD: | 1. Install KinD: | ||
<pre> | <pre> | ||
− | curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0. | + | curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.24.0/kind-linux-amd64 |
chmod +x ./kind | chmod +x ./kind | ||
sudo mv ./kind /usr/local/bin/kind | sudo mv ./kind /usr/local/bin/kind |
Revision as of 03:01, 17 September 2024
Installing Kubernetes in Docker (KinD)
Prerequisites
- Docker installed and running
- kubectl installed (see below)
Installing kubectl
1. Download kubectl:
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
2. Make kubectl executable:
chmod +x ./kubectl
3. Move kubectl to a directory in your PATH:
sudo mv ./kubectl /usr/local/bin/kubectl
4. Verify installation:
kubectl version --client
Installing KinD
1. Install KinD:
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.24.0/kind-linux-amd64 chmod +x ./kind sudo mv ./kind /usr/local/bin/kind
2. Create a cluster:
kind create cluster
3. Verify installation:
kubectl cluster-info --context kind-kind
Usage
- List clusters:
kind get clusters
- Delete cluster:
kind delete cluster