List of pods in Webhook json
I create a webhook with the list of all pods that will be affected.
payload.json: | { "nodeName": "{{ .NodeName }}", "nodePods": {{ toJson .NodePods }} }
After simulating evicting a node, I get the following error.
{"file":"github.com/maksim-paskal/aks-node-termination-handler/cmd/main.go:77","func":"main.main.func2","level":"error","msg":"Got interruption signal...","time":"2025-05-09T19:37:51Z"} {"file":"github.com/maksim-paskal/aks-node-termination-handler/cmd/main.go:91","func":"main.main","level":"info","msg":"Waiting 10s before shutdown...","time":"2025-05-09T19:37:51Z"} E0509 19:37:51.306419 1 request.go:1332] Unexpected error when reading response body: context canceled 2025-05-09T19:37:51.307176658Z {"error":"error in template.NewMessageType: error in getNodePods: error in pods.list: unexpected error when reading response body. Please retry. Original error: context canceled","file":"github.com/maksim-paskal/aks-node-termination-handler/internal/internal.go:150","func":"github.com/maksim-paskal/aks-node-termination-handler/internal.sendEvent","level":"error","msg":"error in webhook.SendWebHook","time":"2025-05-09T19:37:51Z"}
@dimashiftlive, thanks for using this tool.
Can you describe node events before this error? Can you please share all log (hide your sensitive information in this log if you have?