https://github.com/ipunkt/rancherize-drain
Publish via traefiks rancher provider but with an intermediate rancher loadbalancer sl drain_timeout_ms takes effect
https://github.com/ipunkt/rancherize-drain
Last synced: about 1 year ago
JSON representation
Publish via traefiks rancher provider but with an intermediate rancher loadbalancer sl drain_timeout_ms takes effect
- Host: GitHub
- URL: https://github.com/ipunkt/rancherize-drain
- Owner: ipunkt
- License: mit
- Created: 2019-10-13T11:54:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T13:55:27.000Z (over 6 years ago)
- Last Synced: 2025-02-07T05:27:36.472Z (over 1 year ago)
- Language: PHP
- Size: 27.3 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rancherize-drain
Sets drain_timeout_ms in the rancher-compose.yml of a service
## install
In your project using rancherize execute
vendor/bin/rancherize plugin:install ipunkt/rancherize-drain:1.0.0
If you're using the docker container then call the following to activate the plugin for a project
vendor/bin/rancherize plugin:register ipunkt/rancherize-drain
## Use
Full configuration:
```json
{
"drain": {
"enable": false,
"timeout": "30s"
}
}
```
- Having the `drain` object in your configuration will activate the plugin
- timeout will default to 30s if active but no timeout is given
- The following suffixes can be used:
- none: seconds
- `s`: seconds
- `m`: minutes
- enable defaults to TRUE and thus should only be actively set for environments where you want to disable the plugin