moonbeam-nyc

snorlax: Schedule Kubernetes Deployment Sleep and Wake

Snorlax is a Kubernetes operator that scales selected deployments down and up on a daily schedule. It can route requests for sleeping applications to a wake page, then restore their ingresses when the deployments are ready.

View on GitHub Compare
Stars
392
Forks
29
Stars, last 30 days
-1

Our take

Health score

18/100

How it is scored
Activity
19
Community
11
Issues
21
Pull requests
20

-1 stars in the last 30 days

  • Fewer contributors than 86% of the projects we track

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

390

Forks

29

Change since Nov 17, 2026: 0 stars·0 forks

Overview

Snorlax helps teams reduce the resources used by non-production or otherwise time-limited Kubernetes workloads by scheduling deployments to sleep and wake. It is aimed at environments that do not need to run continuously, such as staging and ephemeral apps.

When configured with ingresses, Snorlax can direct requests to a wake server while deployments are asleep. The server displays a status page, triggers wake-up, and restores the ingress after the required deployments are ready.

Key Features

  • Defines wake and sleep times through a SleepSchedule Kubernetes resource.
  • Scales specified deployments according to the schedule.
  • Supports a timezone for schedule times, defaulting to UTC.
  • Can update selected ingresses to route requests to a wake server while asleep.
  • Can wait for specified deployments to become ready before restoring an ingress.
  • Keeps deployments awake after a request during sleep time until the next sleep cycle.
  • Ignores ELB health checks so they do not trigger wake-ups.
  • Detects the ingress controller to create appropriate sleep-time routes.

Use Cases

  • Staging environments can be stopped overnight and brought back before the workday, reducing resource use while they are idle.
  • Ephemeral review environments can follow a predictable schedule instead of running continuously.
  • Teams can let users request access to a sleeping application through its ingress, rather than requiring them to manually scale workloads.
  • Operators of scheduled development environments can coordinate wake-up with application readiness before sending traffic back to the deployment.

Getting Started

Install the Helm chart and controller:

helm repo add moonbeam https://moonbeam-nyc.github.io/helm-charts
helm repo update
helm install snorlax moonbeam/snorlax --create-namespace --namespace snorlax

Then create and apply a SleepSchedule resource for the deployments to manage. See the README for its configuration and local development instructions.

Considerations

Snorlax requires a Kubernetes cluster and Helm, and its scheduling model uses configured wake and sleep times rather than cron-style expressions. The project README lists cron schedules and several other capabilities as future work, so check current project status before relying on them. Ingress-based wake-up is optional and requires configuring the relevant ingress and deployments in the schedule.

Found this useful?

Share it with someone who would like snorlax.