Kubernetes Deployment
Styx provides native Kubernetes support with custom resource definitions (CRDs) and production-ready deployment manifests.Quick Start
Deploy Styx to your Kubernetes cluster:Deployment Manifest
The standard deployment creates a 3-replica Styx cluster:Service Configuration
Styx includes two service types:Standard ClusterIP Service
Headless Service for Direct Pod Access
Custom Resource Definition (CRD)
Styx provides a CRD for declarative cluster management:Install the CRD
Create a StyxCluster Resource
RBAC Configuration
The operator requires proper permissions:Scaling
Health Monitoring
Liveness Probe
- Path:
/health - Initial Delay: 5 seconds
- Period: 10 seconds
Readiness Probe
- Path:
/health - Initial Delay: 3 seconds
- Period: 5 seconds
Resource Management
Default Resource Allocation
- CPU Request: 100m
- Memory Request: 128Mi
- CPU Limit: 500m
- Memory Limit: 256Mi
Adjust Resources
Operations
High Availability
For production HA deployments:- Run multiple replicas (minimum 3)
- Use pod anti-affinity to spread across nodes
- Configure pod disruption budgets
- Use the headless service for direct pod discovery