Orchestration

K3s Playground

k3s is a lightweight, production-grade Kubernetes distribution by Rancher. A full single-node cluster in under 100 MB..

Get access to the K3s playground with one click

Welcome to the k3s Playground!

k3s — a certified, production-grade Kubernetes distribution that fits in a single ~70 MB binary. Full API compatibility, zero external dependencies.

What’s Pre-configured

  • kubectl with tab completion and alias k
  • kubeconfig: auto-copied to ~/.kube/config once cluster is ready
  • Demo workload: an nginx Deployment created when cluster reaches Ready

Quick Start

kubectl get nodes -w     # wait for Ready (60-90s)
kubectl get pods -A
kubectl get deployment demo

Common Workflows

# Deploy and expose
kubectl create deployment webapp --image=nginx
kubectl expose deployment webapp --port=80 --type=ClusterIP
kubectl get svc
kubectl scale deployment webapp --replicas=3
kubectl rollout status deployment/webapp

# ConfigMap and Secret
kubectl create configmap app-config --from-literal=ENV=production
kubectl create secret generic app-secret --from-literal=DB_PASS=secret123
kubectl describe configmap app-config

Advanced Tips

# Resource quotas
kubectl create namespace sandbox
kubectl apply -f - <<EOF
apiVersion: v1
kind: ResourceQuota
metadata:
  name: sandbox-quota
  namespace: sandbox
spec:
  hard:
    requests.cpu: "1"
    requests.memory: 256Mi
EOF

# Watch pod logs
kubectl logs -f deployment/webapp

# Execute into a pod
kubectl exec -it <pod-name> -- sh

Session Notes

  • Session lasts 1 hour. Cluster state does not persist.
  • Cluster initialises in ~60–90 seconds. Run kubectl get nodes -w to watch.