We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
基于请求Cookie的流量切分,可以指定具体匹配的cookie值,在cookie和cookie值完全匹配的情况下,请求将被转发到指定的upstream。
Cookie值允许最多设置20个(默认),只要其中1个相匹配,请求就会被转发到指定的upstream。
无损动态生效,无需tengine reload。
The text was updated successfully, but these errors were encountered:
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: nginx.ingress.kubernetes.io/canary: "true" nginx.ingress.kubernetes.io/canary-by-cookie: open2 nginx.ingress.kubernetes.io/canary-by-cookie-value: test1||test2 nginx.ingress.kubernetes.io/ssl-redirect: "true" creationTimestamp: "2023-10-31T06:21:12Z" generation: 1 name: tengine-ingress-hello-cookie-ing namespace: default resourceVersion: "28149907" uid: 7879b54e-f857-4f3e-bf4f-c549dc5e44bb spec: ingressClassName: opensource-ingress rules: - host: echo.w1.com http: paths: - backend: service: name: tengine-ingress-hello2-service port: number: 80 path: / pathType: Prefix tls: - hosts: - echo.w1.com secretName: https-server-1 status: loadBalancer: ingress: - {}
......................................................................
$ curl -i -k --cookie "open2=test1" https://echo.w1.com HTTP/2 200 server: Tengine/3.1.0 date: Wed, 01 Nov 2023 08:50:49 GMT content-type: text/html content-length: 140 last-modified: Tue, 31 Oct 2023 06:16:58 GMT strict-transport-security: max-age=0 ups-target-key: default-tengine-ingress-hello2-service-80 x-protocol: HTTP/2.0 alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 <html><head><title>HTTP Hello World</title></head><body><h1>Hello from tengine-ingress-hello2-deployment-6dd8b6f8d4-4hf77</h1></body></html>
Sorry, something went wrong.
lianglli
Successfully merging a pull request may close this issue.
基于请求Cookie的流量切分,可以指定具体匹配的cookie值,在cookie和cookie值完全匹配的情况下,请求将被转发到指定的upstream。
Cookie值允许最多设置20个(默认),只要其中1个相匹配,请求就会被转发到指定的upstream。
无损动态生效,无需tengine reload。
The text was updated successfully, but these errors were encountered: