在入口控制器中使用 AWS ALB 部署超过 3 个应用程序时,我偶然发现了这个奇怪的限制。
最多 3 个应用程序,没有问题,当配置第 4 个入口时,它没有获得端点:
但是 LoadBalancer (ALB) 是按预期配置的:
我不知道有 3 个 Ingress 的限制吗?还是我在配置中的某个地方设置了这个限制?
“失败”入口的输出kubectl describe ingress
(注意丢失的地址 - 其他 3 个入口都有地址):
Name: some-ingress
Namespace: default
Address:
Default backend: default-http-backend:80 (<none>)
Rules:
Host Path Backends
---- ---- --------
*
/ ssl-redirect-default:use-annotation (<none>)
/* ssl-redirect:use-annotation (<none>)
/* some-service:80 (192.168.92.252:8080)
Annotations:
alb.ingress.kubernetes.io/actions.ssl-redirect: {"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}
alb.ingress.kubernetes.io/actions.ssl-redirect-default: {"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Path": "/someapp/#{path}", "Port": "443", "StatusCode": "HTTP_301"}}
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:eu-central-1:...
alb.ingress.kubernetes.io/listen-ports: [{"HTTP": 80}, {"HTTPS":443}]
alb.ingress.kubernetes.io/scheme: internet-facing
kubernetes.io/ingress.class: alb
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal CREATE 16m alb-ingress-controller LoadBalancer some-alb created, ARN: some-alb-arn:loadbalancer/app/some-alb/some-ids
Normal CREATE 16m (x2 over 16m) alb-ingress-controller rule 1 created with conditions [{ Field: "path-pattern", Values: ["/"] }]
Normal CREATE 16m (x2 over 16m) alb-ingress-controller rule 2 created with conditions [{ Field: "path-pattern", Values: ["/*"] }]
Normal CREATE 16m alb-ingress-controller rule 3 created with conditions [{ Field: "path-pattern", Values: ["/*"] }]