Using the command-line interface (CLI)

The command-line interface of Linkerd's control plane is a Linkerd tool that helps users accomplish various tasks when it comes to installing Linkerd's control plane. 

The following steps are at a conceptual level and point out the operational simplicity of Linkerd. Don't try out these commands yet. In the next chapter, we will walk through Linkerd's installation in more detail:

  1. Check if Linkerd's prerequisites have been met or not. This checker will validate your current virtual machine and provide an output of all the passed or failed checks. Then, deploy the service mesh:
$ linkerd check --pre

$ linkerd install | kubectl apply -f -
  1. Launch the Linkerd dashboard locally through your client machine:
$ linkerd dashboard

Alternatively, you can also apply Ingress rules to your Linkerd dashboard to access it remotely. We will explain this capability in the following chapters.

  1. Enable injecting a sidecar proxy automatically through a webhook admission controller. This process can also be done for existing applications by routing YAML files to the linkerd inject command:
$ kubectl get deploy -o yaml | linkerd inject - | kubectl apply -f -
  1. Carry out real-time live traffic analysis through a Kubernetes deployment known as the web:
$ linkerd tap deploy/web
  1. Carry out command-line monitoring of the Linkerd service mesh by using the top command. The following example shows how to monitor a Kubernetes deployment known as the web:
$ linkerd top deploy/web
  1. Finally (this is optional), users can upgrade the existing Linkerd control plane by using the upgrade command. This will generate the YAML configuration files that can be routed to Kubernetes:
$ linkerd upgrade | kubectl apply -f -

As you can see, it is rather easy to install Linkerd and its control plane components. These steps have provided you with a high-level overview of the following:

  • Pre-checking the environment for Linkerd's installation
  • Installing Linkerd
  • Accessing the dashboard
  • Visibility into live traffic metrics
  • Easily upgrading the control plane

Next, let's dive into Linkerd's data plane capabilities.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.19.29.89