summaryrefslogtreecommitdiff
path: root/f3s/prometheus/grafana-ingress/Justfile
blob: f807bf98e89f9ac06afa594992e7d9e62aa579bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
NAMESPACE := "monitoring"
APP_NAME := "grafana-ingress"

status:
    @echo "=== Ingress ==="
    @kubectl get ingress -n {{NAMESPACE}} grafana-ingress
    @echo ""
    @echo "=== ArgoCD Status ==="
    @kubectl get application {{APP_NAME}} -n cicd -o jsonpath='Sync: {.status.sync.status}, Health: {.status.health.status}' 2>/dev/null && echo ""

sync:
    @echo "Triggering ArgoCD sync..."
    @kubectl annotate application {{APP_NAME}} -n cicd argocd.argoproj.io/refresh=normal --overwrite
    @sleep 2
    @kubectl get application {{APP_NAME}} -n cicd -o jsonpath='Sync: {.status.sync.status}, Health: {.status.health.status}' && echo ""

argocd-status:
    argocd app get {{APP_NAME}} --core

test:
    @echo "Testing Grafana ingress..."
    curl -I https://grafana.f3s.buetow.org