forked from Azure/kubernetes-hackfest
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated Linkerd Lab. * Added 2.11 * Added Debugging * Added Service Profiles * Updated docs to include policy * Update dashboard image. * Add resources.
- Loading branch information
1 parent
6734638
commit 9ad5a0a
Showing
4 changed files
with
181 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# Checkout the emojivoto deployments | ||
|
||
linkerd viz stat deployment -n emojivoto | ||
|
||
# Get stats for the web service | ||
|
||
linkerd viz top -n emojivoto deploy/web | ||
|
||
# Get stats for the voting service | ||
|
||
linkerd viz top -n emojivoto deploy/voting | ||
|
||
# Tap the traffic from web to voting | ||
|
||
linkerd viz tap deployment/web -n emojivoto --to deployment/voting --path / | less | ||
|
||
# Narrow down the tap results to our problematic api call | ||
|
||
linkerd viz tap deployment/web -n emojivoto --to deployment/voting --path /emojivoto.v1.VotingService/VoteDoughnut | less | ||
|
||
# Output the tap calls as json data so you can share it with the app developer | ||
|
||
linkerd viz tap deployment/web -n emojivoto --to deployment/voting --path /emojivoto.v1.VotingService/VoteDoughnut -o json | less |
Binary file modified
BIN
+218 KB
(420%)
labs/servicemesh/linkerd/linkerd-dashboard.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#! /bin/bash | ||
|
||
kubectl create ns booksapp | ||
|
||
curl -sL https://run.linkerd.io/booksapp.yml | kubectl -n booksapp apply -f - | ||
|
||
kubectl -n booksapp port-forward svc/webapp 7000 | ||
|
||
kubectl get deploy -n booksapp -o yaml | linkerd inject - | kubectl apply -f - | ||
|
||
curl -sL https://run.linkerd.io/booksapp/webapp.swagger | linkerd -n booksapp profile --open-api - webapp | ||
|
||
curl -sL https://run.linkerd.io/booksapp/webapp.swagger | linkerd -n booksapp profile --open-api - webapp | kubectl -n booksapp apply -f - | ||
|
||
curl -sL https://run.linkerd.io/booksapp/authors.swagger | linkerd -n booksapp profile --open-api - authors | kubectl -n booksapp apply -f - | ||
|
||
curl -sL https://run.linkerd.io/booksapp/books.swagger | linkerd -n booksapp profile --open-api - books | kubectl -n booksapp apply -f - | ||
|
||
linkerd viz -n booksapp routes svc/webapp | ||
|
||
linkerd viz -n booksapp routes deploy/webapp --to svc/books | ||
|
||
linkerd viz -n booksapp routes deploy/books --to svc/authors | ||
|
||
kubectl -n booksapp edit sp/authors.booksapp.svc.cluster.local | ||
|
||
linkerd viz -n booksapp routes deploy/books --to svc/authors -o wide | ||
|
||
linkerd viz -n booksapp routes deploy/webapp --to svc/books | ||
|
||
kubectl -n booksapp edit sp/books.booksapp.svc.cluster.local | ||
|
||
linkerd viz -n booksapp routes deploy/webapp --to svc/books -o wide |