watt

package
v1.8.0-rc.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

README

Watt - Watch All The Things

TODO: add more stuff here... I pruned this of stuff that was obviously stale, but now it is kinda sparse...

Watt watches resources in kubernetes and/or consul and invokes hooks when these resources change.

Run Watt

  • Add the appropriate -s switches for initial sources.
  • Set --notify to whatever makes you happy.

bin_linux_amd64/watt -s service -s configmap -s secrets --notify printf

Register and Deregister Services from Consul

Make sure you're using the right KUBECONFIG if you switch terminals

NOTE: Change -id as needed

Register

kubectl exec $(kubectl get pods --selector=app=consul --output=jsonpath='{.items[0].metadata.name}') -- consul services register -name=foobar -address=10.10.0.1 -port=9000 -id fb0

Deregister

kubectl exec $(kubectl get pods --selector=app=consul --output=jsonpath='{.items[0].metadata.name}') -- consul services deregister -id fb0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "(unknown version)"

Version holds the version of the code. This is intended to be overridden at build time.

Functions

func Main added in v1.3.0

func Main()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL