{"name":"Snorlax: Automating Kubernetes Deployment Wake and Sleep Schedules","description":"Snorlax is a Kubernetes operator that automates the waking and sleeping of deployments on a schedule. This tool provides significant cost savings, enhanced security, and environmental benefits by scaling down environments when not in use. It also includes a wake server that brings deployments back online upon request, displaying a splash page during the process.","github":"https://github.com/moonbeam-nyc/snorlax","url":"https://osrepos.com/repo/moonbeam-nyc-snorlax","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/moonbeam-nyc-snorlax","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/moonbeam-nyc-snorlax.md","json":"https://osrepos.com/repo/moonbeam-nyc-snorlax.json","topics":["kubernetes","operator","sleep","Go","cloud-cost-management","devops","automation"],"keywords":["kubernetes","operator","sleep","Go","cloud-cost-management","devops","automation"],"stars":null,"summary":"Snorlax is a Kubernetes operator that automates the waking and sleeping of deployments on a schedule. This tool provides significant cost savings, enhanced security, and environmental benefits by scaling down environments when not in use. It also includes a wake server that brings deployments back online upon request, displaying a splash page during the process.","content":"## Introduction\nSnorlax is a Kubernetes operator that intelligently manages the lifecycle of your deployments by waking them up and putting them to sleep based on a predefined schedule. Beyond simple scheduling, Snorlax can update ingresses to point to a \"wake server\" when deployments are asleep. If a request comes in during sleep, the wake server displays a \"waking up\" splash page and automatically brings the deployments back online, restoring ingresses once they are ready.\n\n## Installation\nTo get started with Snorlax, you can install it using Helm. Follow these steps:\n\nbash\nhelm repo add moonbeam https://moonbeam-nyc.github.io/helm-charts\nhelm repo update\nhelm install snorlax moonbeam/snorlax --create-namespace --namespace snorlax\n\n\n## Examples\nAfter installation, define your `SleepSchedule` resource to specify the wake and sleep times for your deployments. Here's an example:\n\nyaml\napiVersion: snorlax.moonbeam.nyc/v1beta1\nkind: SleepSchedule\nmetadata:\n  namespace: your-app-namespace\n  name: your-app\nspec:\n  wakeTime: '8:00am'\n  sleepTime: '10:00pm'\n  deployments:\n  - name: your-app-frontend\n  - name: your-app-db\n  - name: your-app-redis\n  ingresses:\n  - name: your-app-ingress\n    requires:\n    - deployment:\n        name: your-app-frontend\n  timezone: 'America/New_York'\n\n\nApply this resource using `kubectl`:\n\nbash\nkubectl apply -f your-app-sleep-schedule.yaml\n\n\n## Why Use Snorlax?\nImplementing Snorlax in your Kubernetes environments offers several compelling advantages:\n\n*   **Cost Savings**: Significantly reduce cloud resource consumption by scaling down non-essential environments overnight or during weekends. For example, sleeping staging environments for 8 hours daily and on weekends can lead to approximately 55% savings on cloud bills for those resources.\n*   **Security**: Minimize your infrastructure's attack surface by ensuring deployments are not active when they are not needed.\n*   **Environmentally Responsible**: Contribute to a greener footprint by reducing the energy consumption of your cloud infrastructure.\n\n## Links\nFor more detailed information, contributions, or to explore the source code, visit the official Snorlax GitHub repository:\n*   [Snorlax GitHub Repository](https://github.com/moonbeam-nyc/snorlax){:target=\"_blank\"}","metrics":{"detailViews":3,"githubClicks":2},"dates":{"published":null,"modified":"2026-02-24T09:27:33.000Z"}}