Skip to main content

Incident replay: a pod keeps restarting

Recorded in the Kubernetes memory-limit walkthrough. The process tries to use 250 MiB with a 100 MiB container limit.

kubectl get pod memory-demo-2 --namespace=mem-example
Inspect the recorded result
memory-demo-2   0/1   OOMKilled   1   24s

The kernel terminated the container. Check the last termination reason and memory limit before changing the deployment.

kubectl get pod memory-demo-2 --namespace=mem-example -o yaml
Source and complete command output
Investigate your own staging cluster
Review agent access and removal View the manifest without credentials
Default cluster-wide access Resources and operations
get / list / watch pods, pods/log, services, endpoints, nodes, namespaces, events, configmaps, persistentvolumes, persistentvolumeclaims, replicationcontrollers, resourcequotas, limitranges
get / list / watch deployments, replicasets, statefulsets, daemonsets, jobs, cronjobs, endpointslices, ingresses, networkpolicies, horizontalpodautoscalers, metrics.k8s.io (pods, nodes)
No permission secrets, create, update, patch, delete, pods/exec

Your kubeconfig stays local. The agent connects outbound and sends requested results, including logs and ConfigMaps, to Ranching.Farm. Results can reach the AI provider and stay in the saved chat until the thread is deleted.

The install namespace does not limit the ClusterRoleBinding. Changes require additional permissions you grant and an admin or owner in the app. Confirmation is requested in chat.

To uninstall, delete the resources using your original manifest, then remove the cluster in the app to revoke its credentials. Delete saved chats separately.

kubectl delete -f agent.yaml
Try the free-form simulation