KubeGlanceDownload

Kubernetes · Field notes

KubeGlance Blog

Practical Kubernetes troubleshooting, kubectl deep-dives, and cluster operations — from the team building KubeGlance.

Kubernetes pod status errors: every STATUS value, and the fix
troubleshooting

Kubernetes pod status errors: every STATUS value, and the fix

Every STATUS kubectl get pods can show, from Pending to Terminating: which field it comes from, what it means, and the guide that fixes each one.

· 8 min read
cert-manager: wrong status code '404', expected '200' — who answered the HTTP-01 challenge
troubleshooting

cert-manager: wrong status code '404', expected '200' — who answered the HTTP-01 challenge

Waiting for HTTP-01 challenge propagation: wrong status code '404', expected '200' is cert-manager's own self-check. Find what answered and fix it.

· 11 min read
Updated a ConfigMap and the pod still has the old value: the four paths, measured
concepts

Updated a ConfigMap and the pod still has the old value: the four paths, measured

ConfigMap updated but the pod still sees the old value? Env vars and subPath never change in a running container; volume files do, up to 90 seconds later.

· 11 min read
How to fix "failed quota: must specify limits.cpu" in Kubernetes
troubleshooting

How to fix "failed quota: must specify limits.cpu" in Kubernetes

Pod forbidden with "failed quota: must specify limits.cpu for:"? A container, init container or sidecar has no limit. Find which, and fix it.

· 10 min read
CrashLoopBackOff delay is per-node kubelet config now: maxContainerRestartPeriod, measured
concepts

CrashLoopBackOff delay is per-node kubelet config now: maxContainerRestartPeriod, measured

back-off 5m0s restarting failed container on one node, 20s on another? Since 1.35 the cap is kubelet config: crashLoopBackOff.maxContainerRestartPeriod.

· 11 min read
Argo CD app Synced but Progressing: sync and health are two different answers
troubleshooting

Argo CD app Synced but Progressing: sync and health are two different answers

Argo CD says Synced but Progressing, or Synced and Degraded? Sync compares git with the cluster; health reads status. Find the resource holding it.

· 11 min read
Pod-level CPU request is 50m, status says 28m: the cgroup v2 round trip
concepts

Pod-level CPU request is 50m, status says 28m: the cgroup v2 round trip

status.resources.requests.cpu says 28m for a 50m request? The kubelet reads cpu.weight back from cgroup v2, and the round trip loses up to 27m.

· 9 min read
FailedGetResourceMetric: HPA TARGETS <unknown>, and the five messages behind it
troubleshooting

FailedGetResourceMetric: HPA TARGETS <unknown>, and the five messages behind it

FailedGetResourceMetric and HPA TARGETS <unknown>: failed to get cpu utilization ends in one of five messages, metrics-server to unready pods.

· 11 min read
DNS i/o timeout after a default-deny NetworkPolicy: the egress rule you need
troubleshooting

DNS i/o timeout after a default-deny NetworkPolicy: the egress rule you need

"lookup … on 10.96.0.10:53: i/o timeout" after a default-deny NetworkPolicy: why DNS breaks while pods stay Ready, and the rule that fixes it.

· 8 min read
Kubernetes 1.37: unknown flag --containerd, and the cAdvisor metrics that went with it
troubleshooting

Kubernetes 1.37: unknown flag --containerd, and the cAdvisor metrics that went with it

Kubelet 1.37 exits with failed to parse kubelet flag: unknown flag: --containerd. The 18 removed cAdvisor flags, 3 lost metrics, and how to check first.

· 11 min read
Internal error occurred: failed calling webhook: context deadline exceeded, and every other ending
troubleshooting

Internal error occurred: failed calling webhook: context deadline exceeded, and every other ending

failed calling webhook ... context deadline exceeded: the API server could not get an answer from an admission webhook. What each ending means and the fix.

· 11 min read
Which resources show Terminating in kubectl get, and which silently do not
kubectl

Which resources show Terminating in kubectl get, and which silently do not

kubectl get shows Terminating for Pods, Jobs, PVs, PVCs and Namespaces. Deployments, StatefulSets, DaemonSets and ReplicaSets have no column for it.

