Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

"system:serviceaccount:default:default" cannot list pods in the namespace "default"

Cause

system:serviceaccount not found

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 visible from master

...

Mismatch between the kubernetes master version and slave version

Fix

To install a specific version kubernetes below command will help

  1. apt-get install -y kubeadm=1.6.4-00 kubectl=1.6.4-00 kubelet=1.6.4-00 kubernetes-cni

...