Giter Site home page Giter Site logo

Comments (10)

gxthrj avatar gxthrj commented on May 18, 2024 4

ok, will change to english next week

from apisix-ingress-controller.

gxthrj avatar gxthrj commented on May 18, 2024 1

ApisixPlugins has been reomved , plugins are value objects in route and service.
You can define plugin in ApisixRoute and ApisixService directly.
We also provide some annotations.
e.g.

apiVersion: apisix.apache.org/v1
kind: ApisixRoute
metadata:
  annotations:
    k8s.apisix.apache.org/cors-allow-headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,openID,audiotoken
    k8s.apisix.apache.org/cors-allow-methods: HEAD,GET,POST,PUT,PATCH,DELETE
    k8s.apisix.apache.org/cors-allow-origin: '*'
    k8s.apisix.apache.org/enable-cors: "true"
    k8s.apisix.apache.org/ssl-redirect: "false"
    k8s.apisix.apache.org/whitelist-source-range: 1.2.3.4,2.2.0.0/16
  name: httpserver-route
  namespace: cloud
spec:
  rules:
  - host: test1.apisix.apache.org
    http:
      paths:
      - backend:
          serviceName: api6
          servicePort: 80
        path: /test*
        plugins:
        - config:
            key: apisix-chash-key
            uri_args:
            - pId
            - userId|device
          enable: false
          name: aispeech-chash
      - backend:
          serviceName: httpserver
          servicePort: 8080
        path: /hello*
        plugins:
        - config:
            key: apisix-chash-key
            uri_args:
            - productId2
            - productId|deviceName
          enable: true
          name: aispeech-chash

from apisix-ingress-controller.

tao12345666333 avatar tao12345666333 commented on May 18, 2024 1

This issue is too old, and its content has been implemented. I will close it.
If we need a new design, a new discussion will be initiated.

Thanks!

from apisix-ingress-controller.

binlaniua avatar binlaniua commented on May 18, 2024

建议增加 rewrite annotation

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /$2
  name: rewrite
  namespace: default
spec:
  rules:
  - host: rewrite.bar.com
    http:
      paths:
      - backend:
          serviceName: http-svc
          servicePort: 80
        path: /something(/|$)(.*)

from apisix-ingress-controller.

gxthrj avatar gxthrj commented on May 18, 2024

建议增加 rewrite annotation

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /$2
  name: rewrite
  namespace: default
spec:
  rules:
  - host: rewrite.bar.com
    http:
      paths:
      - backend:
          serviceName: http-svc
          servicePort: 80
        path: /something(/|$)(.*)

@binlaniua ok,get it
We'll think about how to do it. maybe need a plugin in apisix

from apisix-ingress-controller.

Icedroid avatar Icedroid commented on May 18, 2024

希望支持grpc

from apisix-ingress-controller.

membphis avatar membphis commented on May 18, 2024

@gxthrj we need a English version

from apisix-ingress-controller.

Colstuwjx avatar Colstuwjx commented on May 18, 2024

I have a question, why we create a new set of CRDs for implementing the ingress class, why not just use the official Ingress resource?

from apisix-ingress-controller.

tokers avatar tokers commented on May 18, 2024

I have a question, why we create a new set of CRDs for implementing the ingress class, why not just use the official Ingress resource?

The offical Ingress resource is not so semantic in many use cases.

from apisix-ingress-controller.

Colstuwjx avatar Colstuwjx commented on May 18, 2024

The offical Ingress resource is not so semantic in many use cases.

Totally understood.

BTW, I found we have one word in README mentioned about: Supports APISIX custom resources and Kubernetes native Ingress resources, do we have some best practises for switching from ingress-nginx to apisix?

from apisix-ingress-controller.

Related Issues (20)

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.