{"repo":"kylemcc/kube-gen","free":true,"listed":false,"github":"https://github.com/kylemcc/kube-gen","clone":"git clone https://github.com/kylemcc/kube-gen.git","description":"Generate files from Kubernetes events","language":"Go","stars":65,"topics":["kubernetes","kubernetes-events","golang","automation","templates"],"license":"BSD-3-Clause","category":"deployment-docker-iac","readme_excerpt":"kube-gen kube-gen is a template rendering tool that generates files and executes commands based on Kubernetes events and metadata. Installation Binary Download See the Releases page Docker Container kube-gen can be run as a standalone container, or bundled in a container with other applications. Images are available on Dockerhub: Or Github Package Registry: Usage When run with no arguments (or with -h/-help ), kube-gen prints the following usage message. Authentication / Connecting to the Kubernetes API By default, kube-gen will look for a kubeconfig file at $HOME/.kube/config . A different kubeconfig file may be specified by using the -kubeconfig flag. Alternatively, kube-gen provides a -host flag that, if set, will supersede the -kubeconfig . The -host flag is best paired with kubectl proxy , which listens on 127.0.0.1:8001 by default. The -host flag may also be set to the value of kube-apiserver 's --insecure-bind-address / --insecure-port . Watching for changes The -watch flag configures kube-gen to watch the API for changes to Services , Pods , and Endpoints (support for other types is forthcoming). This mode is useul when combined with the -pre-cmd , -post-cmd , and -wait parameters. Template Language kube-gen supports templates written in Go s text/template language. It supports all of the built in functions, as well as numerous custom functions described below. Many of the custom functions (and the documentation for those functions) have been borrowed from docker-gen.","default_branch":null,"files":null,"tree":[],"storefront":"/r/kylemcc","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kylemcc/kube-gen/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}