https://github.com/cr0hn/rancher-upgrader
Small utility to upgrade Rancher Services
https://github.com/cr0hn/rancher-upgrader
cloud docker rancher rancher-upgrader rancher2 rancheros upgrade
Last synced: 10 months ago
JSON representation
Small utility to upgrade Rancher Services
- Host: GitHub
- URL: https://github.com/cr0hn/rancher-upgrader
- Owner: cr0hn
- License: bsd-3-clause
- Created: 2017-10-16T10:15:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T21:33:49.000Z (about 3 years ago)
- Last Synced: 2025-04-11T21:12:09.592Z (over 1 year ago)
- Topics: cloud, docker, rancher, rancher-upgrader, rancher2, rancheros, upgrade
- Language: Python
- Size: 12.7 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Rancher Upgrader
================
Code | https://github.com/cr0hn/rancher-upgrader
---- | ----------------------------------------------
Issues | https://github.com/cr0hn/rancher-upgrader/issues
Python version | Python 3.5 or above
Author | Daniel García (cr0hn) - @ggdaniel
Last version | 1.0.0
*The script needs Python 3 (really I don't test it in Python 2)*
Support this project
====================
Support this project (to solve issues, new features...) by applying the Github "Sponsor" button.
Briefing
========
This project try to solve the problem of upgrading Rancher stack services without the need of using the UI.
Why
===
Because one of the most useful thinks of a PaaS is to automate the deployment process thought your C.I. system.
With this script you can do that.
Installation
============
Installation process is so easy:
```bash
> python3 -m pip install rancher_upgrader
```
Usage
=====
The script is self-explained, to get help, only use *-h* option:
```bash
> rancher-upgrader -h
usage: rancher-upgrader.py [-h] -n STACK_NAME -s SERVICE_NAME -i NEW_IMAGE -u
RANCHER_URL -a RANCHER_ACCESS_KEY -k
RANCHER_SECRET_KEY [--retires MAX_RETRIES]
[--sleep]
Rancher service upgrader
optional arguments:
-h, --help show this help message and exit
-n STACK_NAME stack name.
-s SERVICE_NAME service name
-i NEW_IMAGE new docker image to push in the service
-u RANCHER_URL rancher portal url
-a RANCHER_ACCESS_KEY
rancher secret key
-k RANCHER_SECRET_KEY
rancher access key
Extra options:
--retires MAX_RETRIES
maximum number of retries to check upgrade process
--sleep sleep time while checking upgrading process
```
Important things
================
- Rancher upgrader will try to upgrade a specific service of a stack
- If the upgrade fails, automatically It will do a rollback
- Rancher upgrader will do the complete upgrade process, including the confirmation of the upgrade process when the upgrading process was finished
License
=======
This project is distributed under [BSD clausule 3](