Troubleshooting

Solutions for common AutoLifecycle issues, rollback reasons, stuck upgrades, and paused policies.

📣

Early Access Feature

This feature is in early access. It may undergo changes based on user feedback and continued development. We recommend testing in non-production environments first and welcome your feedback to help us improve.

Where you can see an upgrade attempt's full history depends on where you look. The history includes the phase, each gate's result, and the rollback reason:

  • In the cluster: every attempt is a record on the AddonUpgrade resource for the component.
  • In the console: the add-on's upgrade history shows each attempt, its gate results, and its rollback reason.
Add-on details view showing Version history with version from and to, mode, duration, status, and the Rollback action

An upgrade failed and rolled back

Check the rollback reason on the attempt (console history or AddonUpgrade status). The most common causes:

  • A health gate failed after the new version was applied. For example, DNS stopped resolving after a CoreDNS change, or pod networking broke after a VPC CNI change. The component was rolled back to the previous version and the gates were re-run to confirm recovery.
  • The IAM role was missing or broken: for the EBS CSI driver, a removed role shows up as volumes that won't provision; the volume probe catches it and rolls back.

No action is needed after a successful rollback: the old version is healthy again.

The automatic upgrade policy is paused

A RolledBack or Failed automatic attempt pauses the policy for that add-on so a bad version is not retried in a loop. To resume, select another version of the add-on, and the policy picks up again.

An EKS update is stuck in progress

If EKS reports an add-on update as InProgress for longer than the configured limit (20 minutes by default), the attempt fails and the reason and EKS update ID are recorded.

No automatic rollback is attempted in this case: EKS rejects a second update while one is still running. Investigate the update in the EKS console or CLI; once EKS reports it finished (or you cancel it), the next reconcile resumes.

An add-on shows as read-only, or managedBy: unknown

AutoLifecycle never modifies components it does not own:

  • GitOps-detected (Argo CD or Flux): read-only, with the tool named.
  • Hands-off annotation: castware.cast.ai/hands-off: "true" marks a component as customer-owned.
  • managedBy: unknown: shown with a warning. The component may be managed by tooling outside the cluster, such as Terraform. Cast AI does not change it.

To have AutoLifecycle manage such a component, remove it from the external tool's management first.

An upgrade is waiting and nothing is happening

Only one add-on upgrade runs per cluster at a time. Additional eligible upgrades wait for the current one to finish and pass validation. If an attempt appears stuck, see the InProgress case above.

A Kubernetes version upgrade refuses to start

A failed preflight changes nothing and names the reason. The usual blockers:

  • An add-on (including Observe-mode add-ons) sets BlocksNextUpgrade for the target minor.
  • Node kubelet versions would exceed AWS's supported skew after the upgrade.
  • An EKS upgrade insight (such as deprecated API usage) is unresolved for the target version.
  • An add-on upgrade attempt is currently running.

Resolve the named blocker and request the upgrade again. See Kubernetes version upgrades.

CoreDNS scaling was not taken over

When CoreDNS is Managed, Cast AI takes over its scaling unless something else already controls it. The CoreDNSScaling condition on the coredns ManagedAddon names the reason:

  • OtherScaler: an HPA, KEDA, or cluster-proportional-autoscaler targets CoreDNS. Remove it if you want Cast AI to scale CoreDNS.
  • CustomerAutoScaling: EKS autoScaling is already enabled, or spec.configurationValues sets it.
  • CustomerReplicaCount: spec.configurationValues sets replicaCount.
  • OptedOut: spec.eksAddon.coreDNS.scaling is Customer.
  • HandsOff: the add-on is marked hands-off.
  • Unsupported: the add-on version's configuration schema does not accept autoScaling.

Probe resources are left in the cluster

Gate probe pods and (for the EBS CSI driver) gate-owned PVCs are labeled and cleaned up automatically; leftovers are also swept after an Operator restart. Each volume probe run creates a real EBS volume for roughly a minute, which is visible as a small storage charge.

A Kubernetes upgrade failed

The ClusterUpgrade object records which step failed and why, and the control plane policy pauses:

  • Preflight failed: nothing was changed. Fix the named check, then resume with kubectl patch clusterupgradepolicy cluster --type merge -p '{"spec":{"retry":1}}' (increase the number each time). Otherwise the policy retries after 12 hours.
  • Upgrade insight still failing after a fix: EKS refreshes insights periodically. Refresh them with aws eks start-insights-refresh --cluster-name <cluster-name> before resuming.
  • A later step failed: the control plane may already be on the new version, and Cast AI never rolls it back. EKS allows a control plane rollback within 7 days of the upgrade.

Did this page help you?