Skip to content

node lifecycle: re-arm the agent-not-ready taint across reboots and agent outages #569

Closed

Description

@bpalermo

The aether.io/agent-not-ready:NoSchedule startup taint (#263) only exists at node registration (kubelet registerWithTaints) and its remover is one-shot at agent startup. Gaps (2026-07-19 incident review):

  • G1: kubelet never re-applies taints for an existing Node object → after a reboot the node is schedulable (on-disk CNI config keeps kubelet Ready) before the agent serves; pods sit in ContainerCreating on fail-closed CNI ADDs.
  • G2: removal is one-shot — a taint (re-)applied to a running node is never removed.
  • G3: k8s's own not-ready taints cover NotReady, not the aether-specific "Ready but agent not serving" window.

Plan (per in-session design):

  1. Controller: leader-elected node-taint guard — watches Nodes + agent DS pods; ADDS the taint when a node's agent pod is missing/not-Ready past a ~30s grace (no flap on routine agent rolls). Never removes.
  2. Agent: TaintRemover becomes a reconciler on its own Node — removes whenever taint present AND CNI socket serving.
  3. Toleration audit: aether-proxy/cni-install must tolerate; SPIRE agent DS (external chart) documented; workloads must NOT tolerate.
  4. Effect stays NoSchedule (NoExecute rejected: would evict mesh pods on every agent roll).
  5. Controller RBAC: nodes get/list/watch/patch. No new flags (031 philosophy).

Non-goal: container-restart waves (that's #567). Proposal doc: docs/proposals/033.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions