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

已解決—The connection to the server localhost:8080 was refused - did you specify the right host or port

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

運(yùn)行?kubectl get namespace時報錯:

[root@ip-10-0-0-8 ~]# kubectl get namespace

E0320 07:39:20.866425 32422 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused

....

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

已解決—The connection to the server localhost:8080 was refused - did you specify the right host or port,運(yùn)維,docker,kubernetes

原因:kubectl命令需要使用kubernetes-admin來運(yùn)行,需要admin.conf文件;而admin.conf 文件是通過 “kubeadmin init” 命令在 /etc/kubernetes 中創(chuàng)建的,從節(jié)點(diǎn)沒有該配置文件;因此需要將admin.conf復(fù)制到從節(jié)點(diǎn)

復(fù)制配置文件并解決此問題:?

sudo mkdir ~/.kube
sudo cp /etc/kubernetes/admin.conf ~/.kube/

cd ~/.kube
sudo mv admin.conf config
sudo service kubelet restart

?或者按以下方式指定配置文件:

kubectl --kubeconfig ~/.kube/config  get nodes

?或者配置環(huán)境變量

echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> ~/.bash_profile

source ~/.bash_profile

技術(shù)性分享,轉(zhuǎn)載請注明出處!

歡迎互相交流,共同進(jìn)步!文章來源地址http://www.zghlxwxcb.cn/news/detail-520130.html

到了這里,關(guān)于已解決—The connection to the server localhost:8080 was refused - did you specify the right host or port的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

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

相關(guān)文章

  • 解決:The connection to the server raw.githubusercontent.com was refused - did you specify the right ho

    解決:The connection to the server raw.githubusercontent.com was refused - did you specify the right ho

    我在部署k8s集群安裝fannel 時候 出現(xiàn)報錯: The connection to the server raw.githubusercontent.com was refused - did you specify the right host or port? 原因:外網(wǎng)不可訪問 解決辦法: 在https://www.ipaddress.com/查詢raw.githubusercontent.com的真實(shí)IP。 加入 再次運(yùn)行 即可成功安裝fannel 希望對各位有所幫助!

    2024年02月11日
    瀏覽(26)
  • 《Kubernetes》-- kubectl get nodes報錯:The connection to the server localhost:8080

    《Kubernetes》-- kubectl get nodes報錯:The connection to the server localhost:8080

    在使用Kubernetes(K8S)集群管理工具時,常會使用 kubectl 命令來管理集群的節(jié)點(diǎn)和資源。 其中, kubectl get nodes 命令用于查看集群中的節(jié)點(diǎn)狀態(tài)。然而,有時候執(zhí)行該命令時會遇到報錯信息:“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使用的,如果報這個錯誤,就說明apiserver要么沒起來,要么就是端口被占用了。 挨個檢查以下幾個守護(hù)進(jìn)程有無問題,如果有報錯日志,則需要進(jìn)行排查 如果都沒有問題,那就查看apiserver容器是否起來了 如果apisever沒有正常運(yùn)行中,就需要

    2024年01月19日
    瀏覽(20)
  • k8s--重啟后報錯:The connection to the server lb.kubesphere.local:6443 was refused - did you specify the r

    k8s--重啟后報錯:The connection to the server lb.kubesphere.local:6443 was refused - did you specify the r

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

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

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

    2024年04月10日
    瀏覽(68)
  • 樹莓派VNC控制報錯:The connection was refused by the computer 已解決

    樹莓派VNC控制報錯:The connection was refused by the computer 已解決

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

    2024年02月08日
    瀏覽(18)
  • 解決MySQL報錯:“The last packet sent successfully to the server was 0 milliseconds ago.”

    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure?The?last?packet sent successfully?to?the server was?0?milliseconds ago. The driver has?not?received?any?packets?from?the server. 問題原因: 之所以出現(xiàn)異常,是由于數(shù)據(jù)庫回收了連接,而系統(tǒng)的緩沖池不知道,繼續(xù)使用被回收的連

    2024年02月08日
    瀏覽(27)
  • EKS 解決Unable to connect to the server 問題

    EKS 解決Unable to connect to the server 問題

    報錯內(nèi)容如下 1、先配置日志查詢我們的eks所屬用戶 2、查詢?nèi)罩?執(zhí)行以下查詢語句 3、查詢當(dāng)前主機(jī)aws configure 4、執(zhí)行操作遠(yuǎn)程k8s 報錯如下 5、降低kubectl版本 各版本下載地址 https://docs.aws.amazon.com/eks/latest/userguide/install-kubectl.html

    2024年02月12日
    瀏覽(98)
  • 已解決The last packet sent successfully to the server was 0 milliseconds ago. The driver has not receiv

    已解決The last packet sent successfully to the server was 0 milliseconds ago. The driver has not receiv

    注:此文章是在mysql8版本的前提下編寫的。 在我們使用springcloud在連接mysql數(shù)據(jù)庫時,有時會碰到如下這種異常: 為此我上網(wǎng)查了不少資料,在這里小總結(jié)一下: 1. 連接url是否正確(自己看看useSSL是否為false): 2.數(shù)據(jù)庫服務(wù)是否打開: 找到MySql服務(wù): 3.網(wǎng)上最多解決的等待

    2024年01月16日
    瀏覽(20)
  • ssh: connect to host localhost port 22: Connection refused解決方法

    在通過ssh遠(yuǎn)程連接樹莓派時遇到以下問題 1.檢查 是否安裝了openssh-server 如果出現(xiàn)了sshd,則說明安裝了,反之則沒安裝。 既然問題找到了,我們就開始用命令來安裝openssh-server,命令如下: sudo apt-get install openssh-server 安裝完成后,我們再用\\\"ps -e | grep ssh\\\"命令來看下,openssh-ser

    2024年02月05日
    瀏覽(33)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包