https://github.com/davidzisky/kubegen
kubegen is a simple Kubernetes manifests generator
https://github.com/davidzisky/kubegen
kubernetes manifest yaml
Last synced: 3 months ago
JSON representation
kubegen is a simple Kubernetes manifests generator
- Host: GitHub
- URL: https://github.com/davidzisky/kubegen
- Owner: DavidZisky
- Created: 2020-01-09T13:04:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-28T15:04:59.000Z (over 3 years ago)
- Last Synced: 2024-06-21T08:50:47.123Z (about 2 years ago)
- Topics: kubernetes, manifest, yaml
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kubegen
kubegen is a simple command line Kubernetes manifest generator. Instead of copy&pasting from the documentation, or trying to write the manifest from scratch are time consuming and error-prone. It's point is to provide a simple fast generator as a starting point mainly for quick POCs.
## Installation
Run `go install github.com/DavidZisky/kubegen@latest`
## Usage
```sh
kubegen - a simple Kubernetes manifests generator
Usage:
kubegen [flags]
kubegen [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
deployment Generate a deployment manifesto
help Help about any command
ingress Generate a ingress manifest
service Generate a service manifest
version Print the version number of kubegen
Flags:
-h, --help help for kubegen
--log-level string Output level of logs (TRACE, DEBUG, INFO, WARN, ERROR, FATAL) (default "INFO")
Use "kubegen [command] --help" for more information about a command.
```
Most flags can be used across commands. For instance to generate a stack of manifests for an app called "echo", one could run:
```sh
kubegen deployment --name echo --port 80
kubegen service --name echo --port 80
kubegen ingress --name echo --port 80
```