国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

The connection to the server localhost:8080 was refused - did you specify the right host or port?

這篇具有很好參考價(jià)值的文章主要介紹了The connection to the server localhost:8080 was refused - did you specify the right host or port?。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

The connection to the server localhost:8080 was refused - did you specify the right host or port?

問(wèn)題背景

使用 kubeadm 安裝完成 kubetnetes 之后,將節(jié)點(diǎn)加入 master 之后,提示 The connection to the server localhost:8080 was refused - did you specify the right host or port?

[root@master ~]# kubectl get nodes
The connection to the server localhost:8080 was refused - did you specify the right host or port?

問(wèn)題解決

方法1

查看 /etc/kubernetes/ 目錄下是否存在 kubelet.conf 或者 admin.conf (個(gè)人理解只是文件名稱不同),然后將上述兩個(gè)文件路徑寫入到 /etc/profile 環(huán)境變量配置文件中

echo "/etc/kubernetes/admin.conf" >> /etc/profile
或者
echo "/etc/kubernetes/kubelet.conf" >> /etc/profile

source /etc/profile
[root@master ~]# kubectl get nodes
NAME     STATUS     ROLES                  AGE     VERSION
master   NotReady   control-plane,master   5m56s   v1.23.0
node1    NotReady   <none>                 5m17s   v1.23.0
node2    NotReady   <none>                 5m15s   v1.23.0
方法2

拷貝k8s認(rèn)證文件

參考官網(wǎng):官網(wǎng)地址

官網(wǎng)中有對(duì) TLS 證書錯(cuò)誤 做解答
The connection to the server localhost:8080 was refused - did you specify the right host or port?,kubernetes,kubernetes,kubetnetes提示

mkdir -p $HOME/.kube
cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
chown $(id -u):$(id -g) $HOME/.kube/config

# 查看節(jié)點(diǎn)信息,如果沒(méi)有拷貝認(rèn)證文件,是看不到節(jié)點(diǎn)信息的
kubectl get nodes

The connection to the server localhost:8080 was refused - did you specify the right host or port?,kubernetes,kubernetes,kubetnetes提示

由于沒(méi)有配置網(wǎng)絡(luò)插件,所以這里看到節(jié)點(diǎn)信息都是 NotReady (未就緒)的

問(wèn)題總結(jié)

安裝參考文檔:https://blog.csdn.net/D1179869625/article/details/126303213

?
?
?
?
?文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-516019.html

