Unable to run kubectl-vsphere commands in Alpine Linux even after successful installation of kubectl-vsphere plugin
search cancel

Unable to run kubectl-vsphere commands in Alpine Linux even after successful installation of kubectl-vsphere plugin

book

Article ID: 384842

calendar_today

Updated On: 12-23-2024

Products

VMware vSphere with Tanzu

Issue/Introduction

After the successful installation of kubectl-vsphere plugin in an Alpine Linux distribution jump server as per this document, kubectl-vsphere command fails with an error message "command not found".

 

Environment

Alpine Linux distribution

vSphere with Tanzu

Cause

Alpine Linux does not have glibc by default. It uses musl lib

Listing shared libraries with the command 'ldd --version' lists only musl libc (x86_64).

We need to install 'glibc' to execute 'kubectl-vsphere' commands

 

Resolution

Install glibc manually using the below commands:

wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.31-r0/glibc-2.31-r0.apk
apk add --allow-untrusted glibc-2.31-r0.apk