How to install Linkerd service mesh on Nutanix Karbon Cluster

  • 24 January 2019
  • 0 replies
  • 446 views

This article will show you how to install well-known service mesh - Linkerd on your Nutanix Karbon cluster

What is Linkerd
#############
Linkerd is an open source network proxy designed to be deployed as a service mesh: a dedicated layer for managing, controlling, and monitoring service-to-service communication within an application

Pre-requisites
#############
  • A working Karbon Cluster with an internet connection. Tested with Kubernetes 1.10.3.
  • kubectl installed on your laptop with kubeconfig configured.
https://portal.nutanix.com/#/page/docs/details?targetId=Karbon-v08:Karbon-v08

How to install
#############
  • Download Linkerd cli on your desktop then update PATH variable
curl -sL https://run.linkerd.io/install | sh
export PATH=$PATH:$HOME/.linkerd2/bin

  • Check Linkerd version
linkerd version

  • Validate your Karbon cluster before installation
linkerd check --pre

  • Install Linkerd onto the cluster
linkerd install | kubectl apply -f -

"Please be patient until linkerd pod is up & running" 😃

  • You can check whether the installation is going well(optional)
linkerd check

  • Once the installation is finished, you can check what components are installed(optional)
kubectl -n linkerd get deploy

  • Now your Linkerd control plane installed and running, you can now view the Linkerd dashboard by running
linkerd dashboard

All done, Welcome to Kubernetes service mesh !!


[Optional]
  • Demo svc deployment
curl -sL https://run.linkerd.io/emojivoto.yml | kubectl apply -f -

  • Port-forwarding the app pod to see the status
kubectl -n emojivoto port-forward $(kubectl -n emojivoto get po -l app=web-svc -oname | cut -d/ -f 2) 8080:80

  • Let’s add Linkerd to emojivoto by running
kubectl get -n emojivoto deploy -o yaml | linkerd inject - | kubectl apply -f -

You’ve added Linkerd to existing services.
Now you should be able to see the registered service from Linkerd dashboard

Reference
#############
https://github.com/nogodan1234/Karbon
https://linkerd.io/2/getting-started/



This topic has been closed for comments