Prerequisites
Before deploying on Kubernetes, ensure you have:Kubernetes Environment
Kubernetes Environment
- Running Kubernetes cluster (v1.19+)
- kubectl configured and connected
- Sufficient cluster resources
- Network policies configured (if required)
Checkly Setup
Checkly Setup
- Private Location created in Checkly
- API key for the Private Location
- Access to the checkly-k8s repository
Quick Start with Helm
The fastest way to deploy Checkly Agents on Kubernetes is using our official Helm chart.Get the Helm Chart
Deploy with Helm
Verify Deployment
The Helm chart automatically creates API key secrets, configures resource limits, and sets up pod security policies for production use.
Manual Kubernetes Manifests
For more control or custom environments, deploy using individual Kubernetes manifests.1. Create Namespace (Optional)
2. Create API Key Secret
3. Create Deployment
Production Configuration
Resource Planning
Configure appropriate resource requests and limits based on your workload:Node Affinity and Scheduling
Pod Disruption Budget
Horizontal Pod Autoscaler
Advanced Configuration
ConfigMap for Agent Settings
Network Policies
Monitoring and Observability
Helm Chart Customization
Custom Values File
Upgrade Strategy
Security Best Practices
Pod Security Standards
Secret Management with External Secrets
Troubleshooting
Pods Not Starting
Pods Not Starting
Common issues and solutions:Common solutions:
- Verify API key is correctly base64 encoded in secret
- Check resource requests vs available cluster capacity
- Ensure image tag exists and is accessible
- Verify namespace exists and has proper RBAC
Agent Connectivity Issues
Agent Connectivity Issues
Diagnostic commands:Common solutions:
- Verify egress network policies allow HTTPS to agent.checklyhq.com
- Check if corporate firewall blocks outbound connections
- Ensure DNS resolution works for external domains
- Verify proxy configuration if required
Performance Issues
Performance Issues
Monitoring and optimization:Optimization strategies:
- Adjust JOB_CONCURRENCY based on available memory
- Increase resource limits if pods are being throttled
- Scale horizontally with more replicas
- Use node affinity to place agents on appropriate nodes
Monitoring and Alerting
Prometheus Metrics
Monitor Checkly Agents with custom metrics:Logging Configuration
Next Steps
Scaling Guide
Learn capacity planning and scaling strategies for production workloads
Agent Configuration
Advanced agent configuration options and environment variables
Proxy Setup
Configure HTTP proxies for enterprise Kubernetes environments
Monitoring as Code
Integrate Private Locations with your monitoring-as-code workflow
Repository: Find complete examples and the latest Helm chart at github.com/checkly/checkly-k8s