The connection to the server 10.10.0.2:6443 was refused - did you specify the right host or port?
當重啟k8s的master後,我遇到了不可想象的神祕錯誤:
The connection to the server 10.10.0.2:6443 was refused - did you specify the right host or port?
方案1
去百度了一下,絕大多數的解決方案是:
swapoff -a
vim /etc/fstab
# 然後註釋掉有 swaq 的那一行
# 再重啟
reboot
這樣做是因為k8s需要關閉swap
我照做了,但是沒有效果
方案2
後來,經過不停的百度與谷歌,我還是沒有解決問題,一度絕望。在我隨意執行一個指令後,我發現了這個:
127.0.0.1:8889 是我用的網路代理的地址和埠,我用的是Qv2ray來網路代理,它不會開機自啟,所以我重啟後,代理就用不了。。。。。。
所以,如果大家使用了網路代理,那就要開啟自己的代理。
最後,熟悉的畫面:
相關文章
- ssh: connect to host localhost port 22: Connection refusedlocalhost
- 坑:ssh: connect to host github.com port 22: Connection refusedGithub
- 異常解決——GitLab : ssh: connect to host port 22: Connection refusedGitlab
- raw.githubusercontent.com port 443: Connection refusedGithub
- EJB create時ConnectException: Connection refused to host:....問題Exception
- Xlib: connection to ":0.0" refused by server(openSUSE)Server
- Xlib: connection to ":0.0" refused by server 問題Server
- java.net.ConnectException: Connection refused (Connection refused)JavaException
- Mount: you must specify the filesystem type
- Error waiting for a debug connection: ProcessException: adb did not report forwarded portErrorAIExceptionForward
- mysql connection refusedMySql
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- 【轉載】Xlib: connection to ":0.0" refused by server的解決方法Server
- Xlib: connection to ":0.0" refused by server Xlib: No protocol specified解決方案ServerProtocol
- IOException in sending Request :: Connection refusedException
- You can‘t specify target table ‘Person‘ for update in FROM clause
- 【bash】關於 /dev/(tcp|udp)/${HOST}/${PORT}devTCPUDP
- mysql中You can’t specify target table for update in FROM clMySql
- linux 掛載光碟:mount: you must specify the filesystem typeLinux
- Connection could not be established with host 求救
- 解決Mac終端下載報錯 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refusedMacAIGithub
- FTP Connection refused error 解決辦法FTPError
- go get報錯connect: connection refusedGo
- CM agent 傳送heartbeat給CM server 不斷髮生 connection refused:timed outServer
- jdbc連線sql server 出現 java.sql.SQLException: Network error IOException: Connection refused:JDBCSQLServerJavaExceptionError
- java.net.ConnectException: Connection refused 異常JavaException
- java.sql.SQLException: Io 異常: Connection refusedJavaSQLException
- Linux啟動tomcat後執行shutdown.sh關閉時出現異常:Connection refused (Connection refused)LinuxTomcat
- 【MySQL】Host is blocked because of many connection errorsMySqlBloCError
- AS編譯不通過,提示Error:Connection refused: connect編譯Error
- Gradle 編譯不通過 connection refused connectGradle編譯
- Oracle11G監聽報錯Connection refusedOracle
- 【Mysql】MySql Host is blocked because of many connection errors;MySqlBloCError
- Solaris SSH 服務處於maintenance模式,ssh connection refusedAINaN模式
- Error!: SQLSTATE[HY000] [2002] Connection refusedErrorSQL
- kubernetes應用flannel失敗 Connection refused.
- oracle listener錯誤Linux Error: 111: Connection refusedOracleLinuxError
- scp時候出現ssh Connection refused的解決方案