Using a Service Mesh in Kubernetes

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

Service meshes can automate the process of providing additional security, reliability, and functionality around your containers. In this lab, you will be able to see how a service mesh works up close by exploring how the service mesh interacts with a simple application.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Explore the Linkerd Dashboard

Open the Linkerd dashboard in a browser.

Access the dashboard at http://<k8s Server Public IP>:30080.

Feel free to explore! See if you can locate any information relating to the Terrapin application’s components. (Hint: The application lives in the default Namespace.)

Mesh the Application with Linkerd

The application’s components are located in the default Namespace. You can mesh the application with Linkerd like so:

kubectl get -n default deploy -o yaml | 
  linkerd inject - | 
  kubectl apply -f -

Once the application is meshed, watch the dashboard to see additional data about the application become available.

Explore the Changes to Application Components Made by Linkerd

Use kubectl to locate the application’s Pods in the default Namespace. Use kubectl describe pod <Pod name> to view more detailed information about one of the Pods. See if you can spot information about the Linkerd sidecar container when examining the Pod!

Additional Resources

Welcome to TortoiseCorp! We work to build the future of fruit, lettuce, and heat lamps.

We have recently set up the Linkerd service mesh in our cluster, and we want to use it to monitor traffic in our latest project, which is codenamed terrapin. You will need to mesh the application with Linkerd and explore how Linkerd interacts with the application.

Note: This is mainly an exploration-focused lab, allowing you to get hands-on with a service mesh in Kubernetes. You will not need to install or configure the service mesh yourself.

Both Linkerd and the application are already running in the cluster, but the application's Pods are not yet part of the service mesh. All of the terrapin application components can be found in the default namespace.

You can access the Linkerd dashboard in a browser using the Public IP address of the k8s Server and port 30080. Use a URL like http://<k8s Server Public IP>:30080, adding in the actual public IP address of the k8s Server.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?