Istio Configuration & Deploying a Example Springboot Application
#Curl to Download the Latest Istio curl -L https://git.io/getLatestIstio | sh -
#Set the istioctl PATH export PATH="$PATH:/home/k8suser/istio-1.0.5/bin"
vi install/kubernetes/helm/istio/values.yaml
helm template install/kubernetes/helm/istio --name istio --namespace istio-system > $HOME/istio.yaml
kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml
kubectl create namespace istio-system
#Apply the Helm Template kubectl apply -f $HOME/istio.yaml
#Check your Istio-System Pods & Services to Verify All Istio Enabled Services kubectl get svc -n istio-system watch -n 1 kubectl get pods -n istio-system
kubectl edit svc kiali -n istio-system
kubectl edit svc servicegraph -n istio-system
kubectl edit svc jaeger-query -n istio-system
#Check your Istio-System Pods & Services to Verify All Istio Enabled Services kubectl get svc -n istio-system
############ Istio Install Complete ##############
########### Install SpringBoot Application using Istio ##################
kubectl apply -f <(istioctl kube-inject springboot-example/call-deployment.yaml)
#Check the Services & Pods are Running watch -n 1 kubectl get pods kubectl get svc
kubectl get svc -n istio-system
kubectl edit svc istio-ingressgateway -n istio-system
port: 8090 targetPort: 8090 name: http-caller
port: 8091 targetPort: 8091 name: http-callme
:/caller/ping
Istio does not allow traffic until you Create an Application Gateway That Opens Traffic to Your Application
To Route Traffic from the IngressGateway to your Application (Through your Application Gateway) - Use "VirtualService" that define the Path (/caller/ping)
kubectl apply -f springboot-example/call-app-gateway.yaml
kubectl apply -f springboot-example/call-destination-rules-all.yaml
:/caller/ping
############ Application Deploy Complete ##############
######## Check the Traffic on Sidecar-Proxy ###########
kubectl get pods
kubectl logs pod caller-service-54cf7b65b4-2ck7d istio-proxy
kubectl logs pod caller-service-54cf7b65b4-2ck7d caller-service