




略;curl -L https://git.io/getLatestIstio | ISTIO_VERSION=1.1.9 sh -cd istio-1.1.9export PATH=$PWD/bin:$PATHhelm repo add istio.io https://storage.googleapis.com/istio-release/releases/1.1.9/charts/kubectl create namespace istio-systemhelm template install/kubernetes/helm/istio-init --name istio-init --namespace istio-system | kubectl apply -f -helm template install/kubernetes/helm/istio --name istio --namespace istio-system | kubectl apply -f -kubectl get svc -n istio-system
kubectl get pods -n istio-system
kubectl apply -f <(istioctl kube-inject -f samples/bookinfo/platform/kube/bookinfo.yaml)kubectl get services
kubectl get pods
kubectl exec -it $(kubectl get pod -l app=ratings -o jsonpath='{.items[0].metadata.name}') -c ratings -- curl productpage:9080/productpage | grep -o "<title>.*</title>"kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yamlkubectl get gateway
kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}'kubectl get po -l istio=ingressgateway -n istio-system -o jsonpath='{.items[0].status.hostIP}'
kubectl apply -f samples/bookinfo/networking/destination-rule-all.yamlkubectl get destinationrules -o yaml 命令显示目标规则;kubectl apply -f samples/bookinfo/networking/virtual-service-all-v1.yamlkubectl get virtualservices -o yamlkubectl apply -f samples/bookinfo/networking/virtual-service-reviews-test-v2.yamlkubectl get virtualservices -o yaml