Lab 08 - 01: Prerequisites

# Step 01: Prerequisites and Environment Setup

## Prerequisites Checklist

Before starting the K-Agent lab, ensure you have the following:

### Required Tools

1. **Node.js 18+** - JavaScript runtime
   ```bash
   node --version  # Should be v18 or higher
   ```
  1. npm - Package manager
npm --version
  1. kubectl - Kubernetes CLI
kubectl version --client
  1. A Running Kubernetes Cluster
  2. Docker Desktop with Kubernetes enabled
  3. Minikube
  4. Kind
  5. OrbStack
  6. Cloud-managed (EKS, GKE, AKS)
Verify Cluster Access
# Check cluster connectivity
kubectl cluster-info

# List all namespaces
kubectl get namespaces

# List pods across all namespaces
kubectl get pods --all-namespaces

# Check your current context
kubectl config current-context
Expected Output
Kubernetes control plane is running at https://127.0.0.1:6443
CoreDNS is running at https://127.0.0.1:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
Troubleshooting

No cluster found:

# For Docker Desktop - Enable Kubernetes in Preferences
# For Minikube
minikube start

# For Kind
kind create cluster

# For OrbStack - Enable Kubernetes in settings

kubectl not configured:

# Check kubeconfig location
echo $KUBECONFIG
ls -la ~/.kube/config

# Set the context
kubectl config use-context <your-context-name>