- Add k8s/ manifests (StatefulSet, kustomize, PDB, ServiceMonitor) + docs/runbooks/kubernetes.md - Add tidal-server/src/openapi.rs (utoipa OpenAPI spec) and wire into router - Add docs/guides/ (build-a-feed-app, embeddings, server-deployment) + foryou_feed example - Consolidate tidal/docker/ into root docker/ (single canonical home) - Update API.md, QUICKSTART.md, README.md, CLAUDE.md, check-docs.sh accordingly
22 lines
751 B
YAML
22 lines
751 B
YAML
# OPTIONAL — requires the Prometheus Operator (monitoring.coreos.com CRDs).
|
|
# It is intentionally NOT in kustomization.yaml so `kubectl apply -k k8s/` works
|
|
# on a vanilla cluster. Apply it separately only if you run the Operator:
|
|
# kubectl apply -f k8s/servicemonitor.yaml
|
|
# Without the Operator, use the pod's prometheus.io/* scrape annotations instead.
|
|
# Alert rules + dashboard: docs/ops/prometheus-alerts.yaml, docs/ops/grafana-dashboard.json.
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: tidaldb
|
|
namespace: tidaldb
|
|
labels:
|
|
app.kubernetes.io/name: tidaldb
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: tidaldb
|
|
endpoints:
|
|
- port: metrics
|
|
path: /metrics
|
|
interval: 30s
|