proper shut down in K8S (#254)

This commit is contained in:
Dave Horton
2023-02-07 19:54:17 -05:00
committed by GitHub
parent de8688ced8
commit 5e5fb4c191
2 changed files with 16 additions and 1 deletions

View File

@@ -75,6 +75,9 @@ module.exports = (logger) => {
}
})();
}
else if (process.env.K8S) {
lifecycleEmitter.scaleIn = () => process.exit(0);
}
async function pingProxies(srf) {
if (process.env.NODE_ENV === 'test') return;