Skip to content

Instantly share code, notes, and snippets.

Last active July 13, 2022 05:26
What would you like to do?
microk8s setup with istio
snap install microk8s --classic
sudo ufw default allow routed
sudo iptables -P FORWARD ACCEPT
microk8s.enable dns dashboard metrics-server
# grafana/dashboard
# http://IP:8080/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy/
# http://IP:8080/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/pod?namespace=default
microk8s.enable istio
snap alias microk8s.kubectl kubectl
kubectl label namespace default istio-injection=enabled
# say yes when tls question shows up
kubectl create -f
kubectl create -f
kubectl apply -f
# product page -http://IP:31380/productpage
kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?("http2")].nodePort}'
# istio metrics - http://IP:3000
kubectl -n istio-system port-forward --address $(kubectl -n istio-system get pod -l app=grafana -o jsonpath='{.items[0]}') 3000:3000
# istio tracing - http://IP:16686
kubectl -n istio-system port-forward --address $(kubectl -n istio-system get pod -l app=jaeger -o jsonpath='{.items[0]}') 16686:16686
# istio mesh - http://IP:8088/force/forcegraph.html
kubectl -n istio-system port-forward --address $(kubectl -n istio-system get pod -l app=servicegraph -o jsonpath='{.items[0]}') 8088:8088
## intelligent routing
# Notice that the reviews part of the page displays with no rating stars
# kubectl apply -f
# login as jason || login as caglar
# kubectl apply -f
# kubectl delete -f
snap unalias kubectl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment