Skip to content
kubernetes-health-check logo

Kubernetes Health Check

kubernetes-health-check

Verify Kubernetes cluster health, resource availability, and readiness before deploying applications

SKILL.md

Full skill instructions

Kubernetes Health Check

Purpose

Perform comprehensive health checks on Kubernetes clusters to ensure readiness for application deployments. Validates cluster connectivity, resource availability, and essential components.

Prerequisites

  • kubectl installed and configured
  • Access to Kubernetes cluster (Minikube, cloud cluster, etc.)
  • Sufficient permissions to query cluster resources

Instructions

Step 1: Verify Cluster Connectivity

Check if kubectl can connect to the cluster:

# Check cluster info
kubectl cluster-info

# Verify current context
kubectl config current-context

# List all nodes
kubectl get nodes

Expected Results:

  • Cluster-info shows running control plane
  • At least one node in Ready state
  • No connection errors

Step 2: Check Node Resources

Verify sufficient resources are available:

# Get detailed node information
kubectl describe nodes

# Check resource usage (requires metrics-server)
kubectl top nodes

Minimum Requirements:

  • CPU: >2 cores available
  • Memory: >4GB available
  • Disk: >20GB available
  • Status: All nodes Ready

Step 3: Verify System Components

Ensure essential Kubernetes components are running:

# Check system pods
kubectl get pods -n kube-system

# Check critical components
kubectl get pods -n kube-system | grep -E 'coredns|etcd|kube-apiserver|kube-controller|kube-scheduler'

All pods should be:

  • Status: Running
  • Restarts: <3 (some restarts normal during startup)
  • Ready: All containers ready (e.g., 1/​1, 2/​2)

Step 4: Validate Storage

Verify storage classes are available:

# List storage classes
kubectl get storageclass

# Check for default storage class
kubectl get storageclass -o json | jq -r '.items[] | select(.metadata.annotations."storageclass.kubernetes.io/​is-default-class"=="true") | .metadata.name'

Requirements:

  • At least one storage class exists
  • One marked as (default)

Step 5: Test Networking

Validate cluster networking:

# Check kube-proxy
kubectl get pods -n kube-system | grep kube-proxy

# Verify DNS resolution
kubectl run -it --rm debug --image=busybox --restart=Never -- nslookup kubernetes.default

# Check CNI plugin
kubectl get pods -n kube-system | grep -E 'calico|flannel|weave|cilium'

Networking is healthy when:

  • kube-proxy pods running
  • DNS lookups succeed
  • CNI plugin pods running

Validation

Pre-deployment checks passed when:

  • kubectl connects successfully
  • All nodes are Ready
  • System pods running (coredns, etcd, kube-apiserver)
  • Default storage class exists
  • DNS resolution works
  • Resources meet requirements (2 CPU, 4GB RAM)

Troubleshooting

Problem: Cannot connect to cluster

kubectl config get-contexts
kubectl config use-context <correct-context>

# For Minikube
minikube status
minikube start

Problem: Nodes NotReady

kubectl describe node <node-name>

# Restart Minikube with more resources
minikube stop
minikube start --cpus=4 --memory=8192

Best Practices

  1. Always Check First: Run health checks before any deployment
  2. Save Reports: Keep health reports for troubleshooting
  3. Automate: Add to CI/​CD pipelines
  4. Monitor Trends: Track resource usage over time
  5. Document Baseline: Know what "healthy" looks like

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View