Problem description
K8S cluster has 3 masters with the same certificate file, one master is normal, and the other two masters have questions: enter kubectl get nodes
kubectl get Po – all-minus namespaces is logged with an error You must be logged in to the server(unauthorized)
The solution
Cluster if installed using administrator:
export KUBECONFIG=/etc/kubernetes/admin.conf
If the cluster is installed with a regular user:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
div>
Read More:
- If you open the store in iTunes, you will be prompted to solve the 310 error
- “Failed to convert @ drawable / XX into a drawable exception details are logged in window”
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- Solve the problem that the value in the disabled tag cannot be passed to the server
- Samba shared server cannot be accessed and the path cannot be found
- “ XX.app ”It is damaged and cannot be opened. You should move it to the wastebasket.
- The web project removal server reports an error, and the web project in eclipse cannot be automatically deployed to Tomcat
- HTTP Error 401.1 – Unauthorized:Access is denied due to invalid credentials
- Ganglia cannot access: you don’t have permission to access / ganglia on this server
- How to Solve Error: The requested URL returned error: 401 Unauthorized while accessing
- Angular Error You seem to not be depending on “@angular/core“ and/or “rxjs“. (Fixed)
- The video cannot be played because you have disabled the cookie
- Problem solving: PDF cannot be opened, and acrobat failed to connect to a DDE server appears
- The document “ostream” could not be saved. You don’t have permission
- Error: ADB prompts device unauthorized
- [Bug] Solve the problem that Acrobat cannot be opened: failed to connect to a DDE server
- HTTP Error 404.2 – Not Found “The page you are requesting cannot be served because of the ISAPI and
- Local can link to the server database, upload jar package to the server will report an error
- [Solved] adb shell error: error: device unauthorized
- When MySQL is running, the server suddenly goes down, which causes Mysql to be unable to restart