0

我一直在关注这个文档https://cloud.google.com/service-mesh/docs/gke-install-multi-cluster,它非常简单整洁,我只需要配置集群之间的端点发现,通过运行 istioctl x create-remote-secret 命令,因为我的集群不是私有集群,我只创建了分别应用于 2 个集群的远程密钥,然后继续部署同一文档中提供的示例应用程序。

在最后一步验证跨集群负载平衡,我没有得到文档中显示的 2 个服务,我只得到集群中运行的服务的响应我一直在关注这个文档https://cloud.google .com/service-mesh/docs/gke-install-multi-cluster,它非常简单整洁,我只需要通过运行 istioctl x create-remote-secret 命令来配置集群之间的端点发现,作为我的集群不是私有集群,我只创建了分别应用于 2 个集群的远程密钥,然后继续部署同一文档中提供的示例应用程序。

在最后一步验证跨集群负载平衡,我没有得到文档中显示的 2 个服务,我只得到集群中运行的服务的响应

kubectl exec --context="${CTX_1}" -n sample -c sleep \
>     "$(kubectl get pod --context="${CTX_1}" -n sample -l \
>     app=sleep -o jsonpath='{.items[0].metadata.name}')" \
>     -- curl -sS helloworld.sample:5000/hello
Hello version: v1, instance: helloworld-v1-776f57d5f6-4jcrl

kubectl exec --context="${CTX_2}" -n sample -c sleep \
>     "$(kubectl get pod --context="${CTX_2}" -n sample -l \
>     app=sleep -o jsonpath='{.items[0].metadata.name}')" \
>     -- curl -sS helloworld.sample:5000/hello
Hello version: v2, instance: helloworld-v2-54df5f84b-bfwcn

我错过了什么?任何故障排除步骤?

我的 2 个集群是带有 Anthos 设置的基本 GKE 集群,如https://cloud.google.com/service-mesh/docs/scripted-install/gke-install使用 install_asm 脚本。

4

0 回答 0