Validate Connection of Kubernetes Adapter fails with error "Error in fetching the version of Kubernetes control plane"
search cancel

Validate Connection of Kubernetes Adapter fails with error "Error in fetching the version of Kubernetes control plane"

book

Article ID: 393375

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

When trying to validate a new adapter/auto-created adapter instance which might be in "Warning" state, Validate connection might fail with

"Error in fetching the version of Kubernetes control plane- <CONTROL_PLANE_URL>"

 

Environment

VMware Aria Operations Management Pack for Kubernetes 2.2

Cause

The adapter checks for minor versions of Kubernetes which is expected to be a numeric value, but in this instance it could receive a response with special character. 

Example : 30+ (+ is unexpected)


Note : To check minor version use the below command


curl -k https://<CONTROL_PLANE_URL>/version

Resolution

  1. Acknowledge the error on clicking "Validate Connection" by clicking on "Ok".
  2. Click on "Add" at the bottom of the configuration page, this will popup the same warning received earlier. Go ahead and click on "Add". This will create a new adapter and should be in "Collecting" state after 5-10mins.