Skip to content
New issue

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

global.outboundTrafficPolicy.mode 设置为 REGISTRY_ONLY 时,block_all路由和to_global_sidecar路由冲突 #362

Open
hexiaodai opened this issue May 15, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@hexiaodai
Copy link

Bug description

Affected sub-moudle (please put an X in all that apply)

[X ] Configuration Lazy Loading
[ ] Http Plugin Management
[ ] Adaptive Ratelimit
[ ] Slime Boot

Steps to reproduce the bug

  1. istioctl install --set meshConfig.outboundTrafficPolicy.mode=REGISTRY_ONLY
  2. kubectl logs sleep-xxx -c istio-proxy
    rejected: Only a single wildcard domain is permitted in route 9080

block_all 路由和 to_global_sidecar 路由冲突

        "virtualHosts": [
            {
                "name": "block_all",
                "domains": [
                    "*"
                ],
                "routes": [
                    {
                        "name": "block_all",
                        "match": {
                            "prefix": "/"
                        },
                        "directResponse": {
                            "status": 502
                        }
                    }
                ],
                "includeRequestAttemptCount": true
            },
        ...
    ]
@hexiaodai hexiaodai added the bug Something isn't working label May 15, 2023
@hexiaodai
Copy link
Author

@YonkaFang
Copy link
Contributor

这个是已知场景,只是没想到就遇到了。

这么说需要把outboundTrafficPolicy传递给slime,从而决定该行为: 是替换allow_any还是block_all。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants