- Tools & Resources
- Deploying boookinfo application
- Stackpoint.io
- Istio 1.0 on a K8s cluster, install via Stackpoint.io web app.
- latest version of
kubectl, installation instructions - newcluster.sh to quickly enable kubeconfig
- Download and enable kubeconfig file, automatically generated by Stackpoint.io.
sh newcluster.shkubectl get nodes- Deploy bookinfo ( view .yaml )
kubectl apply -f istio-1.0.0/samples/bookinfo/platform/kube/bookinfo.yaml - Define ingress gateway ( view .yaml )
kubectl apply -f istio-1.0.0/samples/bookinfo/networking/bookinfo-gateway.yaml kubectl get pods- Let's generate some traffic,
curl -o /dev/null -s -w "%{http_code}\n" "http://$IP_ADDRESS/productpage?[1-50]"
- First, let's enable version routing for mTLS. Mutual TLS is enabled automatically on Istio deployments on Stackpoint.io,
kubectl apply -f istio-1.0.0/samples/bookinfo/networking/destination-rule-all-mtls.yaml - Route all traffic to v1 of microservice ( view .yaml )
kubectl apply -f istio-1.0.0/samples/bookinfo/networking/virtual-service-all-v1.yaml
- Route all traffic to v3 ( view .yaml )
kubectl apply -f istio-1.0.0/samples/bookinfo/networking/virtual-service-reviews-v3.yaml
Normally, we could follow the instructions here, or write our own .yaml. We'll use the Stackpoint.io UI.
make sure to remove the reviews virtual-service from when we routed all traffic to reviews-v1
Use the sliders to set weights of 70, 20, and 10 across reviews versions.
Go ahead and try it. And remember to remove the previous virtual-service.
- bookinfo, https://istio.io/docs/guides/bookinfo/