This repository was archived by the owner on Nov 30, 2023. It is now read-only.
This repository was archived by the owner on Nov 30, 2023. It is now read-only.
Add container definition for k3d cluster #1455
Open
Description
Purpose
Create a container definition which provisions a local kubernetes cluster with k3d (for Codespaces and Remote - Containers).
Motivation
While we have a container definition to provision a k8s cluster with Minikube.
k3d with k3s kubernetes distribution has several advantages over minikube for provisioning a local cluster:
- Faster cluster provision turnaround (create <--> delete).
- With k3d, cluster creation and deletion are super-fast (under a minute).
- Minikube takes couple of minutes to create or delete a cluster
- Faster inner-loop k8s cluster ready for use
- Lightweight, uses less memory and smaller binary size.
- It has built-in
- Ingress Controller (traefik)
- Replication Controller
- Service Load Balancer
- Can use existing
docker network
,docker registry
as its internal registry - Local path provisioner
- NodePort/Load-Balancer port forwarding
- See k3s page and k3d page for more features
- Examples of k3d as inner-loop k8s cluster: cse-labs/kubernetes-in-codespaces and cse-labs/istio-rust-webassembly-labs
Relates to: Both: Codespaces and Remote - Containers
Metadata
Metadata
Assignees
Labels
No labels