A demo of using Tilt to run an application with Linkerd on your local machine
-
Setup local Kubernetes cluster
Recommend using Orbstack (macOS only) for local Kubernetes
Other options:
- Docker Desktop (macOS / Windows)
- Rancher Desktop (macOS / Windows)
Once Kubernetes is running, verify it's working and you can connect to it with
kubectl
kubectl get nodes
-
Install Tilt
brew install tilt-dev/tap/tilt
Full instructions are available here
-
Setup
/etc/hosts
(optional, choose one of the following)(option A) Add the following to
/etc/hosts
:127.0.0.1 linkerd.localhost 127.0.0.1 foo.localhost
(option B) use
hostctl
brew install guumaster/tap/hostctl sudo hostctl add tilt-linkerd-demo < .etchosts
-
Install Linkerd cli (optional)
curl --proto '=https' --tlsv1.2 -sSfL https://run.linkerd.io/install-edge | sh export PATH="$PATH:/Users/username/.linkerd/bin"
Full instructions are available here
tilt up