This is the source directory for "Seeing the Invisble: Observability with Linkerd" presented on 18 August 2022. In here you will find:
steps.sh, the demo-magic script driving most of the presentationcreate-cluster.sh, a shell script to create ak3dcluster and prep it with Linkerd, the books and emojivoto demo apps, and Emissary-ingress for the ingress- All of these things are installed mostly straight from the quickstart,
except that we use
sedto force everything to just one replica when installing Emissary. DON'T do that in production.
- All of these things are installed mostly straight from the quickstart,
except that we use
To actually run the workshop:
-
Make sure the
emoji.example.com,books.example.com, andviz.example.comall point to 127.0.0.1 (for example, by editing/etc/hosts). -
Make sure
$KUBECONFIGis set correctly. -
If you need to, run
bash create-cluster.shto create a newk3dcluster to use.- Note:
create-cluster.shwill delete any existingk3dcluster named "observability"
- Note:
-
Finally, run
bash steps.shto actually run the workshop demo! or just read it, and run what it does by hand.
When doing the demo live, especially as a livestream, it's nice to have the
demo automagically switch the screen you're sharing to the one that's relevant
at given points of the demo. However, if you're not doing this, it's a pain to
be constantly calling things that don't exist. Enter the HOOK setup.
At various points, the demo script will do e.g. show_browser, which turns
into a call to run_hook BROWSER. That will look for the DEMO_HOOK_BROWSER
environment variable: if it's defined, run_hook will execute the command in
hook_browser. If it's not defined, it gets silently skipped.
The end result: if you want to do fancy things, just set the requisite
DEMO_HOOK_* variables to the commands to do fancy things. If you don't set
the DEMO_HOOK_* variables, these steps will be silently skipped.