· 8 min read
Multi-Attach error for volume: why the new pod waits for the old one
troubleshooting

Multi-Attach error for volume: why the new pod waits for the old one

Multi-Attach error for volume means a ReadWriteOnce disk is still attached to another node. Why rolling updates deadlock on it, and the fix.

· 9 min read
The order of your init containers changes your Pod's CPU request
concepts

The order of your init containers changes your Pod's CPU request

requested: requests.cpu=300m in an exceeded quota error for a Pod you sized at 200m? A sidecar listed before an init container is added to it.

· 9 min read
Kubernetes pod Running but not Ready (0/1): why, and how to fix it
troubleshooting

Kubernetes pod Running but not Ready (0/1): why, and how to fix it

Pod shows 0/1 READY with STATUS Running and no restarts? Readiness is failing, so the Service sends it no traffic. The fastest check and the four causes.

· 9 min read
Giving an AI coding agent read-only access to your Kubernetes cluster
security

Giving an AI coding agent read-only access to your Kubernetes cluster

Give an AI coding agent its own read-only Kubernetes identity: a ServiceAccount config bound to a get/list/watch ClusterRole, checked with kubectl auth can-i.

· 10 min read
PVC stuck in Pending: the four event messages and the fix for each
troubleshooting

PVC stuck in Pending: the four event messages and the fix for each

PVC stuck in Pending? kubectl describe pvc names one of four reasons: no storage class, WaitForFirstConsumer, an unscheduled pod, a slow provisioner. Fix each.

· 10 min read
Init:0/2, Init:CrashLoopBackOff, Init:ErrImagePull: the Init: prefix in kubectl's STATUS column
kubectl

Init:0/2, Init:CrashLoopBackOff, Init:ErrImagePull: the Init: prefix in kubectl's STATUS column

Init:ErrImagePull, Init:CrashLoopBackOff and Init:0/2 all mean an init container is blocking the pod. How the Init: status is built, and how to read it.

· 9 min read
Pod stuck in ContainerCreating: what the kubelet is still waiting for
troubleshooting

Pod stuck in ContainerCreating: what the kubelet is still waiting for

A pod stuck in ContainerCreating is waiting on a volume, the CNI plugin or an image pull. How to tell which, plus the new v1.37 SELinux cause.

· 10 min read
Kubernetes requests vs usage: finding reserved but idle CPU and memory
operations

Kubernetes requests vs usage: finding reserved but idle CPU and memory

Compare what pods reserve with what they use over a week, in PromQL: the rate() trap, p95 vs peak, safe requests, and which pods get evicted first.

· 11 min read
kubectl rollout history: reading a Deployment's history, and why CHANGE-CAUSE lies
kubectl

kubectl rollout history: reading a Deployment's history, and why CHANGE-CAUSE lies

kubectl rollout history shows a Deployment's revisions, one per ReplicaSet. How to read it, view a revision, roll back, and why CHANGE-CAUSE can be wrong.

· 9 min read
Query Prometheus through the Kubernetes API server, without port-forward
kubectl

Query Prometheus through the Kubernetes API server, without port-forward

Reach Prometheus, VictoriaMetrics or Thanos with kubectl get --raw through the API server's service proxy: the URL, the RBAC, and two misleading 503s.

· 11 min read
What a kubeconfig actually grants, and how to scope one down
security

What a kubeconfig actually grants, and how to scope one down

A kubeconfig grants nothing by itself. It carries an identity, and the cluster decides what that identity can do. How to find out, and how to hand out less.

· 10 min read
Can your cluster lose a node? Three checks before you drain
operations

Can your cluster lose a node? Three checks before you drain

A drain that hangs and a replacement pod stuck Pending have the same two causes: a disruption budget that can never allow one, and requests nobody uses.

· 9 min read
Your GPU pod is CrashLoopBackOff and Kubernetes will not say the device failed
troubleshooting

Your GPU pod is CrashLoopBackOff and Kubernetes will not say the device failed

A failed GPU surfaces as an ordinary restart loop with no indication the device is the cause. How to diagnose it today, and what KEP-4680 adds to pod status.

