Interactive Examples
Real-time Dashboard
Configuration for a real-time monitoring dashboard:
yaml
# values.yaml
monitoring:
enabled: true
grafana:
enabled: true
dashboards:
- name: real-time-metrics
configMap: grafana-dashboard-realtime
metrics:
serviceMonitor:
enabled: true
interval: 15s
API Gateway
Setting up an API gateway with rate limiting:
yaml
# values.yaml
gateway:
enabled: true
rateLimit:
enabled: true
requestsPerSecond: 100
routes:
- name: api-v1
prefix: /api/v1
service: backend-service
port: 8080
WebSocket Service
Configuration for WebSocket support:
yaml
# values.yaml
service:
type: ClusterIP
ports:
- name: http
port: 80
targetPort: 8080
- name: ws
port: 8081
targetPort: 8081
ingress:
enabled: true
annotations:
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
Event Processing
Example of event processing configuration:
yaml
# values.yaml
kafka:
enabled: true
topics:
- name: events
partitions: 3
replicationFactor: 2
consumer:
replicas: 2
config:
groupId: event-processor
autoOffsetReset: earliest