Docs/EKS management

EKS management

Discover clusters in your AWS account and hibernate dev/test clusters outside working hours.

What you can manage

SnoozeDB discovers EKS clusters through the AWS API, including clusters with no EC2 workers. You can connect a cluster created directly in your AWS account; you do not need to recreate it through a BYOC platform.

The dashboard groups EC2 workers under their cluster and node groups. Individual start/stop actions and schedules are disabled for those workers. Tags help associate EC2 instances with a cluster; verified AWS inventory supplies the cluster identity and managed node groups.

Discovery works for every cluster in the account. A cluster can appear in the dashboard even when it cannot be hibernated; the dashboard then shows the reason.

Each managed cluster uses one unit of your plan capacity.

Connect AWS and sync all clusters

  1. Deploy the account's SnoozeDB CloudFormation template, or update its existing stack.
  2. Return to Resources scheduling and select Sync Now.
  3. Review the cluster rows in To triage. Choose Manage or Protect, as you would for RDS or EC2.

The template grants AWS access to all current and future EKS clusters in the connected account. There is no cluster list to enter in CloudFormation. EKS access is part of the base connection permissions. Existing accounts need to update their stack once to receive those permissions.

Later synchronizations discover newly created clusters and add them to To triage. Manage moves a cluster to Managed resources and allows eligible operations. Protect moves it to Protected and blocks operations. A sync keeps those choices; granting AWS access alone does not put a cluster under management.

A failed regional EKS scan keeps the previous inventory. Only a completed scan can mark an absent cluster as removed. The EC2 node count comes from matched inventory and tags; a count of zero alone does not confirm that a sleep operation succeeded.

AWS connection and permission updates

Check the cluster before hibernating it

Hibernation uses only the SnoozeDB CloudFormation role. There is nothing to deploy in your VPC and no Kubernetes access to grant. The cluster must meet these conditions when you request hibernation, and SnoozeDB checks them again just before each AWS call:

  • The cluster is ACTIVE, has at least one managed node group, and is in Managed resources.
  • The workers run in managed node groups. Karpenter nodes and other nodes outside managed node groups would keep running, so those clusters are refused.
  • The cluster has no Fargate profile and does not use EKS Auto Mode. Pods on EKS Fargate do not run on managed node groups, so scaling node groups to zero would not stop them, and SnoozeDB has no Kubernetes access to scale them down.
  • The cluster is not managed by a third-party platform. SnoozeDB recognizes such clusters from their tags and refuses them, because the platform would restart the nodes.
  • No node group's Auto Scaling group already has its Launch process suspended.

EKS uses the same exclusion model as other AWS resources. You do not need snoozedb:eks-sleep-enabled=true or a dev/test environment tag. A supported cluster without exclusion tags can be managed.

Environment tags with the value prod or production block hibernation. For example:

Environment=production

These checks recognize env, environment, snoozedb:env, snoozedb:environment, snoozedb:tag:env and snoozedb:tag:environment set to prod or production, without regard to letter case. Custom tag exclusions in Settings also apply to the cluster and its managed node groups. The existing snoozedb:enabled=false protection remains supported.

An owner or admin must choose Manage and request hibernation, with MFA when the organization requires it. Hibernation also requires an eligible paid workspace or a valid trial. The last verified inventory must be less than 24 hours old.

AWS connection and permission updates

Hibernate and wake a cluster

Open the cluster, choose Hibernate now and confirm the interruption. SnoozeDB allows one active operation per cluster. SnoozeDB's existing scheduler advances the operation on every pass.

What hibernation does

  1. It saves the minimum, desired and maximum size of each managed node group.
  2. It suspends the Launch process of each node group's Auto Scaling group. This stops the Cluster Autoscaler or any other tool from starting nodes during the sleep.
  3. It sets the minimum and desired size to zero and leaves the maximum unchanged.
  4. It waits until the groups have no instances, then marks the cluster asleep.

Choose Wake up to reverse it. SnoozeDB resumes Launch, restores the exact sizes it saved, and waits for in-service capacity before marking the cluster awake. Temporary AWS or network errors, such as throttling, are retried on the next pass. An operation that does not finish within 45 minutes of its start fails and leaves the cluster in an error state.

The Cluster Autoscaler can stay installed: if it raises a node group's desired size during hibernation, SnoozeDB sets it back to zero until the group is empty, and after a wake it leaves the desired size to the autoscaler.

What it does not do

  • It does not drain the nodes or scale Deployments down. SnoozeDB has no Kubernetes access.
  • Pods stay Pending while the cluster sleeps. Kubernetes schedules them again when nodes return.
  • CronJobs are not suspended. Jobs they create during the sleep stay Pending until the nodes return.
  • Instances are terminated, so anything stored only on a node's local disk is lost.

Schedule hibernation

Each cluster can have one hibernation schedule, set from the cluster row. Choose Business hours, which uses your organization's hours, or a custom schedule with its own days and times. Every EKS schedule runs in your organization's timezone. Only an owner or admin can change a schedule, with MFA when the organization requires it.

Outside the active window, the scheduler hibernates the cluster. Inside it, the scheduler wakes the cluster. A manual action that contradicts the schedule holds until the schedule's next transition, for at most 7 days. For example, waking a cluster in the middle of the night keeps it awake until the schedule's next transition instead of putting it back to sleep on the next pass.

A schedule does not wake a cluster whose last operation failed. If a scheduled hibernation fails before saving the node group sizes, the schedule tries again once the failure is more than an hour old. See the next section.

Recover after a failed operation

When an operation fails, the cluster shows Action required with the error message, and SnoozeDB keeps the saved sizes. A schedule never wakes a cluster in error; it only retries a failed hibernation that left no saved configuration, an hour after the failure. Choose Wake up once you have fixed the cause.

  • Missing permissions: update the CloudFormation stack from Settings → Cloud integrations, then retry.
  • Timeout: an operation still unfinished 45 minutes after it started fails. Check the node groups and Auto Scaling groups in the AWS console, then retry. Choose Wake up after a failed wake, or Hibernate now after a failed hibernation that left no saved configuration. If a failed hibernation kept its saved configuration (the cluster is in error), Wake up restores it.
  • Node group changed during sleep: before waking, SnoozeDB accepts each node group in one of two states: minimum 0 with its saved maximum, or its saved minimum and maximum (the sizes shown before hibernation). The desired size is not checked, because the Cluster Autoscaler may change it. If someone changed a group's minimum or maximum to anything else, wake fails without restoring anything. Set the node group to one of those two states in AWS, then choose Wake up again.

Do not delete the saved configuration to clear an error. Only a completed wake clears it, and the operation history keeps a record.

Confirm the result and the remaining costs

Start with a dedicated dev/test cluster and a maintenance window. Check that all workers disappear, return to their saved capacity, and serve the expected applications after wake. Measure the wake time before relying on a morning schedule.

The EKS control plane remains running and billable. Load balancers, NAT gateways, volumes and public IPv4 addresses also continue to cost money. Savings Plans commitments and Reserved Instance charges remain in force. SnoozeDB does not yet add EKS savings attribution to the dashboard. Check the AWS EKS pricing page and your account's actual charges before estimating savings.