Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Last active March 14, 2020 15:59
Istio 1.5

Install kubectl

curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/

Install Minikube

wget https://github.com/kubernetes/minikube/releases/download/v1.8.2/minikube-linux-amd64
chmod + xminikube-linux-amd64
sudo mv ./minikube-linux-amd64 /usr/local/bin/minikube

start minikube

minikube start --memory=16000 --cpus=6 -p istio15

install istioctl

wget https://github.com/istio/istio/releases/download/1.5.0/istioctl-1.5.0-linux.tar.gz
tar xfv istioctl-1.5.0-linux.tar.gz
chmod +x istioctl
sudo mv ./istioctl /usr/local/bin/

install istio

istioctl manifest apply --set profile=demo
kubectl label namespace default istio-injection=enabled

Deploy sample app

wget https://github.com/istio/istio/archive/1.5.0.tar.gz/
tar xfv istio-1.5.0.tar.gz
cd istio-1.5.0/
kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
kubectl exec -it $(kubectl get pod -l app=ratings -o jsonpath='{.items[0].metadata.name}') -c ratings -- curl productpage:9080/productpage | grep -o "<title>.*</title>"

export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}')
export SECURE_INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="https")].nodePort}')
export INGRESS_HOST=$(minikube ip -p istio15)
export GATEWAY_URL=$INGRESS_HOST:$INGRESS_PORT
minikube tunnel -p istio15
xdg-open http://$GATEWAY_URL/productpage
istioctl dashboard kiali

Check the dashboards

istioctl dashboard kiali
istioctl dashboard prometheus
istioctl dashboard jaeger
istioctl dashboard grafana
istioctl dashboard envoy productpage-v1-85b9bf9cd7-tcl69
istioctl dashboard controlz istiod-86798869b8-wv4hj -n istio-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment