(01)Install Istio
Linux
1curl -L https://istio.io/downloadIstio | sh -2cd istio-*3export PATH=$PWD/bin:$PATH4istioctl install --set profile=demo -yService mesh for traffic, security, and observability
What is this?
Istio adds secure networking, traffic control, and monitoring between microservices.
Step 01
1curl -L https://istio.io/downloadIstio | sh -2cd istio-*3export PATH=$PWD/bin:$PATH4istioctl install --set profile=demo -yStep 02
1kubectl label namespace default istio-injection=enabled2kubectl get pods -n istio-systemStep 03
1istioctl verify-install2kubectl get svc -n istio-systemStep 04
1kubectl label namespace default istio-injection=enabled --overwrite2istioctl analyze3kubectl get pods -o jsonpath='{.items[*].spec.containers[*].name}'2 YAML templates for Istio. Copy and deploy after setup.
2 ready-to-copy templates. Expand one, copy the YAML, then run the deploy commands.
Ingress.yml
1apiVersion: networking.k8s.io/v12kind: Ingress3metadata:4 name: minimal-ingress5 annotations:6 nginx.ingress.kubernetes.io/rewrite-target: /7spec:8 rules:9 - http:10 paths:11 - path: /testpath12 pathType: Prefix13 backend:14 service:15 name: test16 port:17 number: 80Step 01
1kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.11.1/deploy/static/provider/cloud/deploy.yaml2kubectl wait --namespace ingress-nginx --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=120s1kubectl apply -f Ingress.yml2kubectl get ingress3kubectl describe ingress minimal-ingress