Monitoring CRDs

From wikieduonline
Jump to navigation Jump to search
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"
     echo ""
   fi
 done

Related[edit]

See also[edit]

Advertising: