Difference between revisions of "Monitoring Operators"
Jump to navigation
Jump to search
| Line 2: | Line 2: | ||
kubectl api-resources --verbs=list --namespaced -o name | grep -E "grafana|prometheus|coreos|opentelemetry|monitoring" | | kubectl api-resources --verbs=list --namespaced -o name | grep -E "grafana|prometheus|coreos|opentelemetry|monitoring" | | ||
| − | + | [[while read]] crd; do | |
| − | + | output=$(kubectl get $crd -A --ignore-not-found 2>/dev/null); | |
| − | + | if [ -n "$output" ]; then | |
echo "=== $crd ==="; | echo "=== $crd ==="; | ||
echo "$output"\n; | echo "$output"\n; | ||
fi; | fi; | ||
| − | + | done | |
Revision as of 19:22, 4 May 2026
kubectl api-resources --verbs=list --namespaced -o name | grep -E "grafana|prometheus|coreos|opentelemetry|monitoring" | while read crd; do output=$(kubectl get $crd -A --ignore-not-found 2>/dev/null); if [ -n "$output" ]; then echo "=== $crd ==="; echo "$output"\n; fi; done
See also
Advertising: