/
Kubernets Issues
Kubernets Issues
Problem
Unable to access Kube API as anonymous user.
Cause
Anonymous user role is not created to access Kube API
Fix
Create Role binding to access Kubectl API through webapplication as anonymous user
- kubectl create rolebinding anonymous --clusterrole=cluster-admin --user=system:anonymous --namespace=default
Problem
User "system:serviceaccount:default:default" cannot list pods in the namespace "default"
Cause
Cluster role binding to services has not been performed.
Fix
Use the below command to create the cluster role and bind all services
- kubectl create clusterrolebinding serviceaccounts-cluster-admin --clusterrole=cluster-admin --group=system:serviceaccounts
Problem
Slaves are connected but not visible from master
Cause
Mismatch between the kubernetes master version and slave version
Fix
To install a specific version kubernetes below command will help, execute this in both kubernetes master and slaves
- apt-get install -y kubeadm=1.6.4-00 kubectl=1.6.4-00 kubelet=1.6.4-00 kubernetes-cni
, multiple selections available,
Related content
Steps to be followed when Kubernetes pod/containers not reachable to internet
Steps to be followed when Kubernetes pod/containers not reachable to internet
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
Kube Pods stay in the terminating state
Kube Pods stay in the terminating state
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