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

ingress-http部署error: resource mapping not found for name...no matches for kind “Ingress“ in version

這篇具有很好參考價值的文章主要介紹了ingress-http部署error: resource mapping not found for name...no matches for kind “Ingress“ in version。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

根據(jù)一些參考文檔,學習部署 ingress-http服務,出現(xiàn)了一些error信息,網(wǎng)上難找直接的處理方式,最后才發(fā)現(xiàn)是資源清單使用問題,還是得看官方文檔說明。

創(chuàng)建ingress-http.yaml

使用的基本yaml配置如下——

# 文件名稱: ingress-http.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ingress-http
  namespace: dev
spec:
  rules:
  - host: nginx.itheima.com
    http:
      paths:
      - path: /
        backend:
          serviceName: nginx-service
          servicePort: 80
  - host: tomcat.itheima.com
    http:
      paths:
      - path: /
        backend:
          serviceName: tomcat-service
          servicePort: 8080

部署ingress服務

# 部署服務
kubectl create -f ingress-http.yaml

出現(xiàn)error信息

錯誤一:
error: resource mapping not found for name: "ingress-http" namespace: "dev" from "ingress-http.yaml": no matches for kind "Ingress" in version "extensions/v1beta1"
ensure CRDs are installed first

處理方式——

根據(jù)官方文檔:Ingress對象資源清單說明

apiVersion: networking.k8s.io/v1

重新部署,仍然出現(xiàn)error信息

錯誤二:
* spec.rules[0].http.paths[0].pathType: Required value: pathType must be specified

paths下必須有pathType,否則創(chuàng)建就會失敗,官方文檔中也有說明

PS:附上官方文檔的對應的截圖

ingress-http部署error: resource mapping not found for name...no matches for kind “Ingress“ in version,k8s,http,kind,網(wǎng)絡協(xié)議


ingress-http部署error: resource mapping not found for name...no matches for kind “Ingress“ in version,k8s,http,kind,網(wǎng)絡協(xié)議文章來源地址http://www.zghlxwxcb.cn/news/detail-737285.html

正確的yaml配置

apiVersion: networking.k8s.io/v1    # 注意最新的官方給定
kind: Ingress
metadata:
  name: ingress-http
  namespace: dev
spec:
  rules:
  - host: nginx.itheima.com
    http:
      paths:
      - path: /
        pathType: Prefix   #  required
        backend:
          serviceName: nginx-service
          servicePort: 80
  - host: tomcat.itheima.com
    http:
      paths:
      - path: /
        pathType: Prefix   #  required
        backend:
          serviceName: tomcat-service
          servicePort: 8080
# 最終部署情況查看——
$ kubectl get ing -n dev
NAME           CLASS    HOSTS                                  ADDRESS   PORTS   AGE
ingress-http   <none>   nginx.itheima.com,tomcat.itheima.com             80      12m

$ kubectl describe ing ingress-http -n dev
Name:             ingress-http
Labels:           <none>
Namespace:        dev
Address:
Ingress Class:    <none>
Default backend:  <default>
Rules:
  Host                Path  Backends
  ----                ----  --------
  nginx.itheima.com
                      /   nginx-service:80 (10.244.1.91:80,10.244.1.92:80,10.244.1.93:80)
  tomcat.itheima.com
                      /   tomcat-service:8080 (10.244.2.100:8080,10.244.2.101:8080,10.244.2.102:8080)
Annotations:          <none>
Events:               <none>

到了這里,關于ingress-http部署error: resource mapping not found for name...no matches for kind “Ingress“ in version的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!

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

領支付寶紅包贊助服務器費用

