k8s-dns-exposer

module
v0.0.0-...-6138ae3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0

README

K8s DNS Exposer

Build Status

k8s-dns-exposer is a Kubernetes controller that helps create, and keep up to date Endpoints objects for Services that point to external domain name.

Use cases

The initial use case we built this for is for enabling monitoring on every endpoint behind an external service (when you don't want the /metrics query to be load-balanced, because each replica behind the service returns different values)

Usage

Deploy the controller by running the following command from the root of this repository:

kubectl apply -f deploy/

Then, for any external service you want to expose inside your cluster, simply create a Kubernetes headless service with your service domain name as an externalName, and annotate it with datadoghq.com/k8s-dns-exposer: "true".

Config options

  • you can modify the refresh period at which the controller will resolve the service to find new endpoints (default: 5s) by adding a datadoghq.com/k8s-dns-exposer.refresh-seconds: "<refresh_period>" annotation to the service

Made with ❤ at Datadog

Directories

Path Synopsis
cmd
pkg
test
e2e

Jump to

Keyboard shortcuts

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