· 10 min read
Why kubectl top disagrees with your dashboard
kubectl

Why kubectl top disagrees with your dashboard

kubectl top prints a rate over a window that is not fixed, rounded to whole units, from a source that keeps no history. Your dashboard does none of that.

· 9 min read
kubectl get pods RESTARTS column: what "3 (5m ago)" actually counts
kubectl

kubectl get pods RESTARTS column: what "3 (5m ago)" actually counts

RESTARTS in kubectl get pods sums restartCount across every container and sidecar, and (5m ago) is the latest restart of any of them. How to find which one.

· 8 min read
CPU requests vs limits: what each one writes to the cgroup
concepts

CPU requests vs limits: what each one writes to the cgroup

Requests become cpu.weight, limits become cpu.max. One is a share of a contended CPU, the other is a hard ceiling enforced whether or not the node is busy.

· 12 min read
CreateContainerConfigError: find the missing ConfigMap or Secret key
troubleshooting

CreateContainerConfigError: find the missing ConfigMap or Secret key

CreateContainerConfigError, Init:CreateContainerConfigError or CreateContainerError? Almost always a missing ConfigMap, Secret or key. One command names it.

· 9 min read
Kubernetes pod stuck in Terminating: what is blocking it, and when --force is safe
troubleshooting

Kubernetes pod stuck in Terminating: what is blocking it, and when --force is safe

Pod stuck in Terminating? It is a grace period, a dead node, a finalizer or a volume. How to tell which, and what the --force warning really means.

· 11 min read
x509: certificate signed by unknown authority, and kubectl's other connection errors
troubleshooting

x509: certificate signed by unknown authority, and kubectl's other connection errors

Unable to connect to the server: x509: certificate signed by unknown authority, dial tcp, Unauthorized or Forbidden? Find the failing layer, then the fix.

· 11 min read
OOMKilled and exit code 137: what actually happened
troubleshooting

OOMKilled and exit code 137: what actually happened

OOMKilled means your container hit its own memory limit, not that the node ran out. Three different kills look alike in kubectl. How to tell them apart.

· 11 min read
0/3 nodes are available: how to fix a Pending pod (FailedScheduling)
troubleshooting

0/3 nodes are available: how to fix a Pending pod (FailedScheduling)

Pod Pending with FailedScheduling: "0/3 nodes are available" or "no nodes available to schedule pods". How to read the message and fix every clause.

· 10 min read
How kubectl decides what to put in the STATUS column
kubectl

How kubectl decides what to put in the STATUS column

kubectl get pods never shows status.phase. Here is the real algorithm behind the STATUS column, and why a pod reads Running while a container crash-loops.

· 7 min read
RBAC for a read-only Kubernetes user (and why view isn't enough)
security

RBAC for a read-only Kubernetes user (and why view isn't enough)

The built-in view role has three surprises: no cluster-scoped resources, no secrets, and it is aggregated — so your cloud provider may have quietly widened it.

· 10 min read
How KUBECONFIG merges multiple files (first wins, not last)
kubectl

How KUBECONFIG merges multiple files (first wins, not last)

Set KUBECONFIG to several files and kubectl merges them by a rule that surprises most people: the first file to define a name wins, and later files are ignored.

· 8 min read
How to fix CrashLoopBackOff in Kubernetes
troubleshooting

How to fix CrashLoopBackOff in Kubernetes

CrashLoopBackOff is not an error, it is a waiting state. The exit code tells you what actually happened. Here is how to read it and fix each cause.

· 9 min read
ImagePullBackOff and ErrImagePull: what they mean and how to fix them
troubleshooting

ImagePullBackOff and ErrImagePull: what they mean and how to fix them

ErrImagePull is the failure. ImagePullBackOff is the waiting. The real error is in the pod's Events, and there are only about seven things it ever says.

· 8 min read

Your clusters, on every screen you own

KubeGlance is a native Kubernetes client for iPhone and iPad — the real dashboard, not a companion — with a full Mac app on the same core. Pods, workloads, logs and events, straight from your kubeconfig.

Download KubeGlance