Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid Rancher RKE Reconcile warning?

Whenever I set up a Rancher Kubernetes cluster with RKE, the cluster sets up perfectly. However, I'm getting the following warning message:

WARN[0011] [reconcile] host [host.example.com] is a control plane node without reachable Kubernetes API endpoint in the cluster
WARN[0011] [reconcile] no control plane node with reachable Kubernetes API endpoint in the cluster found

(in the above message, the host.example.com is a placeholder for my actual host name, this message is given for each controlplane host specified in the cluster.yml)

How can I modify the RKE cluster.yml file or any other setting to avoid this warning?

like image 392
Maxim Masiutin Avatar asked Oct 15 '22 20:10

Maxim Masiutin


1 Answers

I don't believe you can suppress this warning since as you indicate in your comments, the warning is valid on the first rke up command. It is only a warning, and a valid one at that, even though your configuration appears to have a handle on that. If you are worried about the logs, you could perhaps have your log aggregation tool ignore the warning if it is in close proximity to the initial rke up command, or even filter it out. However, I would think twice about filtering blindly on it as it would indicate a potential issue (if, for example, you thought the control plane containers were already running).

like image 87
Foghorn Avatar answered Oct 20 '22 01:10

Foghorn