How Do You Troubleshoot a Kubernetes Dashboard Message about a 403 Forbidden Error?

Problem scenario
You created an EKS cluster. But when you open a web browser and go to the API endpoint, you get a 403 forbidden error.

The web browser shows something like this:

kind "Status"
apiVersion "v1"
metadata {}
status "Failure"
message "forbidden: User \"system:anonymous\" cannot get path \"/\""
reason "Forbidden"
details {}
code 403

How do you access the web UI in Kubernetes for the first time?

Possible Solution
The API endpoint as seen in the AWS Console for EKS is not a complete URL that you can browse to. Append a URL path. For example, append "/api" to the base URL (provided in the AWS Console).

Try appending "apis/extensions/v1beta1" to the base URL too.

You may also want to see this posting.

Leave a comment

Your email address will not be published. Required fields are marked *