Skip to content
/ goflux Public

A golang CLI to generate files consumed by kubernetes

License

Notifications You must be signed in to change notification settings

Nerzal/goflux

Repository files navigation

goflux

codebeat badge Go Report Card Go Doc Build Status GitHub release codecov FOSSA Status

Note

Nothing is final right now and the API as well as the models might change until V1.0 release

The created kubernetes files are currently narrowed down to my personal use case. I'm very open for Change requests to make this cli useful for a broader audience.

Installation

Until we implemented AutoReleases for all platforms using github actions, you'll need to have go installed.

go get -u -v github.com/Nerzal/goflux/cmd/goflux
# cd into the project folder and do
make

Usage Example

NAME:
   goflux - Used to automatically generate kubernetes files

USAGE:
   goflux [global options] command [command options] [arguments...]

COMMANDS:
   init, i        Initialize new project
   namespace, n   Create a namespace file
   service, s     Create a service file
   configmap, c   Create a configmap file
   deployment, d  Create a deployment file
   kustomize, k   Create a kustomization file
   hpa, h         Create a hpa file
   ingress, ig    Create a ingress file
   backend, b     Create files for a backend service
   help, h        Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help (default: false)

To initialize a new project do

goflux init --component myService

This will generate a basic folder structure.

To create all files needed for a backend deployment do

goflux backend --component myService --namespace myNamespace

The following commands work without goflux init

Create a Service File

goflux service --component myService --namespace myNamespace

Create a Namespace File

goflux namespace --namespace myNamespace

Create a Deployment File

goflux deployment --component myService --namespace myNamespace --image-secret myImagePullSecret

About

A golang CLI to generate files consumed by kubernetes

Resources

License

Stars

Watchers

Forks

Packages

No packages published