我在OpenShift集群中使用Istio试用代理。
我有一个错误((INVALID_ARGUMENT:static_resources.clusters [0] .hosts [0]:无效的名称网址:找不到字段。...
配置:
static_resources:
listeners:
- name: listener_0
address:
socket_address: { address: 0.0.0.0, port_value: 8080 }
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
stat_prefix: egress_http
use_remote_address: true
codec_type: AUTO
route_config:
name: local_route
virtual_hosts:
- name: local-services
domains: ["*"]
routes:
- match: { prefix: "/service-a" }
route: { cluster: service-a }
http_filters:
- name: envoy.router
clusters:
- name: service-a
connect_timeout: 0.25s
# dns_lookup_family: V4_ONLY
lb_policy: round_robin
type: strict_dns
hosts:
- url : tcp://service-a.apps-stage.vm.mos.cloud.sbrf.ru:80
答案 0 :(得分:0)
根据我对Envoy的了解,错误“找不到字段”表示您在数据结构中请求了字段名称(在这种情况下为url
),但是Envoy不支持该字段名称在那个数据结构中。
在您的示例中,“主机”块如下所示:
hosts:
- socket_address:
address: "service-a.apps-stage.vm.mos.cloud.sbrf.ru"
port_value: 80