mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	Make Error message CRI compliant, retain dockerd directions.
This commit is contained in:
		@@ -537,10 +537,11 @@ func (s *ProxyServer) Run() error {
 | 
				
			|||||||
				// the only remediation we know is to restart the docker daemon.
 | 
									// the only remediation we know is to restart the docker daemon.
 | 
				
			||||||
				// Here we'll send an node event with specific reason and message, the
 | 
									// Here we'll send an node event with specific reason and message, the
 | 
				
			||||||
				// administrator should decide whether and how to handle this issue,
 | 
									// 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.
 | 
									// TODO(random-liu): Remove this when the docker bug is fixed.
 | 
				
			||||||
				const message = "DOCKER RESTART NEEDED (docker issue #24000): /sys is read-only: " +
 | 
									const message = "CRI error: /sys is read-only: " +
 | 
				
			||||||
					"cannot modify conntrack limits, problems may arise later."
 | 
										"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)
 | 
									s.Recorder.Eventf(s.NodeRef, api.EventTypeWarning, err.Error(), message)
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user