Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

  1. Tools & Resources
  2. Deploying boookinfo application
    1. Routing all traffic to a single version
    2. Canary deployment
    3. Weight-based

Tools & Resources

  1. Stackpoint.io
  2. Istio 1.0 on a K8s cluster, install via Stackpoint.io web app.
  3. latest version of kubectl , installation instructions
  4. newcluster.sh to quickly enable kubeconfig

Steps

  1. Download and enable kubeconfig file, automatically generated by Stackpoint.io.
  2. sh newcluster.sh
  3. kubectl get nodes
  4. Deploy bookinfo ( view .yaml )
    kubectl apply -f istio-1.0.0/samples/bookinfo/platform/kube/bookinfo.yaml
  5. Define ingress gateway ( view .yaml )
    kubectl apply -f istio-1.0.0/samples/bookinfo/networking/bookinfo-gateway.yaml
  6. kubectl get pods
  7. Let's generate some traffic,
    curl -o /dev/null -s -w "%{http_code}\n" "http://$IP_ADDRESS/productpage?[1-50]"

Route all traffic to reviews-v1

  1. 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
  2. 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 reviews-v3

  1. Route all traffic to v3 ( view .yaml )
    kubectl apply -f istio-1.0.0/samples/bookinfo/networking/virtual-service-reviews-v3.yaml

Canary Deployment

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

Weighted across all 3 versions

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.

Screenshot, Grafana - reviews.default.svc.cluster.local

Grafana

Additional References

About

from NYCK8s Jul 2018 talk.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages