Last active
June 3, 2023 04:42
-
-
Save shivaylamba/bd1fcf5fc7cc1cc4eb95da0c620afb5d to your computer and use it in GitHub Desktop.
KCD-Bangalore.md
This file contains hidden or 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
# --image ghcr.io/deislabs/containerd-wasm-shims/examples/k3d:v0.5.1: This flag specifies the Docker image to use as the base image for the cluster nodes. In this case, the image ghcr.io/deislabs/containerd-wasm-shims/examples/k3d:v0.5.1 is being used. This image contains the necessary components for running WebAssembly workloads using containerd and k3d. | |
# --agents 2: This flag specifies the number of worker nodes or agents to create in the cluster. In this case, it creates two agents to distribute the workload across multiple nodes. | |
``` | |
k3d cluster create wasm-cluster1 \ | |
--image ghcr.io/deislabs/containerd-wasm-shims/examples/k3d:v0.5.1 \ | |
-p "8081:80@loadbalancer" --agents 2 | |
``` | |
kubectl get nodes | |
## Verify the runtime configuration | |
## docker exec -it k3d-wasm-cluster-agent-0 ash | |
## ls /bin | grep containerd- | |
- You can see the runc, slight, and spin shims. runc is the default low-level runtime for running containers on Kubernetes and is present on all worker nodes running containerd. spin and slight are Wasm runtimes for running WebAssembly apps on Kubernetes. | |
## kubectl get nodes --show-labels | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment