Bookstore Demo
1. Install Istio (Demo Profile with Tracing)
ISTIOCTL=$PWD/bin/istioctl
$ISTIOCTL install \ --set profile=demo \ --set meshConfig.defaultConfig.tracing.zipkin.address=splunk-otel-collector.istio-system.svc.cluster.local:9411 \ -y
|
Enable automatic sidecar injection for the default
namespace:
kubectl label namespace default istio-injection=enabled
|
2. Deploy the Bookinfo Application
kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
|
3. Deploy the Istio Gateway
kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
|
4. Access the Application
Get the external address for the product page:
NODEPORT=$(kubectl get svc -n istio-system -o json \ | jq -r '.items[].spec.ports[]? | select(.port == 80 and .nodePort) | .nodePort')
NODELST=$(kubectl get nodes -o json \ | jq -r '.items[].status.addresses[] | select(.type=="InternalIP") | .address')
for ip in $NODELST; do echo "http://$ip:$NODEPORT/productpage" done
|