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

【k8s】Unable to restart cluster, will reset it: apiserver healthz異常

這篇具有很好參考價值的文章主要介紹了【k8s】Unable to restart cluster, will reset it: apiserver healthz異常。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

在構(gòu)建K8s時遇到該問題異常

問題描述

  • 該問題在執(zhí)行minikube start命令后出現(xiàn)的無法啟動的異常

完整異常描述:

Unable to restart cluster, will reset it: apiserver healthz: apiserver process never appeared

翻譯:無法重新啟動群集,將重置它:apiserver healthz:apiserver進(jìn)程從未出現(xiàn)

問題解決辦法

問題分析:未構(gòu)建成功服務(wù),并由于存在國內(nèi)墻的困擾,哪怕指定了阿里云的鏡像庫依舊失敗,這可能是由于使用官方的minikube 導(dǎo)致自動拉起的是最新的,而鏡像庫并非是最新的,導(dǎo)致無法下載完整的資源導(dǎo)致的

  • 解決:進(jìn)行指定k8s版本
minikube start --kubernetes-version=v1.23.8
  • 指定阿里鏡像版
minikube start --image-mirror-country='cn' --image-repository='registry.cn-hangzhou.aliyuncs.com/google_containers'

補充

后續(xù)采用minikube dashboard時出現(xiàn)錯誤Error: no DISPLAY environment variable specified只需要進(jìn)行代理訪問即可。

代理轉(zhuǎn)發(fā)代碼(需要安裝kubectl)kubectl官方安裝教程鏈接文章來源地址http://www.zghlxwxcb.cn/news/detail-409102.html

nohup  kubectl proxy --port=想要轉(zhuǎn)發(fā)到的端口 --address='當(dāng)前ip地址' --accept-hosts='^.*' > ./nohup.out &

安裝minikube注意要點

  • docker需要使用非root用戶進(jìn)行啟動才行,使用docker用戶組記得開放sudo 命令給指定用戶
  • 諾使用VM虛假機進(jìn)行練習(xí),注意添加用戶組后重新啟動虛擬機

到了這里,關(guān)于【k8s】Unable to restart cluster, will reset it: apiserver healthz異常的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

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

