KOP Recipes - Use Linkerd - Rafay Product Documentation

Use Linkerd

What Will You Do

In this exercise,


Assumptions

For this example, we will use an emojivoto application available at linkerd.io


Step 1: Download emojivoto sample application

Download the sample application provided in linkerd.io website.

curl --proto '=https' --tlsv1.2 -sSfL https://run.linkerd.io/emojivoto.yml -o emojivoto.yml

Step 2: Create workload

Step 3: Verify deployment

You can optionally verify whether the correct resources have been created on the cluster.

kubectl get po -n emojivoto
NAME                        READY   STATUS    RESTARTS   AGE
emoji-56c95cbfd-ct6x7       2/2     Running   0          47m
vote-bot-84f555bcc9-nvsfh   2/2     Running   0          47m
voting-86c68ddd5-q7z9s      2/2     Running   0          47m
web-865b89955c-2vbfm        2/2     Running   0          47m
kubectl get pods --all-namespaces -o jsonpath='{range .items[*]}{"\n"}{.metadata.name}{":\t"}{range .spec.containers[*]}{.image}{", "}{end}{end}'

emoji-56c95cbfd-ct6x7:  cr.l5d.io/linkerd/proxy:stable-2.11.4, docker.l5d.io/buoyantio/emojivoto-emoji-svc:v11,
vote-bot-84f555bcc9-nvsfh:  cr.l5d.io/linkerd/proxy:stable-2.11.4, docker.l5d.io/buoyantio/emojivoto-web:v11,
voting-86c68ddd5-q7z9s: cr.l5d.io/linkerd/proxy:stable-2.11.4, docker.l5d.io/buoyantio/emojivoto-voting-svc:v11,
web-865b89955c-2vbfm:   cr.l5d.io/linkerd/proxy:stable-2.11.4, docker.l5d.io/buoyantio/emojivoto-web:v11, %

You can see that all the pods have a linkerd proxy attached. You can also check this from Rafay console -> cluster resources

Recap

Congratulations! You successfully deployed an application with Linkerd sidecar injection.