Skip to content

Automate Kubernetes deployment restarts by category and environment, simplifying management across development, staging, and production environments. Ideal for maintaining application reliability and consistency with minimal effort.

License

Notifications You must be signed in to change notification settings

MRdevX/k8s-rollout-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Kubernetes Deployment Restart Automation

Automate Kubernetes deployment restarts with this script, enhancing operational efficiency and reliability across different environments.

Overview

In Kubernetes management, ensuring deployment reliability and consistency is crucial. This script automates the process of selecting and restarting deployments categorized into Backend, Frontend, and Tools across Development, Staging, and Production environments.

Features

  • Selective Restart: Choose deployments by category (Backend, Frontend, Tools) and environment (Development, Staging, Production).
  • Efficient Management: Streamline operations by automating repetitive tasks.
  • Customizable: Easily customize deployment lists to fit your Kubernetes environment.

How to Use

  1. Customization:

    • Modify the script's arrays (backend_development_deployments, backend_staging_deployments, etc.) with your specific namespaces and deployment names.
  2. Execution:

    • Save the script to a file (e.g., restart_deployments.sh) and make it executable using chmod +x restart_deployments.sh.
    • Run the script with ./restart_deployments.sh in your terminal.
    • Follow the prompts to select categories, environments, and deployments to restart.

Examples

# Example usage
./restart_deployments.sh

Medium Article

For a detailed guide on how to use this script and understand its benefits, check out the accompanying article on Medium:

Automating Kubernetes Deployment Restarts: A Practical Guide

Contribution

Contributions are welcome! If you have ideas for improvements or feature requests, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

Automate Kubernetes deployment restarts by category and environment, simplifying management across development, staging, and production environments. Ideal for maintaining application reliability and consistency with minimal effort.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages