unauthorised for getting kubectl api-versions

10/26/2018

I am trying to install ICP version 3 where the setup is automated via ansible to setup a kubernetes cluster. However the setup keeps failing with :

 kubectl api-versions
error: Couldn't get available api versions from server: Unauthorized

Any pointers how can this be debugged?

-- codec
ibm-cloud-private
kubernetes

1 Answer

10/29/2018

Unauthorized usually means you haven’t logged into the cluster with cloudctl or using the ‘Configure Client’ option in the UI to set the kubectl context

-- Damien Gu
Source: StackOverflow