K8s Foundation
Overview
This skill provides tools for validating Kubernetes cluster health and applying foundational Helm charts. It focuses on cluster readiness assessment and deployment of essential infrastructure components.
Primary Functions
- Cluster Health Validation: Check if the Kubernetes cluster is operational and healthy
- Foundational Chart Deployment: Apply essential Helm charts that form the foundation of the cluster
- Readiness Assessment: Verify that the cluster is ready for application deployments
Validation Workflow
Follow these steps to validate cluster health:
- Check Cluster Connectivity: Verify kubectl can reach the cluster
- Assess Node Status: Validate all nodes are ready and operational
- Review System Pods: Ensure core Kubernetes pods are running properly
- Test Resource Availability: Confirm sufficient resources are available
- Validate Access Rights: Verify required permissions for operations
Deployment Workflow
For applying foundational Helm charts:
- Prerequisite Check: Ensure cluster meets requirements for chart deployment
- Helm Repo Update: Update Helm repositories to latest versions
- Chart Installation: Deploy charts with appropriate values
- Post-Installation Validation: Verify successful deployment
- Status Reporting: Return minimal success/failure output
Essential Foundational Charts
Common foundational charts that might be deployed:
- ingress-nginx: Ingress controller for external traffic
- cert-manager: Certificate management for TLS
- metrics-server: Resource metrics for HPA and monitoring
- prometheus-stack: Monitoring and alerting stack
- loki-stack: Logging aggregation
- external-secrets: External secret management
- vault: Secret management solution
Scripts Provided
This skill includes scripts for common Kubernetes and Helm operations:
Cluster Validation Scripts
check_cluster_health.sh: Comprehensive cluster health validationvalidate_nodes.sh: Node status verificationcheck_system_pods.sh: Core pod readiness check
Deployment Scripts
apply_foundational_charts.sh: Deploy all foundational chartsinstall_ingress_controller.sh: Deploy ingress controllerinstall_monitoring.sh: Deploy monitoring stackinstall_logging.sh: Deploy logging stack
Utility Scripts
wait_for_deployment.sh: Wait until deployment is readycheck_helm_status.sh: Verify Helm release status
Resources
scripts/
Executable scripts that use kubectl and helm commands for cluster operations.
Examples:
validate_cluster.sh- Script to check cluster connectivity and node statusdeploy_foundation.sh- Script to apply foundational Helm chartshealth_check.sh- Script to validate cluster readiness
Appropriate for: Kubernetes validation, Helm chart deployment, cluster readiness checks, and infrastructure provisioning.
references/
Documentation about Kubernetes cluster validation best practices and foundational chart configurations.
Examples:
- Kubernetes readiness criteria
- Common Helm chart values for foundational components
- Troubleshooting guides for common cluster issues
- Best practices for infrastructure deployment
Appropriate for: In-depth information about cluster validation techniques and chart configurations.
assets/
Template files and configurations for foundational charts.
Examples:
- Default values.yaml files for common foundational charts
- RBAC configuration templates
- Namespace configuration files
Appropriate for: Standard configurations and templates used in deployments.
Any unneeded directories can be deleted. Not every skill requires all three types of resources.
When NOT to Use This Skill
- Single-server deployments — Kubernetes is designed for multi-node clusters; a single VM is better served by Docker Compose or a simple systemd service
- Serverless workloads — functions that run on AWS Lambda, Cloud Run, or Fargate don't need Kubernetes cluster management
- Quick local testing — use
docker-composeorminikubefor local development; don't provision a full Kubernetes cluster just to test an application
Common Mistakes
- Not setting resource requests and limits on all workloads — unbounded pods exhaust node resources and evict other workloads unexpectedly
- Using the
defaultnamespace for all workloads — namespace isolation is a fundamental Kubernetes security and organization principle; always create dedicated namespaces - Not configuring RBAC from the start — adding least-privilege access controls retroactively is painful; define service accounts and roles during initial cluster setup