When joining the secondary node to cluster, it fails with unexpected error code while connecting with k8s on primary node, how to troubleshoot the same?
Issue Description:
When joining the secondary node to cluster, it fails with an unexpected error code while connecting with k8s on the primary node.
Error Message:
[ERROR][TimeStamp]: Primary Connectivity Validation Failed
[ERROR][TimeStamp]: >>> URL: ’ https://automationsuiteFQDN:9345/cacerts’ returned unexpected http code: ‘000’ Expected: ‘200’ Ensure network allows connectivity on port: 9345 and RKE2 server service is running on already configured server(s)
====================================================================================================
[ERROR][TimeStamp]: [Infrastructure] [Failed] Installing and configuring kubernetes# RKE2 server is running on the the main server node and the URL can be opened with the host IP but not with the URL because of the loadbalancer.
Possible Root Cause:
This issue is generally encountered when the prerequisites of configurations of the Load balancer are not met and the connectivity is failing between the primary and secondary(worker) nodes.
Resolution:
A load balancer is mandatory for the multi-node HA-ready production setup. The below ports need to be enabled on the firewall for the source of the load balancer:
Please ensure there is connectivity between the primary and secondary nodes on the above ports.
For more information, refer to the following documentation: Configuring The Load Balancer.