Intelligent Routing with Istio on Alibaba Cloud Container Service for Kubernetes

Request Routing

Set the Default Version of All Microservices to v1

istioctl create -f samples/bookinfo/routing/route-rule-all-v1.yaml
istioctl get virtualservices -o yaml

Route Requests from a Specific User to Reviews v2

kubectl replace -f samples/bookinfo/routing/route-rule-reviews-test-v2.yaml
kubectl  get virtualservice reviews -o yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
clusterName: ""
creationTimestamp: 2018-06-04T10:49:53Z
generation: 0
name: reviews
namespace: default
resourceVersion: "2596548"
selfLink: /apis/networking.istio.io/v1alpha3/namespaces/default/virtualservices/reviews
uid: 03528fd9-67e5-11e8-af82-00163e0c19c2
spec:
hosts:
- reviews
http:
- match:
- headers:
cookie:
regex: ^(.*?;)?(user=jason)(;.*)?$
route:
- destination:
host: reviews
subset: v2
- route:
- destination:
host: reviews
subset: v1

Fault Injection

HTTP Delay

kubectl replace -f samples/bookinfo/routing/route-rule-ratings-test-delay.yaml

HTTP Abort

kubectl replace -f samples/bookinfo/routing/route-rule-ratings-test-abort.yaml

Traffic Shifting

kubectl replace -f samples/bookinfo/routing/route-rule-all-v1.yaml
kubectl replace -f samples/bookinfo/routing/route-rule-reviews-50-v3.yaml

Summary

  1. Using Istio on Alibaba Cloud Container Service for Kubernetes
  2. Go through Istio Features with Samples on Alibaba Cloud Container Service for Kubernetes
  3. Intelligent Routing with Istio on Alibaba Cloud Container Service for Kubernetes
  4. Distributed Tracking with Istio on Alibaba Cloud Container Service for Kubernetes
  5. Telemetry Data Collection, Query, and Visualization with Istio on Alibaba Cloud Container Service for Kubernetes
  6. Fault Diagnosis and Detection using Istio within Alibaba Cloud Container Service for Kubernetes
  7. Observability Analysis using Istio and Kiali within Alibaba Cloud Container Service for Kubernetes

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Bricks070 pbr texture

Understand and implement Inheritance, one of the principles of object-oriented programming, in Java

Webscraper Overview (Goodreads Part II)

REpresentational State Transfer (RESTful) Web Services

Key Management Services Android Demo using Alibaba Cloud KMS Service

top tricks how to delete facebook page on android?

delete facebook page

Apache Performance Tuning on Linux

Installing RKE Cluster on Enterprise Linux

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

Deploying a helm-chart into the cluster using Skaffold

Monitor Uptime of Endpoints in K8s using Blackbox Exporter

GKE Ingress redirect http to https

Container Orchestration Open-Source Platform - Kubernetes