From 2f92250977bdcfe831e7e5516ca9eb449728f41c Mon Sep 17 00:00:00 2001 From: jay vyas Date: Fri, 14 Dec 2018 16:11:01 -0500 Subject: [PATCH] Make Error message CRI compliant, retain dockerd directions. --- cmd/kube-proxy/app/server.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/kube-proxy/app/server.go b/cmd/kube-proxy/app/server.go index e177449965..a026e94901 100644 --- a/cmd/kube-proxy/app/server.go +++ b/cmd/kube-proxy/app/server.go @@ -537,10 +537,11 @@ func (s *ProxyServer) Run() error { // the only remediation we know is to restart the docker daemon. // Here we'll send an node event with specific reason and message, the // administrator should decide whether and how to handle this issue, - // whether to drain the node and restart docker. + // whether to drain the node and restart docker. Occurs in other container runtimes + // as well. // TODO(random-liu): Remove this when the docker bug is fixed. - const message = "DOCKER RESTART NEEDED (docker issue #24000): /sys is read-only: " + - "cannot modify conntrack limits, problems may arise later." + const message = "CRI error: /sys is read-only: " + + "cannot modify conntrack limits, problems may arise later (If running Docker, see docker issue #24000)" s.Recorder.Eventf(s.NodeRef, api.EventTypeWarning, err.Error(), message) } }