Cannot connect to TKC control plane VM after it has been DRS migrated: "error creating client and cache for remote cluster"
search cancel

Cannot connect to TKC control plane VM after it has been DRS migrated: "error creating client and cache for remote cluster"

book

Article ID: 398906

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

A TKC   control plane VM was DRS migrated, then users cannot connect to it, the error message is:

  error creating client and cache for remote cluster:
  error creating dynamic rest mapper for remote cluster "production/tkgs-###-##":
  Get "https://##.##.##.##:6443/api?timeout-10s":
  net/http: request canceled while waiting for connection
  (Client.Timeout exceeded while awaiting headers)

Environment

vCenter 7.0.x

Cause

Check this TKC control plane VM, there are 6  IPV6 addresses on it, but there is no IPv4 address.

When user tries to login , they use IPv4 address, therefore the connection failed.

Resolution

For this scenario, reboot the TKC control plane VM, IPv4 address is back, this is a workaround.

If reboot doesn't help, then the next action should be:

    Access this TKC control plane VM in VM console, login as root account,

then check why IPv4 address is missing.