Open In App

What Is Linkerd ?

Last Updated : 16 Feb, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Linkerd is a service mesh platform that uses a Buoyant network micro-proxy. It supports platforms like Docker and Kubernetes and was created for environments that use containers. It’s an open-source platform. Microservices application management and operation issues may be resolved with Linkerd. Per-host and sidecar deployments are the two most popular Linkerd deployment types. When using per-host deployment, each application service instance’s host traffic is routed through the Linkerd instance, which is connected to a real or virtual host.

What is Linkerd?

For Kubernetes, Linkerd is a service mesh. Without needing any modifications to your code, it provides you with runtime debugging, observability, dependability, and security, making operating services safer and easier. The two fundamental parts of Linkerd are the data plane and the control plane. After installing Linkerd’s control plane on your Kubernetes cluster, just “meshing” or “injecting” the data plane into your workloads, and you’re done! The wonder of service mesh.

Features of Linkerd

  • CNI Plugin: Linkerd can choose not to utilize an init-container in favor of a CNI plugin to avoid using NET_ADMIN capabilities.
  • Automatic Proxy Injection: Your pod-based annotations will have the data plane proxy automatically injected by Linkerd.
  • Dynamic Request Routing: Linkerd can route specific HTTP requests according to their attributes.
  • Distributed Tracing: Linkerd has the option to enable distributed tracing capability.

The working procedure of Linkerd

  • Linkerd runs as a standalone proxy. It does not rely on specific languages or libraries, and it can be used in containers or microservices.
  • Per host and sidecar deployments are the two most popular Linkerd deployment types.
  • When using per-host deployment, each application service instance’s host traffic is routed through the Linkerd instance, which is connected to a real or virtual host.

Communication of Linkerd

  • Linker-to-linker: The linker-to-linker configuration serves incoming traffic with the Linkerd instance, which subsequently directs traffic to the relevant service instance.
  • Service-to-linker: Traffic is routed via each service instance’s matching Linkerd instance, which manages additional traffic rules.
  • Linker-to-service: Rather than service instances accepting traffic directly, linked sidecars take and route traffic to the correct service instance.

Benefits of Linkerd

  • Enables managers of applications to handle issues with mechanics and communication without having to alter the program itself.
  • Separates communication from the core application code, giving more control and visibility.
  • Facilitates the documentation of an application’s interconnected components.
  • Streamlines service-to-service communication in containers and microservices alike.

How to install Linkerd

Step 1: Install the CLI

In case this is your initial attempt at using Linkerd, you must save the Linkerd CLI to your local computer.

curl https://run.linkerd.io/install I sh

OUTPUT

linkerd3

linkerd3

Step 2: Validate your Kubernetes cluster

Kubernetes clusters can be configured in many different ways. Before we can install the Linkerd control plane, we need to check and validate that everything is configured correctly. To check that your cluster is ready to install Linkerd, run:

linkerd check --pre

OUTPUT

linkerd2-(1)

Step 3: Install Linkerd onto your cluster

It’s time to install Linkerd on your Kubernetes cluster now that you have a cluster up and running and the CLI operating locally. Run in order to do this:

linkerd install  | kubectl apply -f -

OUTPUT

linkerd4-(1)

Step 4: Install the demo app

Let’s install Emojivoto, a sample application. Emojivoto is a straightforward stand-alone Kubernetes application that lets users vote for their preferred emojis via a combination of gRPC and HTTP calls.Utilising the emojivoto namespace, install Emojivoto by running:

curl https://run.linkerd.io/emojivoto.yml I kubectl apply -f -

OUTPUT

linkerd1-(1)

Step 5: Explore Linkerd

Installing the viz extension will deploy a dashboard and metric stack on the cluster.To add the viz extension, execute:

linkerd viz install | kubectl apply -f -

OUTPUT

download-(1)

Conclusion

So this is Linkerd .For Kubernetes, Linkerd is a service mesh. Without needing any modifications to your code, it provides you with runtime debugging, observability, dependability, and security, making operating services safer and easier.The two fundamental parts of Linkerd are the data plane and the control plane.

Linkerd – FAQ’s

What is the purpose of Linkerd?

Without the complexity of other methods, Linkerd’s unique architecture offers basic visibility, dependability, and security capabilities.

Does Linkerd use sidecars?

The lightweight micro-proxies that make up the Linkerd data plane are placed within application pods as sidecar containers.

What are the cons of Linkerd?

Linkerd cons are merely supported by one business and has little updates,supports only Kubernetes.,lacking some network routing functions, such as rate limitation and circuit breaking.

What are the features of Linkerd?

All TCP traffic, including HTTP tunnelling, WebSockets, and TLS-enabled connections, may be proxied using Linkerd.



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments