Running Kubernetes on Mac

3/15/2018

I am running Kubernetes on my local Mac. I used MiniKube for running the cluster. All works fine, but getting unauthorised error on accessing the API.

https:///v1/services

{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "Unauthorized",
"reason": "Unauthorized",
"code": 401
}

I just followed the steps from the below site to install minikube.

https://kubernetes.io/docs/tasks/tools/install-minikube/

Below page for creating services,

https://kubernetes.io/docs/tasks/access-application-cluster/service-access-application-cluster/

Am i missing any other setting?

Clicking "Settings" in the Kubernetes also gives me the following error.

" Forbidden (403) You do not have required permissions to access this page."

Thanks

-- user1578872
kubectl
kubernetes
minikube

1 Answer

3/15/2018

This is perfectly normal. You need to authenticate with the API either with SSL certificate or other means like ie. Baerer token (use user/pass) to acquire the token.

-- Radek 'Goblin' Pieczonka
Source: StackOverflow