в нем?
нужно редиректить www.somesite.ru/flow/ на www.somesite.ru/?parm1=1¶m2=2¶m3=3
делаю так:
metadata:
name: "site-ingress"
namespace: site
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP":80,"HTTPS": 443}]'
alb.ingress.kubernetes.io/certificate-arn: somearn
alb.ingress.kubernetes.io/actions.somesite-flow-redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Host": "www.somesite.ru", "Path": "/#{path}", "Query": "param1=1¶m2=2¶m3=3", "Port": "443", "StatusCode": "HTTP_301"}}'
- host: "somesite.ru"
http:
paths:
- path: /flow/*
backend:
serviceName: somesite-flow-redirect
servicePort: use-annotation
- host: "www.somesite.ru"
http:
paths:
- path: /flow/*
backend:
serviceName: somesite-flow-redirect
servicePort: use-annotation
и не редиректит блин никак
Обсуждают сегодня