Deploy with Kubernetes
Deploy WeaveMCP agents on Kubernetes for production-grade scalability, reliability, and management.Prerequisites
- Kubernetes cluster (1.19+)
- kubectl configured to access your cluster
- WeaveMCP account with virtual server created
- Agent token generated from the web console
Quick Deployment
1. Create Namespace
2. Create Secret
Store your agent token securely:3. Create ConfigMap
Createmcp-servers-config.yaml:
4. Create Deployment
Createagent-deployment.yaml:
5. Create Persistent Volumes
Createpersistent-volumes.yaml:
6. Create Service
Createagent-service.yaml:
7. Deploy Everything
Production Configuration
Horizontal Pod Autoscaler
Createhpa.yaml:
Pod Disruption Budget
Createpdb.yaml:
Network Policy
Createnetwork-policy.yaml:
Monitoring Integration
ServiceMonitor for Prometheus
Createservice-monitor.yaml:
Grafana Dashboard
Use our pre-built Grafana dashboard:Advanced Features
Multi-Region Deployment
Deploy across multiple regions for high availability:Custom Resource Definitions
Define custom MCP server configurations:Operations
Health Monitoring
Check agent health:Scaling
Scale the deployment:Updates
Rolling updates:Backup and Restore
Backup persistent data:Troubleshooting
Pods not starting
Pods not starting
Health checks failing
Health checks failing
Network connectivity issues
Network connectivity issues
Security Best Practices
- Use specific image tags: Avoid
latestin production - Run as non-root: Set
runAsNonRoot: true - Read-only filesystem: Use
readOnlyRootFilesystem: true - Resource limits: Always set CPU and memory limits
- Network policies: Restrict network access
- Secret management: Use external secret management systems
- Pod security standards: Implement Pod Security Standards
- Regular updates: Keep images and Kubernetes updated