Example of developing go microservices locally using tilt inside a devcontainer and deployed into Kubernetes (k3d)
- Open this repo in locally in a vscode devcontainer or on Github Codespaces (not tested)
- Once the devcontainer is setup without errors, run
tilt up
in the terminal - In another terminal run
curl localhost:8080
and see the response "Hello World!" - Modify
main.go
to return a different message - Within a second or so run
curl localhost:8080
to see your updated message
- If you have issues with the k3d cluster, run
k3d cluster delete
followed byk3d cluster create --registry-create k3d-registry:127.0.0.1:5432
- If you have issues with tilt not reloading the code type
s
in the tilt console to see the log or open the tilt UI