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: add support for installing apisix ingress composite mode via helm chart HOT 10
- request help: Not able to hit kubernetes local service using ApisixRoute and ApisixUpstream HOT 2
- feat: Add a "namespace" parameter to the "plugin_config" of apisixRoute, to share the same apisixPluginConfig between all namespaces of apisixRoutes HOT 2
- bug: APISIX ingress controller helm chart attempts to create resources that do not support lower than 1.19
- request help: Need help in installing Apisix 3.1 with yaml files in kubernetes cluster HOT 3
- feat: Is it possible to make the ingress controller work without allowing read access to all secrets in the cluster? HOT 3
- request help: How to start multiple unrelated ingress-apisix-composite-deployment to load traffic from different sources HOT 9
- bug: create ApisixRoute failed by k8s dynamic client-go HOT 3
- bug: CVE-2023-48795 Vulnerability
- request help: Chinese document plan
- bug: library etcd-adapter fixed a concurrent issue, need upgrade dependency mod version
- bug: support skip_mtls_uri_regex for CRD kind: ApisixTls HOT 1
- help request: Apisix 3.8.0 version - ingress controller deployment issue
- request help: large file upload not work HOT 1
- dependencies: update etcd-adapter version to latest
- bug: plugin config "concurrent map writes"
- feat: As a user, I want to configure ApisixRoute with the multi-auth plugin, so that my service can support multiple authentication methods per route
- feat: As a user, I want to configure External services using Kubernetes Ingress without CRD's HOT 2
- help request: Not able to use custom plugin with composite architecture approach HOT 6
- feat: can apisix-ingress-controller use plugin without apisix HOT 1
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.