kind create cluster --config ./kind-config.yaml
(Optional) Label 2 worker node:
kubectl label node istio-testing-worker node-role.kubernetes.io/worker=worker1
kubectl label node istio-testing-worker2 node-role.kubernetes.io/worker=worker2
istioctl install --set profile=demo -y
kubectl label namespace default istio-injection=enabled
kubectl apply -f prometheus.yaml
kubectl apply -f kiali.yaml
kubectl apply -f kiali-ingress.yaml
kubectl apply -f jaeger.yaml
kubectl apply -l version!=v2,version!=v3 -f booking.yaml
Install productpage gateway:
kubectl apply -f booking-gateway.yaml
Install Sleep (used to call other service):
kubectl apply -f sleep.yaml
kubectl apply -f destination.yaml
kubectl apply -f traffic-control-v1.yaml
Apply request routing to v2 (with jason username):
kubectl apply -f traffic-control-v2.yaml
kubectl exec $(kubectl get pod -l app=sleep -o jsonpath='{.items[0].metadata.name}') -- curl -sS http://reviews:9080/reviews/7
kubectl exec $(kubectl get pod -l app=sleep -o jsonpath='{.items[0].metadata.name}') -c sleep -- curl -sS productpage:9080/productpage | grep -o "<title>.*</title>"