Post

HomeLab - Install k3d

HomeLab - Install k3d

HomeLab - Install k3d

Introduction

  • Install a k3d cluster

Prerequisites

  • (Docker)[]
  • (kubectl)[]

Installing k3d

  • Install using wget or curl
1
wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
1
curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
  • To install a specific release
1
wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | TAG=v5.0.0 bash
  • Verify the installation
1
k3d version

Configuring the Cluster

  • Create a cluster
1
k3d cluster create mycluster
  • Check the kubernetes nodes
1
kubectl get nodes

Cleanup

  • Steps to delete the application and cluster to free up resources.
1
kubectl cluster delete mycluster
1
rm -f $(which k3d)

Conclusion

  • We installed k3d and configured a cluster.
  • Once the installation and configuration was sucessful, we delete the cluster and remove k3d.
This post is licensed under CC BY 4.0 by the author.