相關(guān)文章

  • 通過keepalived+nginx實現(xiàn) k8s apiserver節(jié)點高可用

    通過keepalived+nginx實現(xiàn) k8s apiserver節(jié)點高可用

    K8s 主機配置: 配置: 4Gib 內(nèi)存/4vCPU/60G 硬盤 網(wǎng)絡(luò):機器相互可以通信 k8s 實驗環(huán)境網(wǎng)絡(luò)規(guī)劃: podSubnet(pod 網(wǎng)段) 10.244.0.0/16 serviceSubnet(service 網(wǎng)段): 10.96.0.0/12 物理機網(wǎng)段:192.168.1.0/24 2個控制節(jié)點2個工作節(jié)點 K8S集群角色 IP地址 主機名 安裝的組件 控制節(jié)點 192.168.1.63 xueg

    2024年02月03日
    瀏覽(27)
  • 【博客682】k8s apiserver bookmarks機制以更高效檢測變更

    【博客682】k8s apiserver bookmarks機制以更高效檢測變更

    List-Watch 是kubernetes中server和client通信的最核心的機制, 比如說api-server監(jiān)聽etcd, kubelet監(jiān)聽api-server, scheduler監(jiān)聽api-server等等,其實其他模塊監(jiān)聽api-server相當(dāng)于監(jiān)聽etcd,因為在k8s的設(shè)計中,只有api-server能跟etcd通信,其他模塊需要etcd的數(shù)據(jù)就只好監(jiān)聽api-server了。 etcd默認(rèn)保留

    2024年02月15日
    瀏覽(25)
  • 通過kube-apiserver訪問K8s集群中的App

    通過kube-apiserver訪問K8s集群中的App

    K8s集群中的App(或者svc),通常使用ClusterIP,NodePort,Loadbalancer這些方式訪問,但是你也可以通過Kube-apiserver(管理面)來訪問App。 在《跟唐老師學(xué)習(xí)云網(wǎng)絡(luò) - Kubernetes網(wǎng)絡(luò)實現(xiàn)》里面,提到K8s集群里面的容器,有幾種訪問方法: LoadBalancer Ingress ClusterIP NodePort 這里就不再分析

    2024年01月19日
    瀏覽(23)
  • k8s mysql集群 & 分布式鎖 & apiserver & etcd 的關(guān)系

    在 Kubernetes (k8s) 中,MySQL 集群可以使用分布式鎖來確保在多個實例之間對共享資源的互斥訪問。這是通過結(jié)合 Kubernetes API Server 和 etcd 來實現(xiàn)的。 Kubernetes API Server 是 k8s 集群中的核心組件之一,它充當(dāng)了集群的控制平面,提供了對集群資源的管理和操作接口。API Server 是一個

    2024年02月07日
    瀏覽(50)
  • 【k8s】Error from server (ServiceUnavailable): the server is currently unable to handle the request

    【k8s】Error from server (ServiceUnavailable): the server is currently unable to handle the request

    安裝metrics-server后,pod啟動時成功的就是一直報這個錯。網(wǎng)上找了很多放法,不管用,可以試試。 ?解決方法:新增 hostNetwork: true 到metries-server.yaml: 參考地址:kubernetes - Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes.metrics.k8s.io) - Stack Overflow

    2024年02月11日
    瀏覽(27)
  • K8S哲學(xué) - cluster

    K8S哲學(xué) - cluster

    A Kubernetes cluster consists of two types of resources: The? Control Plane ?coordinates the cluster Nodes ?are the workers that run applications The Control Plane is responsible for managing the cluster. ?The Control Plane coordinates all activities in your cluster, such as scheduling applications, maintaining applications\\\' desired state, scaling applic

    2024年04月14日
    瀏覽(33)
  • K8S異常之Unable to connect to the server: x509: certificate has expired or is not yet valid

    K8S異常之Unable to connect to the server: x509: certificate has expired or is not yet valid

    2.1 處理步驟 2.2 處理步驟詳細(xì)情況 如上,發(fā)現(xiàn)很多證書都是 invalid 的狀態(tài),接著更新證書: 如下,更新證書后,證書過期時間已經(jīng)更新為 365d 3.1 再次查看kubectl get node,發(fā)現(xiàn)有新的錯誤: error: You must be logged in to the server (Unauthorized) 3.2 上述錯誤解決方案 備份配置文件 cp -rp

    2024年02月03日
    瀏覽(99)
  • K8S異常之Unable to update cni config err=no vaild network found in /etc/cni/net.d

    K8S異常之Unable to update cni config err=no vaild network found in /etc/cni/net.d

    我們在初始化k8s節(jié)點的時候,可能會遇到類似如下問題 Unable to update cni config err=no vaild network found in /etc/cni/net.d ,一般表示網(wǎng)絡(luò)不通。 網(wǎng)上很多方法經(jīng)過嘗試都不好使。最后出現(xiàn)了 /opt/cni/bin/flannel permission denied (無權(quán)限讀取flannel文件)的異常。 查看kubelet的狀態(tài) systemctl sta

    2024年02月17日
    瀏覽(22)
  • K8S 部署 Redis-Cluster 集群

    K8S 部署 Redis-Cluster 集群

    本文使用 bitnami 鏡像部署 redis-cluster 官方文檔:https://github.com/bitnami/charts/tree/main/bitnami/redis-cluster 添加 bitnami 倉庫 自定義 values.yaml storageClass:集群的存儲類,可以參考文章 k8s 安裝本地 storageClass 或者 K8S 集群使用 NFS 做 storageclass persistence.size:設(shè)置持久化存儲大小,注意 p

    2024年02月09日
    瀏覽(52)
  • 【實戰(zhàn)】K8S Helm部署Redis Cluster & Redisinsight

    【實戰(zhàn)】K8S Helm部署Redis Cluster & Redisinsight

    在Web服務(wù)的開發(fā)過程中,Redis一直以來都有著舉足輕重的作用。基本上所有的后端服務(wù)都會用這個中間件實現(xiàn)具體的業(yè)務(wù)場景,比如常作為系統(tǒng)緩存、分布式鎖,也可以實現(xiàn)排名、定位以及發(fā)布訂閱隊列等等。當(dāng)然,在k8s平臺我們也能夠部署Redis集群,今天就以Helm快速部署R

    2024年02月05日
    瀏覽(40)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包