/
API access issue
API access issue
Problem
Unable to access Kube API as anonymous user.
Cause
Anonymous user is not created with role to access Kube API.
Fix
In order to allow anonymous users to access Kube API server from outside, follow the commands mentioned below -
# kubectl create rolebinding bob-admin-binding --clusterrole=admin --user=system:anonymous --namespace=default (Any user can access Kube API)
(OR) Use authentication token (preferred one)
curl -k `(kubectl config view | grep server | cut -f 2- -d ":" | tr -d " ")`/api/v1/namespaces/default/pods/web/log --header "Authorization: Bearer `(kubectl describe secret $(kubectl get secrets | grep default | cut -f1 -d ' ') | grep -E '^token' | cut -f2 -d':' | tr -d '\t')`"
, multiple selections available,
Related content
Reverse Proxy for API server
Reverse Proxy for API server
More like this
Unable to list Kube related resources
Unable to list Kube related resources
More like this
Pod Connection Failed - No route to host
Pod Connection Failed - No route to host
More like this
Kubernets Issues
Kubernets Issues
More like this
Kubernetes Pod status Pending
Kubernetes Pod status Pending
More like this
Kubernetes X509 certification issue while executing kubectl
Kubernetes X509 certification issue while executing kubectl
More like this