A painted rooftop machine deck at dusk with rows of compact server nodes in weatherproof cabinets above a hazy city

Kubernetes Operator: restarts only if they help

Kubernetes Operator is the 2501 specialty for pod and service failures in Kubernetes and OpenShift. It reads the cluster, restarts a pod when the failure is transient, and hands a person the evidence when it is not.

Updated

Specialty

Kubernetes Operator

Works on
  • Kubernetes
  • OpenShift
  • oc
  • Deployments
  • StatefulSets
Default mode
May fix, within its brief

What Kubernetes Operator covers

Deleting a crashing pod is the reflex. It clears the alert and often the evidence with it. Kubernetes Operator preserves the logs and events first.

Read the cluster, restart pods
It has read-only access to the cluster plus authority to restart pods. Everything else is investigation.
The whole picture of a pod
State, restart count, requests and limits, exit code and reason, recent events, and current and previous logs.
A class for every failure
Application bug, transient, resource constraint or infrastructure. An application bug is never fixed by a restart.
It knows when to stop
After 2 to 3 failed restarts it stops and escalates.
How it reaches your systems
Kubernetes Operator works with oc in OpenShift and Kubernetes environments.
Default mode: may fix, within its brief
May restart pods by default, and nothing beyond that. Set it investigate-only and it reports without restarting anything, unless a ticket is tagged @2501:remediate.

Problems it handles

One block per kind of ticket: what the agent checks, what it may do, and what it leaves to your team.

Problem 01

What does 2501 do with a pod stuck in CrashLoopBackOff after being OOMKilled?#

It confirms the termination reason and compares the pod’s memory use with its limits. A pod OOMKilled consistently needs a higher memory limit, and a restart will not help, so it does not restart it: it reports the evidence and the resource change for a person to make.

It checks

  • State, restart count, exit code and termination reason.
  • Memory requests and limits against what the pod uses.
  • Current and previous container logs, kept before anything restarts.

It may

  • Restart the pod through its controller when the failure is transient, and stop after 2 to 3 attempts.

It leaves to people

  • The memory limit change.
  • Application fixes, with the failure class and timeline in its report.

Questions about Kubernetes Operator

Have a ticket of this kind that is not answered here?Book a demo

Can it change our deployments or limits?

No. It reads the cluster and may restart pods; resource changes go in its report for a person.

When will it not restart a pod?

When other StatefulSet replicas are healthy, when the image pull fails, when a ConfigMap or Secret is missing, or when limits need changing.

Where do our cluster conventions go?

In operational rules, for example a rule that rollbacks go through helm rollback. Rules outrank the specialty when they conflict.

Next step

Bring your noisiest namespace

Show us the pods that page you most. We will show which ones Kubernetes Operator would restart and which it would hand back.