Automate Kubernetes deployment restarts with this script, enhancing operational efficiency and reliability across different environments.
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.
- 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.
-
Customization:
- Modify the script's arrays (
backend_development_deployments
,backend_staging_deployments
, etc.) with your specific namespaces and deployment names.
- Modify the script's arrays (
-
Execution:
- Save the script to a file (e.g.,
restart_deployments.sh
) and make it executable usingchmod +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.
- Save the script to a file (e.g.,
# Example usage
./restart_deployments.sh
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
Contributions are welcome! If you have ideas for improvements or feature requests, please open an issue or submit a pull request.
This project is licensed under the MIT License.