I’m following the directions in Amazon Web Services | n8n Docs to setup the n8n container in Kubernetes. Ultimately, I want to have a setup where a new deployment of the container has a smooth transfer from the old to the new. I know this as a blue/green deployment.
The question I have is what command do I run on the old container to have it finish any active executions, but NOT take on any new ones. By the time I run this command, I will have pointed my load balancer to the new container, so no incoming webhooks should hit the old container any more.
Do I just need to find the process id (pid) of the “n8n start” command and send it a soft kill command, like …
kill -SIGTERM <pid>
Information on your n8n setup
- n8n version: stable
- Database: postgresdb (AWS RDS)
- n8n EXECUTIONS_PROCESS setting: default
- Running n8n via: AWS EKS
- Operating system: OS in “n8nio/n8n:stable” container image (I assume Ubuntu)