ipunkt / rancherize-drain
Add drain.timeout to set drain_timeout_ms in rancher-compose.yml
Installs: 43
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 0
Type:project
Requires
- ipunkt/rancherize: ^2.49.0
This package is auto-updated.
Last update: 2024-11-17 00:49:50 UTC
README
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:
{ "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
: secondsm
: minutes
- The following suffixes can be used:
- enable defaults to TRUE and thus should only be actively set for environments where you want to disable the plugin