Skip to content

luismoramedina/linkerd-microservices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Linkerd microservices

How to deploy

Note
you need to make login in google cloud before running these scripts.

Mode per-host

gcloud container clusters create linkerd-cluster --num-nodes 1 --machine-type n1-standard-2
kubectl config set-context $(kubectl config current-context) --namespace=default
kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user $(gcloud config get-value account)

kubectl apply -f k8s/linkerd-rbac.yml
kubectl apply -f k8s/proxy-per-node/linkerd.yml
kubectl apply -f k8s/proxy-per-node/msa-linkerd.yml
kubectl apply -f k8s/zipkin.yml

sleep 30s
L5D_IP=$(kubectl get svc l5d -o jsonpath="{.status.loadBalancer.ingress[0].*}")
echo http://$L5D_IP:9990
xdg-open http://$L5D_IP:9990 # on ubuntu
http_proxy=$L5D_IP:4141 curl -i http://books/books
...
# stop or delete cluster
gcloud container clusters resize l-cluster --size=0
gcloud container clusters delete linkerd-cluster

Mode sidecar

gcloud container clusters create linkerd-sidecar-cluster --num-nodes 1 --machine-type n1-standard-2
kubectl config set-context $(kubectl config current-context) --namespace=default
kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user $(gcloud config get-value account)

kubectl apply -f k8s/linkerd-rbac.yml
kubectl apply -f k8s/sidecar/sidecar-msa-linkerd.yml

sleep 30s
BOOKS_IP=$(kubectl get svc books -o jsonpath="{.status.loadBalancer.ingress[0].*}")
echo http://$BOOKS_IP:9990
xdg-open http://$BOOKS_IP:9990 # on ubuntu
http_proxy=$BOOKS_IP:4141 curl -i http://books/books
...
# stop or delete cluster
gcloud container clusters resize l-cluster --size=0
gcloud container clusters delete linkerd-sidecar-cluster

About

linkerd-microservices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published