Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Add container definition for k3d cluster #1455

Open
kforeverisback opened this issue May 17, 2022 · 0 comments · May be fixed by #1456
Open

Add container definition for k3d cluster #1455

kforeverisback opened this issue May 17, 2022 · 0 comments · May be fixed by #1456

Comments

@kforeverisback
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant