Listen to this Post

K3d is a lightweight way to run Kubernetes clusters inside Docker containers, making it ideal for local development, CI/CD pipelines, and testing Kubernetes features without heavy resource usage. This article demonstrates how to set up K3d, install Istio, and enable observability tools for improved security and monitoring.
You Should Know:
1. Install K3d
First, install K3d on your Fedora system:
curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
2. Create a K3d Cluster
Spin up a local Kubernetes cluster with:
k3d cluster create mycluster --servers 1 --agents 2
This creates one server (control plane) and two worker nodes.
3. Verify Cluster Status
Check if the cluster is running:
kubectl get nodes
4. Install Istio
Download and install Istio:
curl -L https://istio.io/downloadIstio | sh - cd istio- export PATH=$PWD/bin:$PATH istioctl install --set profile=demo -y
5. Enable Observability Tools
Deploy Kiali, Prometheus, Grafana, and Jaeger for monitoring:
kubectl apply -f samples/addons kubectl rollout status deployment/kiali -n istio-system
6. Access Istio Dashboard
Port-forward Kiali for local access:
kubectl port-forward svc/kiali 20001:20001 -n istio-system
Visit `http://localhost:20001` in your browser.
7. Deploy a Sample App
Test Istio’s sidecar injection with a demo app:
kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
8. Verify Traffic Flow
Check if the app is running:
kubectl get pods kubectl get svc istio-ingressgateway -n istio-system
9. Clean Up
Delete the cluster when done:
k3d cluster delete mycluster
What Undercode Say
K3d simplifies Kubernetes experimentation by eliminating the need for VMs or cloud resources. Combining it with Istio enhances security (mTLS, traffic policies) and observability (metrics, tracing). For DevOps engineers, this setup accelerates local development and CI/CD testing.
Expected Output:
- A running K3d cluster with Istio and observability tools.
- Accessible dashboards for monitoring service mesh traffic.
- Efficient resource usage compared to full-scale Kubernetes deployments.
Reference: Medium
Prediction
As Kubernetes adoption grows, lightweight tools like K3d will become essential for rapid prototyping and hybrid cloud strategies. Istio’s integration will further streamline secure microservices deployments.
IT/Security Reporter URL:
Reported By: Darryl Ruggles – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅


