问题描述
我一直在关注这个文档 https://cloud.google.com/service-mesh/docs/gke-install-multi-cluster ,它非常简单和整洁,我只需要在集群之间配置端点发现,通过运行 istioctl x create-remote-secret 命令,因为我的集群是不是私有集群,我只创建了分别应用于 2 个集群的远程密钥,然后继续部署同一文档中提供的示例应用。
在最后一步验证跨集群负载平衡中,我没有得到文档中显示的 2 个服务,我只得到集群中运行的服务的响应我一直在关注这个文档 {{3} ,这非常简单和整洁,我只需要在集群之间配置端点发现,通过运行 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 个集群是使用 install_asm 脚本在 https://cloud.google.com/service-mesh/docs/gke-install-multi-cluster 中设置 anthos 的基本 GKE 集群。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)