Most of an EKS investigation is decided before the incident - which logs are you missing?. https://intel.threadlinqs.com/threat/TL-2026-7052?utm_source=bluesky #ThreatIntel #kubectl #ArgoCD #awscli

Most of an EKS investigation is decided before the incident - which logs are you missing?. https://intel.threadlinqs.com/threat/TL-2026-7052?utm_source=bluesky #ThreatIntel #kubectl #ArgoCD #awscli
#Kubernetes #kubectl #debugging
Many people working with Kubernetes have spent time debugging when something is broken in production, and kubectl exec is useless because the container has no shell. Some cases include distroless images, CrashLoopBackOff pods, or blocked
Test RBAC before granting broader permissions. Impersonate the service account:
kubectl auth can-i list secrets -n prod --as=system:serviceaccount:prod:app
Verify the exact verb, resource and namespace.
LogLens: la CLI en Java para leer logs de Kubernetes
¿Harto de grepear logs de Kubernetes? LogLens agrega --trace y --stats para leer logs de Kubernetes en segundos, sin agente ni backend nuevo
Service exists but connections are refused? Check whether it has endpoints:
kubectl get endpointslices -l kubernetes.io/service-name=web
Empty means the selector doesn't match or readiness probes are failing.
kubectl drain hanging forever? A PodDisruptionBudget is almost certainly blocking eviction. Find it with:
kubectl get pdb -A
Then scale the workload or adjust the PDB deliberately.
Sorting Kubernetes events by .lastTimestamp leaves gaps: newer events may leave it empty. Sort by creation time instead:
kubectl get events -A --sort-by=.metadata.creationTimestamp | tail -30