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
- Please specify (single) host string for connection:
- raw.githubusercontent.com port 443: Connection refusedGithub
- Error waiting for a debug connection: ProcessException: adb did not report forwarded portErrorAIExceptionForward
- nacos Connection refused (Connection refused)
- ubuntu ssh: connect to host ** port 22: Connection refused ssh登入遠端伺服器時提示Permission denied (publickey,password)Ubuntu伺服器
- java.net.ConnectException: Connection refused (Connection refused)JavaException
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- 解決 ssh connect to host github.com port 22 Connection timed outGithub
- 解決Mac終端下載報錯 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refusedMacAIGithub
- go get報錯connect: connection refusedGo
- SSH出現Connection refused錯誤
- CM agent 傳送heartbeat給CM server 不斷髮生 connection refused:timed outServer
- Connection could not be established with host 求救
- You can‘t specify target table ‘Person‘ for update in FROM clause
- Error!: SQLSTATE[HY000] [2002] Connection refusedErrorSQL
- nameko shell 報錯 : [Errno 111] Connection refused
- java.net.ConnectException: Connection refused 異常JavaException
- Linux啟動tomcat後執行shutdown.sh關閉時出現異常:Connection refused (Connection refused)LinuxTomcat
- mysql中You can’t specify target table for update in FROM clMySql
- 【bash】關於 /dev/(tcp|udp)/${HOST}/${PORT}devTCPUDP
- telnet localhost 44444 telnet: connect to address ::1: Connection refusedlocalhost
- kubernetes應用flannel失敗 Connection refused.
- PropertyReferenceException: No property courseId found for type CoursePic! Did you mean ‘courseid‘?Exception
- OGG-01224 error 111:Connection refused - retries exceeded.Error
- 解決 Android studio Connect to 127.0.0.1:[/127.0.0.1] failed: Connection refusedAndroid127.0.0.1AI
- Listener refused the connection with the following error:ORA-12514, TNS:listenerError
- RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)RPCAPPAI
- Error on opening a connection to slave1:33061 on local port: 33061Error
- Solaris SSH 服務處於maintenance模式,ssh connection refusedAINaN模式
- webpack 5 報錯 entry “mian“ not found did you spescify the correct option?Web
- Jedis 連線 Redis報JedisConnectionException: java.net.ConnectException: Connection refusedRedisExceptionJava
- Java RMI遇到的Connection refused to Host: 127.x.x.x/192.x.x.x/10.x.x.x問題解決方法Java
- Host 'localhost' is not allowed to connect to this MySQL serverlocalhostMySqlServer
- “Host ‘xxxx‘ is not allowed to connect to this MySQL server“MySqlServer
- MySQL:Lost connection to MySQL server at 'readingMySqlServer