相關文章

  • Node.js Error: Protocol “https:“ not supported. Expected “http:“

    Node的http模塊:使用node創(chuàng)建htto服務器(重點) 1、web服務器:網(wǎng)站服務器,主要提供網(wǎng)上信息的瀏覽服務 2、web資源 (1)靜態(tài)資源:服務器沒有修改的,客戶端每次請求的結(jié)果都是一樣的資源。(CSS、image等) (2)動態(tài)資源:經(jīng)過服務器處理的資源信息 3、HTTP協(xié)議:HyperText T

    2024年02月15日
    瀏覽(32)
  • ? error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)

    使用Git的時候今天突然遇到了問題 今天突然使用Mac報錯: Git遇到一個問題,如標題 1.搜羅一大堆最終指向這是http2本身的bug。 1.(推薦)直接換掉Git的http版本 git config --global http.version HTTP/1.1 2.更改Git的http克隆為ssh,使用ssh進行提交和拉取代碼 — 使用ssh連接Git操作指南(…更新

    2024年02月04日
    瀏覽(22)
  • error during connect: This error may indicate that the docker daemon is not running.: Get “http://%2

    error during connect: This error may indicate that the docker daemon is not running.: Get “http://%2

    error during connect: This error may indicate that the docker daemon is not running.: Get \\\"http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/search?limit=25term=java\\\": open //./pipe/docker_engine: The system cannot find the file specified. Windows解決方法: 忘記開啟你的Docker Desktop了,開啟來后,重新走一遍命令即可。 ?

    2024年02月08日
    瀏覽(25)
  • 大坑!springcloud父子項目啟動連接nacos報http error, code=403,msg=user not found!

    大坑!springcloud父子項目啟動連接nacos報http error, code=403,msg=user not found!

    springcloud父子項目啟動連接nacos報http error, code=403,msg=user not found! 背景: 一個新模塊需要建一個后端服務,然后就把其他項目掏空+若依plus的結(jié)構,搭了一套springcloud父子項目,本地運行沒有問題,在上生產(chǎn)的時候,打出來的jar包啟動的時候一直報nacos 403. 我勒個去,改了很多次

    2024年02月03日
    瀏覽(17)
  • Proxy error: Could not proxy request /XXX localhost to http://localhost:8080/ (ECONNRE)報錯處理

    Proxy error: Could not proxy request /XXX localhost to http://localhost:8080/ (ECONNRE)報錯處理

    今天在進行前后端聯(lián)調(diào)時,聯(lián)調(diào)不通,前端出現(xiàn)如下報錯 通過在網(wǎng)上查找相關問題有很多種原因,因此博主根據(jù)資料進行相關解決方法的整理。 修改vue.config.js中的代理port 修改正確的地址或端口 博主是這個問題導致,一開始前端代理端口配置是8080,后端配置是8084,因此啟

    2024年02月11日
    瀏覽(25)
  • Proxy error: Could not proxy request xxx from localhost:8080 to http://localhost:3000(ECONNREFUSED)

    Proxy error: Could not proxy request xxx from localhost:8080 to http://localhost:3000(ECONNREFUSED)

    在 mock 數(shù)據(jù)的時候,配置 vue.config.js 里的 devServer 的 proxy 時報錯,錯誤如下 我的配置如下: 我們可以將 target 端口 3000 改成跟起的服務一樣 http://localhost:8080 ,都是 8080 端口即可。 ECONNREFUSED 的意思就是:ECONNREFUSED(連接被拒絕):無法建立連接,因為目標機器主動拒絕了它

    2024年02月16日
    瀏覽(27)
  • [Centos7 yum源報錯] repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found 解決方案

    [Centos7 yum源報錯] repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found 解決方案

    前言: 用公司的ECS? yum方式安裝JDK1.8,出現(xiàn)yum源找不到的問題,具體報錯如下: http://yum.tbsite.net/epel/7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found Trying other mirror. 一、直接替換成阿里云的yum源的方法( 對我無效 ) 替換Centos-Base.repo前可以備份一下 下載阿里云的yum源并

    2024年02月11日
    瀏覽(40)
  • Proxy error: Could not proxy request xxx from localhost:8080 to http://localhost:3000(ECONNREFUSED)關

    將代理規(guī)則從 /api 修改為 @(/api) 意味著使用前綴 @ 來標識代理規(guī)則。這種方式相對于直接使用路徑的方式,可以提高代理規(guī)則的可讀性和可維護性,并且它還支持更復雜的代理規(guī)則設置和管理,例如,可以設置多個代理規(guī)則,對不同的 API 接口進行不同的轉(zhuǎn)發(fā)設置。 下面是將

    2024年02月04日
    瀏覽(24)
  • 若依項目報Proxy error: Could not proxy request /captchaImage from localhost to http://localhost:8080/.的錯

    若依項目報Proxy error: Could not proxy request /captchaImage from localhost to http://localhost:8080/.的錯

    問題到現(xiàn)在也未解決,不過可以通過不同的方法訪問到 這里試了很多方法,修改端口號,修改服務端口,都不行 運行以后也是他自己跳轉(zhuǎn)到網(wǎng)頁,完成登錄就OK了

    2024年02月11日
    瀏覽(28)
  • GET http://localhost:8080/xx/xx 404 (Not Found) 和Uncaught (in promise) Error: failed報錯的原因

    GET http://localhost:8080/xx/xx 404 (Not Found) 和Uncaught (in promise) Error: failed報錯的原因

    這兩天,我遇見了一個很離譜的錯誤,我找不到原因發(fā)生在哪里,但是知道代理服務器出錯了,代理了后端給的接口,但是,卻向本地發(fā)起請求,快把我整崩潰了 GET http://localhost:8080/xx/xx 404 (Not Found) 和Uncaught (in promise) Error: failed 開啟代理后,發(fā)起請求,因為后端給的路徑?jīng)]有

    2024年02月07日
    瀏覽(25)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領取紅包

二維碼2

領紅包