55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
|
|
---
|
||
|
|
apiVersion: apps/v1
|
||
|
|
kind: Deployment
|
||
|
|
metadata:
|
||
|
|
name: celery-flower
|
||
|
|
namespace: celery-monitoring
|
||
|
|
labels:
|
||
|
|
app.kubernetes.io/name: celery-flower
|
||
|
|
app.kubernetes.io/component: monitoring
|
||
|
|
spec:
|
||
|
|
replicas: 1
|
||
|
|
selector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/name: celery-flower
|
||
|
|
app.kubernetes.io/component: monitoring
|
||
|
|
template:
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
app.kubernetes.io/name: celery-flower
|
||
|
|
app.kubernetes.io/component: monitoring
|
||
|
|
spec:
|
||
|
|
containers:
|
||
|
|
- name: flower
|
||
|
|
image: mher/flower:2.0.1
|
||
|
|
ports:
|
||
|
|
- containerPort: 5555
|
||
|
|
env:
|
||
|
|
- name: CELERY_BROKER_URL
|
||
|
|
value: "redis://:<REDIS_PASSWORD>@redis-ha-haproxy.redis-system.svc.cluster.local:6379/0"
|
||
|
|
- name: FLOWER_PORT
|
||
|
|
value: "5555"
|
||
|
|
# FLOWER_BASIC_AUTH removed - authentication handled by NGINX Ingress
|
||
|
|
# This allows Kubernetes health checks to work properly
|
||
|
|
- name: FLOWER_BROKER_API
|
||
|
|
value: "redis://:<REDIS_PASSWORD>@redis-ha-haproxy.redis-system.svc.cluster.local:6379/0,redis://:<REDIS_PASSWORD>@redis-ha-haproxy.redis-system.svc.cluster.local:6379/3"
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
cpu: 100m
|
||
|
|
memory: 128Mi
|
||
|
|
limits:
|
||
|
|
cpu: 500m
|
||
|
|
memory: 256Mi
|
||
|
|
livenessProbe:
|
||
|
|
httpGet:
|
||
|
|
path: /
|
||
|
|
port: 5555
|
||
|
|
initialDelaySeconds: 30
|
||
|
|
periodSeconds: 30
|
||
|
|
readinessProbe:
|
||
|
|
httpGet:
|
||
|
|
path: /
|
||
|
|
port: 5555
|
||
|
|
initialDelaySeconds: 10
|
||
|
|
periodSeconds: 10
|