Skip to content

williamchanrico/debugapp

Repository files navigation

Debug App

🏡
Know more about what's happening and less wtf!
A simple setup for debugging purposes.

Introduction

docker pull williamchanrico/debugapp:latest

Simple docker image and k8s template for debugging purposes (debugapp also hosts simple HTTP & HTTPS servers)

$ curl http://debugapp.testing.svc.cluster.local/

{
  "host": "debugapp.testing.svc.cluster.local",
  "method": "GET",
  "uri": "/",
  "httpVersion": "1.1",
  "time": "2019-04-17T16:34:51.717436119Z",
  "remoteAddr": "10.13.70.96:45794",
  "tls": false,
  "header": {
    "Accept": [
      "*/*"
    ],
    "Content-Length": [
      "0"
    ],
    "User-Agent": [
      "curl/7.64.0"
    ],
    "X-B3-Sampled": [
      "0"
    ],
    "X-B3-Spanid": [
      "96313377c4dc532f"
    ],
    "X-B3-Traceid": [
      "96313377c4dc532f"
    ],
    "X-Envoy-Decorator-Operation": [
      "debugapp.testing.svc.cluster.local:80/*"
    ],
    "X-Forwarded-Proto": [
      "http"
    ],
    "X-Istio-Attributes": [
      "Cj4KF2Rlc3Rp===TRUNCATED==="
    ],
    "X-Request-Id": [
      "47920061-f78e-45a2-a111-ad50445992a8"
    ]
  },
  "message": "Hello, you've reached DebugApp!"
}

K8s and Istio Support

You can deploy a single pod using kubectl apply -f k8s/debugapp.yaml

Check the content of k8s/debugapp.yaml for more options (full set of testing namespace, deployment, svc)

Also included istio objects to setup a working istio ingress connection right into debugapp's HTTP port (check in k8s/istio/)

About

Simple docker image and k8s template for debugging purposes (also hosts a simple HTTP server on port 80)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published