虚机接入 9. 在虚拟机上启动Istio 使用 istioproxy 用户启动 istio 代理 sudo u istioproxy systemctl start istio 10. 验证虚拟机上 Istio 是否启动成功 1. 检查 /var/log/istio/istio.log 中的日志,应该能看到类似如下内容: 2. 创建命名空间,部署基于Pod的服务 kubectl create namespace sample kubectl label namespace sample istioinjectionenabled 3. 创建Helloworld服务 kubectl apply f samples/helloworld/helloworld.yaml 4. 从虚拟机像服务发送请求: plaintext [root@msegwvmcaf1otdh tantao] curl helloworld.sample.svc:5000/hello Hello version: v2, instance: helloworldv25df48bd4dcnclfx [root@msegwvmcaf1otdh tantao] curl helloworld.sample.svc:5000/hello Hello version: v2, instance: helloworldv25df48bd4dcnclfx [root@msegwvmcaf1otdh tantao] curl helloworld.sample.svc:5000/hello Hello version: v1, instance: helloworldv1bcd77f79xcs5n