Post VKS Cluster Management service deployment, the auto-attach pod is in Crash Loop back off
search cancel

Post VKS Cluster Management service deployment, the auto-attach pod is in Crash Loop back off

book

Article ID: 437922

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service VMware vSphere ESXi

Issue/Introduction

  • When setting up the VKS Cluster Management service on a single Control Plane node Supervisor Cluster, the auto-attach pod is in a "CrashLoopBackOff" state.

  • The auto-attach Pkgi is in a "ReconciledFailed" state because it is waiting for the endpoints (auto-attach replicaset) to come up successfully.

  • The logs of the auto-attach pod look like below.

    level":"info","time":"YYYY-MM-DDT<time>:<timezone>","msg":"Setting up client for manager"}
    {"level":"info","time":"YYYY-MM-DDT<time>:<timezone>","msg":"Setting up scheme"}
    {"level":"info","time":"YYYY-MM-DDT<time>:<timezone>","msg":"setting up manager"}
    {"level":"error","time":"YYYY-MM-DDT<time>:<timezone>","msg":"Failed to get API Group-Resources","error":"Get \"https://10.96.0.1:443/api?timeout=32s\": dial tcp 10.96.0.1:443: i/o timeout"}
    {"level":"error","time":"YYYY-MM-DDT<time>:<timezone>","msg":"failed to setup manager","error":"failed to create new manager: Get \"https://10.96.0.1:443/api?timeout=32s\": dial tcp 10.96.0.1:443: i/o timeout","errorVerbose":"Get \"https://10.96.0.1:443/api?timeout=32s\": dial tcp 10.96.0.1:443: i/o timeout\nfailed to create new manager\}

Environment

VMware vSphere Kubernetes Service
VMware NSX with VPC

Cause

The auto-attach pod is unable to speak to the api-server endpoint. The cluster-IP listens on port 443 and redirects the incoming traffic to the load balancer service. The same further redirects it to the api-server endpoint on the Supervisor cluster workload network over port 6443. The communication between the auto-attach pod and api-server endpoint is broken between either of these hops.

Resolution

Check the network connectivity issue between the Auto-attach pod and the Supervisor cluster's API server endpoint. It could be because of either of the below.

  1. Health of the load balancer: In case the DFW is required to be enabled, it can cause the Load Balancer to not be functional breaking the Kubernetes functionality.
  2. Firewall Blocking the connectivity between various endpoints (cluster-IP, kube-apiserver-lb-svc etc).
  3. Any routing issues within the VPC or in the external network in case the traffic traverses the T0 gateway.