Error: admission webhook "tkr-vsphere-resolver-webhook.tanzu.vmware.com" denied the request: failed to login to vSphere: 401 Unauthorized
search cancel

Error: admission webhook "tkr-vsphere-resolver-webhook.tanzu.vmware.com" denied the request: failed to login to vSphere: 401 Unauthorized

book

Article ID: 419741

calendar_today

Updated On:

Products

Tanzu Kubernetes Runtime

Issue/Introduction

When creating a guest cluster, the operation fails and produces the below error:

Error from server (Forbidden): error when creating "<FILE>.yaml": admission webhook "tkr-vsphere-resolver-webhook.tanzu.vmware.com" denied the request: failed to login to vSphere: cannot login to vc: POST https://<FQDN>/rest/com/vmware/cis/session: 401 Unauthorized

Environment

2412.10.14

Cause

The vCenter credentials used are incorrect, invalid, or expired.

Resolution

Ensure the credentials being used are correct and valid.