This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ENABLE NODE | |
| kc uncordon $NODE | |
| kubectl taint nodes $NODE dedicated- | |
| # NODE ID | |
| export NODE= | |
| # DISABLE NODE | |
| kc drain $NODE --ignore-daemonsets | |
| kubectl taint nodes $NODE dedicated=special-user:NoExecute |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function convertMiliseconds(miliseconds, format) { | |
| var days, hours, minutes, seconds, total_hours, total_minutes, total_seconds; | |
| total_seconds = parseInt(Math.floor(miliseconds / 1000)); | |
| total_minutes = parseInt(Math.floor(total_seconds / 60)); | |
| total_hours = parseInt(Math.floor(total_minutes / 60)); | |
| days = parseInt(Math.floor(total_hours / 24)); | |
| seconds = parseInt(total_seconds % 60); | |
| minutes = parseInt(total_minutes % 60); |