Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wingkwong/k8sgen
Generating Kubernetes Resource Configurations in an Interactive CLI
https://github.com/wingkwong/k8sgen
cli generator interactive-cli k8s kubernetes
Last synced: 2 months ago
JSON representation
Generating Kubernetes Resource Configurations in an Interactive CLI
- Host: GitHub
- URL: https://github.com/wingkwong/k8sgen
- Owner: wingkwong
- License: mit
- Created: 2020-02-29T04:36:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T11:50:32.000Z (about 1 year ago)
- Last Synced: 2024-06-21T15:44:24.250Z (7 months ago)
- Topics: cli, generator, interactive-cli, k8s, kubernetes
- Language: Go
- Homepage:
- Size: 122 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# k8sgen
k8sgen is an utility which is designed to guide users to build their Kubernetes resources in an interactive CLI.
[![Build Status](https://travis-ci.com/wingkwong/k8sgen.svg?branch=master)](https://travis-ci.com/wingkwong/k8sgen) ![Stability:Experimental](https://img.shields.io/badge/stability-experimental-orange) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Go Report Card](https://goreportcard.com/badge/github.com/wingkwong/k8sgen)](https://goreportcard.com/report/github.com/wingkwong/k8sgen)
## Usage
``k8sgen jumpstart`` - jumpstart a resource file
This command utilises ``kubectl`` to create a jumpstart version of a resource file.
```bash
k8sgen jumpstart_ ___
| | _( _ ) ___ __ _ ___ _ __
| |/ / _ \/ __|/ _ |/ _ | |_ \
| | (_) \__ | (_| | __| | | |
|_|\_\___/|___/\__, |\___|_| |_|
|___/? What kind of object you want to create? [Use arrows to move, type to filter]
ClusterRole
ClusterRoleBinding
Configmap
> Deployment
Job
Namespace
PodDisruptionBudget
PriorityClass
Quota
Role
RoleBinding
Secret
Service
ServiceAccount? What deployment you want to name? my-deployment
? What image you want to name to run? busybox
? Please select an output format yaml
json
> yaml? What directory you want to save? /home/wingkwong/deployment.yaml
```Result:
```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: my-deployment
name: my-deployment
spec:
replicas: 1
selector:
matchLabels:
app: my-deployment
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: my-deployment
spec:
containers:
- image: busybox
name: busybox
resources: {}
status: {}
```## Contributing
The k8sgen project adheres to the [CNCF Code of
Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).We welcome community contributions and pull requests.
## License
MIT