到了這里,關(guān)于The connection to the server localhost:8080 was refused - did you specify the right host or port?的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • k8s--重啟后報(bào)錯(cuò):The connection to the server lb.kubesphere.local:6443 was refused - did you specify the r

    k8s--重啟后報(bào)錯(cuò):The connection to the server lb.kubesphere.local:6443 was refused - did you specify the r

    執(zhí)行這個(gè)命令報(bào)錯(cuò):The connection to the server lb.kubesphere.local:6443 was refused - did you specify the r kubectl get pod -A 如果你之前是正常運(yùn)行的話,只用等待就行了,因?yàn)檫@個(gè)錯(cuò)是k8s主節(jié)點(diǎn)的kubectl還沒(méi)啟動(dòng)的原因,所以會(huì)報(bào)這個(gè)錯(cuò)?。?一般等個(gè)2分鐘左右在執(zhí)行命令:

    2024年02月11日
    瀏覽(22)
  • 記一次k8s報(bào)錯(cuò):The connection to the server ip:6443 was refused - did you specify the right host or port?

    敲擊kubectl任意命令提示無(wú)法連接到10.75.78.212 的6443端口 kube-apiserver 默認(rèn)端口無(wú)法連接,初步判斷 kube-apiserver 服務(wù)出現(xiàn)問(wèn)題 這里簡(jiǎn)單總結(jié)下kube-apiserver組件: kube-apiserver 是 Kubernetes 控制平面的樞紐,負(fù)責(zé)處理所有的 API 調(diào)用,包括集群管理、應(yīng)用部署和維護(hù)、用戶交互等,并

    2024年04月10日
    瀏覽(68)
  • 《Kubernetes》-- kubectl get nodes報(bào)錯(cuò):The connection to the server localhost:8080

    《Kubernetes》-- kubectl get nodes報(bào)錯(cuò):The connection to the server localhost:8080

    在使用Kubernetes(K8S)集群管理工具時(shí),常會(huì)使用 kubectl 命令來(lái)管理集群的節(jié)點(diǎn)和資源。 其中, kubectl get nodes 命令用于查看集群中的節(jié)點(diǎn)狀態(tài)。然而,有時(shí)候執(zhí)行該命令時(shí)會(huì)遇到報(bào)錯(cuò)信息:“The connection to the server localhost:8080 was refused - did you specify the right host or port?”。本文將

    2024年01月25日
    瀏覽(19)
  • k8s遇 The connection to the server :6443 was refused

    一般而言,6443端口是用于給apiserver使用的,如果報(bào)這個(gè)錯(cuò)誤,就說(shuō)明apiserver要么沒(méi)起來(lái),要么就是端口被占用了。 挨個(gè)檢查以下幾個(gè)守護(hù)進(jìn)程有無(wú)問(wèn)題,如果有報(bào)錯(cuò)日志,則需要進(jìn)行排查 如果都沒(méi)有問(wèn)題,那就查看apiserver容器是否起來(lái)了 如果apisever沒(méi)有正常運(yùn)行中,就需要

    2024年01月19日
    瀏覽(20)
  • K8s 重設(shè)解決 “The connection to the server xxx:6443 was refused” 問(wèn)題

    K8s 重設(shè)解決 “The connection to the server xxx:6443 was refused” 問(wèn)題

    有時(shí) kubectl 執(zhí)行命令時(shí)出現(xiàn)問(wèn)題,無(wú)法連接 kube-apiserver,報(bào)錯(cuò)如下: 初步判斷,kubelet 沒(méi)有將 apiserver 拉起來(lái)。 上面報(bào)錯(cuò)說(shuō)明 kubelet 沒(méi)有正常啟動(dòng)。 日志如下: 注意,在生產(chǎn)環(huán)境謹(jǐn)慎執(zhí)行,在測(cè)試環(huán)境可以考慮使用。注意,在 master 節(jié)點(diǎn)上操作。 這部分詳細(xì)的可以參考 K8s

    2024年02月04日
    瀏覽(27)
  • 樹(shù)莓派VNC控制報(bào)錯(cuò):The connection was refused by the computer 已解決

    樹(shù)莓派VNC控制報(bào)錯(cuò):The connection was refused by the computer 已解決

    在進(jìn)行VNC遠(yuǎn)程操控樹(shù)莓派的時(shí)候,出現(xiàn)了這個(gè)錯(cuò)誤:The connection was refused by the computer。 大概原因有兩個(gè):一個(gè)是樹(shù)莓派的IP地址更改了,另一個(gè)就是樹(shù)莓派的VNC服務(wù)沒(méi)有開(kāi)啟。 我的這塊板子是個(gè)新板子,原因很顯然是后者。解決方法如下: 1.打開(kāi)PUTTY登錄樹(shù)莓派 2. 輸入自己樹(shù)

    2024年02月08日
    瀏覽(18)
  • k8s重啟報(bào)錯(cuò):Get “http://localhost:8080/api?timeout=32s“: dial tcp [::1]:8080: connect: connection refuse

    單從報(bào)錯(cuò)可以看出,kubectl 沒(méi)有使用到證書與k8s api通信,在初始化集群的時(shí)候要想使用kubectl需要,申明證書變量 export KUBECONFIG=/etc/kubernetes/admin.conf ,重啟之后 KUBECONFIG 變量失效了。所有需要重新聲明,并加入過(guò)/etc/profile 全局變量文件。

    2024年04月27日
    瀏覽(35)
  • Refused to execute script from ‘http://localhost:8080/login.html‘

    Refused to execute script from ‘http://localhost:8080/login.html‘

    最近學(xué)習(xí)SpringSecurity,在添加了SpringSecurity依賴后導(dǎo)致原先的網(wǎng)站圖片、js代碼都顯示不出來(lái)了,瀏覽器報(bào)錯(cuò),代碼如下 原因,將靜態(tài)頁(yè)面、JS、img等資源都放在了resource的static文件夾下,導(dǎo)致security默認(rèn)攔截了這些請(qǐng)求,從而訪問(wèn)頁(yè)面時(shí)組件的事件不起作用,控制臺(tái)報(bào)錯(cuò)如下

    2024年02月07日
    瀏覽(14)
  • Did not attempt to load JSON data because the request Content-Type was not ‘a(chǎn)pplication/json‘

    在使用flask-restfull進(jìn)行API開(kāi)發(fā)的時(shí)候。一旦我使用類似下面的代碼從url或者form中獲得參數(shù)就會(huì)出現(xiàn)報(bào)錯(cuò):Did not attempt to load JSON data because the request Content-Type was not ‘a(chǎn)pplication/json’。 代碼如下: 解決方法如下

    2024年02月16日
    瀏覽(26)
  • AnyConnect was not able to establish connection to the specified secure gateway

    AnyConnect was not able to establish connection to the specified secure gateway

    講述一下在使用?Cisco AnyConnect Secure Mobility Client連接公司VPN遇到AnyConnect was not able to establish connection to the specified secure gateway的解決方法。 我的是Win11系統(tǒng)。安裝的版本是3.0。 1:去掉Internet連接共享的勾勾 控制面板-網(wǎng)絡(luò)和Internet-網(wǎng)絡(luò)和共享中心-更改適配器設(shè)置-右擊,點(diǎn)擊屬

    2024年02月11日
    瀏覽(21)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包