This is a simple tool to generate Kubernetes configuration files for a Go project. It generates the following files:
- deployment.yaml
- service.yaml
- secret.yaml
- build.sh
- deploy.sh
- Make sure to initialize git in your project directory.
- Make sure to have a
.env
file in your project directory.
If you're using windows, you can download the binary from the release page. Or if you want to build it yourself, follow these steps:
- Clone this repository.
git clone https://github.com/bagasdisini/go-k8s-gen
cd go-k8s-gen
- Optional: Modify the config in the
internal/gear
as needed. - Build the app.
go build
- Copy the binary to your Go project directory.
- Run the binary.
./go-k8s-gen
- The generated files will be in the
k8s
directory.