Giter Club home page Giter Club logo

Comments (6)

liya2017 avatar liya2017 commented on July 21, 2024

Did you deploy the ingress-controller?
doc: https://kubernetes.io/zh/docs/concepts/services-networking/ingress/

from axon-devops.

zzhengzhuo avatar zzhengzhuo commented on July 21, 2024

Maybe I should learn more about k8s.
However, IMHO, the doc may need a guide that starting from zero.
Appreciate for your time, I will close this issue.

from axon-devops.

liya2017 avatar liya2017 commented on July 21, 2024

Maybe I should learn more about k8s. However, IMHO, the doc may need a guide that starting from zero. Appreciate for your time, I will close this issue.

Yes, will update the doc later

from axon-devops.

e00dan avatar e00dan commented on July 21, 2024

Can we reopen the issue?

I get the same problem and looks like this repository is using a deprecated version of Kubernetes extensions. Check: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#ingress-v122

I think k8s-deploy/k8s/ingress/axon-ingress.yaml should be using apiVersion: networking.k8s.io/v1 instead of apiVersion: extensions/v1beta1 (deprecated).

cc @liya2017 @zzhengzhuo

from axon-devops.

liya2017 avatar liya2017 commented on July 21, 2024

I think k8s-deploy/k8s/ingress/axon-ingress.yaml should be using apiVersion: networking.k8s.io/v1 instead of apiVersion: extensions/v1beta1 (deprecated).

Thanks, will have a try later.

And do you mean get the error error: resource mapping not found for name: "axon-ingress" namespace: "axon" from "./k8s/ingress/axon-ingress.yaml": no matches for kind "Ingress" in version "extensions/v1beta1" ensure CRDs are installed first? If yes ,please follow #66 (comment).

from axon-devops.

e00dan avatar e00dan commented on July 21, 2024

I think k8s-deploy/k8s/ingress/axon-ingress.yaml should be using apiVersion: networking.k8s.io/v1 instead of apiVersion: extensions/v1beta1 (deprecated).

Thanks, will have a try later.

And do you mean get the error error: resource mapping not found for name: "axon-ingress" namespace: "axon" from "./k8s/ingress/axon-ingress.yaml": no matches for kind "Ingress" in version "extensions/v1beta1" ensure CRDs are installed first? If yes ,please follow #66 (comment).

Yes. My version of k8:

➜  k8s-deploy git:(35406eb) ✗ kubectl version --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.25.0
Kustomize Version: v4.5.7
Server Version: v1.25.0

I tried running nginx ingress by using helm command and without and it didn't help:

helm upgrade --install ingress-nginx ingress-nginx   --repo https://kubernetes.github.io/ingress-nginx   --namespace nginx-ingress --create-namespace

It seems that after updating the file is started working:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  namespace: axon
  annotations:
    kubernetes.io/ingress.class: "nginx"
  name: axon-ingress
spec:
  rules:
  - host: axon1-testnet-monitor.nervos.tech
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: axon1
            port:
              number: 8100

  - host: axon2-testnet-monitor.nervos.tech
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: axon2
            port:
              number: 8100

  - host: axon3-testnet-monitor.nervos.tech
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: axon3
            port:
              number: 8100

  - host: axon4-testnet-monitor.nervos.tech
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: axon4
            port:
              number: 8100

from axon-devops.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.