Comments (10)
ok, will change to english next week
from apisix-ingress-controller.
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.
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.
建议增加 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.
建议增加 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.
希望支持grpc
from apisix-ingress-controller.
@gxthrj we need a English version
from apisix-ingress-controller.
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.
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.
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)
- feat: as a user, I want all event to be processed when apisix-ingress-controller recovered
- Ability to set Plugin Priorities
- bug: failed to decrypt previous encrypted key, status code 400
- bug: Exception restart
- request help: Could not add plugins to APISIX HOT 2
- request help: how to translate the nginx weight-based annotation to apisix ingress controller HOT 1
- bug: ApisixUpstream not created for a kubernetes service using discovery type kubernetes HOT 6
- docs: is IngressClassName supported in ApisixRoute custom resource?
- upstream not found warning in logs HOT 4
- Addressing 'Upstream Not Found' Warning in APISIX
- 配置k8s apisix ingress grpc的协议不生效,请帮助我 HOT 11
- bug: ApisixIngress synced failed: failed to get upstream aries-dev_aries-authorization-service: not found
- feat: Add support for multiple plugins with a single ApisixConsumer
- feat: As a user, I want to add support for consumer description HOT 1
- help request: Using ApisixPluginConfig resource throws error HOT 2
- bug: [memory leak] Every time apisix is restarted, the apisix-ingress-controller memory will grow HOT 4
- The apisix ingress controller doesn't start as expected behind the VPN proxy
- bug: Missing "client/skip_mtls_uri_regex" in CRD ApisixTls in the schema (version 2)
- request help: user ingressClass, modify the ingressClassof the route, and the old route does not become invalid. HOT 1
- request help: How do I use radixtree_uri_with_parameter router? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apisix-ingress-controller.