8636d16773
No redis/valkey instance in the estate exports metrics today. Adds a pinned redis_exporter (v1.89.0 via the artifactapi dockerhub remote) next to every instance and two cluster-wide VMPodScrapes so the observability VMAgent picks them all up. - enables the valkey-operator exporter sidecar on the jellyfin ValkeyCluster, overriding the operator's bare-dockerhub default image with the artifactapi-proxied pin - adds a metrics-exporter sidecar (:9121, port name metrics) to the artifactapi/authentik/litellm redis and gitea/netbox valkey Deployments, with the monitoring.unkin.net/redis-exporter opt-in pod label - adds VMPodScrape redis-exporters selecting that label in any namespace, and VMPodScrape valkey-operator-clusters for operator-managed pods whose labels are fixed (the ValkeyCluster CR has no pod-label passthrough)
72 lines
1.7 KiB
YAML
72 lines
1.7 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: redis
|
|
namespace: artifactapi
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: redis
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: redis
|
|
monitoring.unkin.net/redis-exporter: "true"
|
|
spec:
|
|
containers:
|
|
- name: redis
|
|
image: redis:7-alpine
|
|
command:
|
|
- redis-server
|
|
- --save
|
|
- "20"
|
|
- "1"
|
|
ports:
|
|
- containerPort: 6379
|
|
name: redis
|
|
protocol: TCP
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
requests:
|
|
cpu: 50m
|
|
memory: 128Mi
|
|
livenessProbe:
|
|
exec:
|
|
command:
|
|
- redis-cli
|
|
- ping
|
|
failureThreshold: 3
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
successThreshold: 1
|
|
timeoutSeconds: 5
|
|
readinessProbe:
|
|
exec:
|
|
command:
|
|
- redis-cli
|
|
- ping
|
|
failureThreshold: 3
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
successThreshold: 1
|
|
timeoutSeconds: 5
|
|
- name: metrics-exporter
|
|
image: artifactapi.k8s.syd1.au.unkin.net/dockerhub/oliver006/redis_exporter:v1.89.0
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 9121
|
|
name: metrics
|
|
protocol: TCP
|
|
resources:
|
|
limits:
|
|
cpu: 100m
|
|
memory: 64Mi
|
|
requests:
|
|
cpu: 25m
|
|
memory: 32Mi
|
|
restartPolicy: Always
|