Skip to content

es1o/debug_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

debug_server

Build Status

This is a repository with simple web server that exposes some debug information from kubernetes environment.

Endpoints

All outputs as json.

GET /env

Prints all environemnt variables.

GET /healthz

Returns health status.

Sample k8s yaml file

kubectl apply -f sample.yaml - creates deployment with debug_server

ENV variables

  • SERVER_PORT => port that server listens on
  • ROOT_URL => due to limitation of EKS ALB ingress all traffic is redirected to ingress_path/ instead of /. This env variable determines additional paths for endpoint, eg. if ROOT_URL = esio, endpoints /env and /esio/env will work.
  • SRV_NAME => service name, visible under /namez endpoint

About

Simple web server for debugging k8s services

Resources

Stars

Watchers

Forks

Packages