uw-service-about-aggregator

command module
v0.0.0-...-78a09ba Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2017 License: MIT Imports: 19 Imported by: 0

README

About Aggregator

CircleCI Go Report Card

Does service discovery via kubernetes api and calls /__/about for each service that exposes the endpoint. Service are filtered based on labels(about=true).
For each service this information is pushed to several exporters:

  • HTTP exporter - exposes list of services which expose /__/about
  • Confluence exporter - pushes the list of services which expose /__/about to confluence

Developing

Install dependencies

$ make install

Run linting

$ make lint

Build

$ make build

Run tests

$ make test

Running

export PORT="8080"
export LABEL="about=true"
export KUBERNETES_SERVICE_HOST="192.168.99.100"
export KUBERNETES_SERVICE_PORT="8443"
export KUBERNETES_TOKEN_PATH="/var/run/secrets/kubernetes.io/serviceaccount/token"
export KUBERNETES_CERT_PATH="/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
export CONFLUENCE_HOST="https://confluence.example.com"
export CONFLUENCE_CREDENTIALS="base 64 encoded <user:pass>" #Get the credentials from lastpass: Shared-Kubernetes/confluence/uw-service-about-aggregator 
export CONFLUENCE_PAGE_ID="page id to update"

$GOPATH/bin/uw-service-about-aggregator

Endpoints

Application specific endpoints:

  • GET /__/about - list of services which expose /__/about
  • POST /reload

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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