Skip to content

bagasdisini/go-k8s-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Config Generator for Go Project

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

Prerequisites

  • Make sure to initialize git in your project directory.
  • Make sure to have a .env file in your project directory.

Usage

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:

  1. Clone this repository.
git clone https://github.com/bagasdisini/go-k8s-gen
cd go-k8s-gen
  1. Optional: Modify the config in the internal/gear as needed.
  2. Build the app.
go build 
  1. Copy the binary to your Go project directory.
  2. Run the binary.
./go-k8s-gen
  1. The generated files will be in the k8s directory.

About

Kubernetes Config Generator for Go Project

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages