Go 🌸
Go projects and compiled languages can run seamlessly on Garden, with fast image rebuilds as you type, cached tests and more deployed to any number of local and remote Kubernetes environments 🍃.
This seed deploys a simple Go API using Helm and Garden to template our application and seamlessly deploy it to a local Kubernetes cluster ✅.
In 5 minutes ⌛ you will deploy your own Go code into a Kubernetes cluster with a rebuild-free container using Garden's code synchronization.
Diagram 🖼️
This demo scaffolds a Helm chart we'll deploy to our Kubernetes cluster.
Prerequisites
TLDR
Get your seed running in less than five minutes by running the following commands:
garden deploy --sync
will take you to a REPL (Read, Eval, Print, Loop) interactive terminal where you can also run different commands like test unit
which will run the unit test
built for this HTTP API.
If you want to get your test results with greater detail, use get test-results unit.
Conclusion 🔚
Congratulations 🎉 you have reached the end of this Garden seed.
Because this project has Code Synchronization already configured, you can simply modify your main.go
and observe changes live on the synced code path.
Next Steps ⏭️
Continue your Garden Journey. If you wish to learn more about Garden, here are a couple of resources you might find interesting:
Contribute ➕
Last updated