All Projects â†’ kylemcc â†’ Kube Gen

kylemcc / Kube Gen

Licence: bsd-3-clause
Generate files from Kubernetes events

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Kube Gen

Smarthome
@skalavala 👍 Nothing But Smarthome Stuff! - By Mahasri Kalavala
Stars: ✭ 437 (+640.68%)
Mutual labels:  automation, templates
Botsharp
The Open Source AI Chatbot Platform Builder in 100% C# Running in .NET Core with Machine Learning algorithm.
Stars: ✭ 1,103 (+1769.49%)
Mutual labels:  automation
Bpmn Elements
Executable workflow elements based on BPMN 2.0
Stars: ✭ 54 (-8.47%)
Mutual labels:  automation
Golang Chrome Automation
Automate Chrome tasks with Golang and ChromeDP
Stars: ✭ 58 (-1.69%)
Mutual labels:  automation
Zoom Automation
An Automation script to automatically join a scheduled zoom meeting at a specific time without manual labour. This one's for all the lazy people like me who don't like waking up too early for zoom classes by the college.
Stars: ✭ 55 (-6.78%)
Mutual labels:  automation
Ansible Role Gitea
Ansible role to deploy a Gitea instance
Stars: ✭ 58 (-1.69%)
Mutual labels:  automation
Bookmarklet Maker
Tool to create bookmarklet/ javascript apps to automate the web browser.
Stars: ✭ 52 (-11.86%)
Mutual labels:  automation
Apple Automation
iOS/macOS 自动化,效率玩法探索。
Stars: ✭ 60 (+1.69%)
Mutual labels:  automation
Webwhatsappbot
Core to automatize whatsapp - working 11/2018
Stars: ✭ 59 (+0%)
Mutual labels:  automation
Mini Climate Card
Minimalistic climate card for Home Assistant Lovelace UI
Stars: ✭ 58 (-1.69%)
Mutual labels:  automation
Sikulisharp
A fast and simple Sikuli wrapper for .Net
Stars: ✭ 57 (-3.39%)
Mutual labels:  automation
Applescripts
My collection of AppleScripts created/acquired over the years. This repo is designed to provide useful AppleScripts for others and as a general resource for AppleScript education.
Stars: ✭ 56 (-5.08%)
Mutual labels:  automation
It Toolbox
PowerShell module implementing useful functions helping Systems Administrators in daily automation tasks
Stars: ✭ 59 (+0%)
Mutual labels:  automation
Sshkey Audit
Automate SSH key management
Stars: ✭ 55 (-6.78%)
Mutual labels:  automation
Generate Template Files
A simple generator to create custom template files for any application
Stars: ✭ 60 (+1.69%)
Mutual labels:  templates
Pigar
☕️ A fantastic tool to generate requirements.txt for your Python project, and more than that. (IT IS NOT A PACKAGE MANAGEMENT TOOL)
Stars: ✭ 1,068 (+1710.17%)
Mutual labels:  automation
Wedding Website
Our Wedding Website 👫
Stars: ✭ 1,090 (+1747.46%)
Mutual labels:  templates
Android Templates And Utilities
Collection of source codes, utilities, templates and snippets for Android development.
Stars: ✭ 1,099 (+1762.71%)
Mutual labels:  templates
Templates Using Bootstrap4
🌆 Here I've aggregated some of the most commonly used web-page templates made using Bootstrap4 🛒
Stars: ✭ 60 (+1.69%)
Mutual labels:  templates
Forked Daapd Card
forked daapd card for Home Assistant Lovelace UI
Stars: ✭ 60 (+1.69%)
Mutual labels:  automation

kube-gen

latest 0.4.0 license Build Status

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:

$ docker run kylemcc/kube-gen ...

Or Github Package Registry:

$ docker run docker.pkg.github.com/kylemcc/kube-gen/kube-gen ...

Usage

When run with no arguments (or with -h/-help), kube-gen prints the following usage message.

$ kube-gen
Usage: kube-gen [options] <template> [<output>]

Render templates using Kubernetes metadata and events

Options:
  -host string
        If not set will use kubeconfig. If using proxy - set it to http://localhost:8001
  -interval int

  -kubeconfig string
        (optional) absolute path to the kubeconfig file (default "/Users/kyle/.kube/config")
  -log-cmd
        log the output of the pre/post commands (default true)
  -overwrite
        overwrite the output file if it exists (default true)
  -post-cmd string
        command to run after template generation in complete
  -pre-cmd string
        command to run before template generation
  -quiet
        when set to true, nothing is logged
  -type value
        types of resources to pull [pods, services, endpoints] - May be specified multiple times. If not specified, all types will be returned
  -version
        display version information
  -wait string
        <minimum>[:<maximum>] - the minimum and optional maximum time to wait after an event fires.E.g.: 500ms:5s
  -watch
        watch for new events

Arguments:
  template: path or URL of the template file to render, or - to read from STDIN
  output: (Optional) path to write the rendered content. If not specified,
          rendered content is printed to STDOUT. By default, this file will
          be overwritten if it exists. Use -overwrite=false to return an
          error instead

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. Those functions, along with the accompanying License and Copyright are located in the dockergen_template_functions.go source file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].