proper shut down in K8S (#253)

This commit is contained in:
Dave Horton
2023-02-07 19:54:34 -05:00
committed by GitHub
parent 7ae37b1e60
commit e990b5dbf9
2 changed files with 18 additions and 5 deletions

View File

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