Skip to content

Instantly share code, notes, and snippets.

@negz
Created October 10, 2018 21:06
Show Gist options
  • Save negz/953e8eaff6fce13bc5d46e9cf82b3e2f to your computer and use it in GitHub Desktop.
Save negz/953e8eaff6fce13bc5d46e9cf82b3e2f to your computer and use it in GitHub Desktop.
More wonkyd
{
"/%/io.l5d.k8s.daemonset/kube-system/http-incoming/l5d/#/io.l5d.k8s.http/live/8080/tasking-api": {
"state": "bound",
"addresses": [
"REDACTED.0.52:4141",
"REDACTED.2.173:4141",
"REDACTED.0.232:4141"
]
}
}
{
"endpoints": {
"live/tasking-api": {
"state": {
"running": true,
"lastStartedAt": "2018-10-05 09:42:45 +0000",
"lastUpdatedAt": "2018-10-06 14:33:05 +0000",
"value": {
"nsName": "live",
"serviceName": "tasking-api",
"endpoints": [
{
"ip": "REDACTED.1.14",
"nodeName": "tfk-uc13-wrk-69xs-zh0p.c.REDACTED-prod.internal"
},
{
"ip": "REDACTED.122.152",
"nodeName": "tfk-uc13-wrk-6meb-fc8n.c.REDACTED-prod.internal"
},
{
"ip": "REDACTED.35.84",
"nodeName": "tfk-uc13-wrk-wt7n-wcqd.c.REDACTED-prod.internal"
}
],
"ports": {}
}
},
"watch": {
"request": "GET /api/v1/watch/namespaces/live/endpoints/tasking-api?resourceVersion=113658655",
"lastRequestAt": "2018-10-06 15:31:29 +0000",
"response": {
"subsets": [
{
"addresses": [
{
"ip": "REDACTED.1.14",
"nodeName": "tfk-uc13-wrk-69xs-zh0p.c.REDACTED-prod.internal",
"targetRef": {
"kind": "Pod",
"namespace": "live",
"name": "tasking-api-6bfbf9b65d-srkf8",
"uid": "2538808c-c826-11e8-93e0-42010ab00159",
"resourceVersion": "112706812"
}
},
{
"ip": "REDACTED.122.152",
"nodeName": "tfk-uc13-wrk-6meb-fc8n.c.REDACTED-prod.internal",
"targetRef": {
"kind": "Pod",
"namespace": "live",
"name": "tasking-api-6bfbf9b65d-klqmk",
"uid": "25466027-c826-11e8-93e0-42010ab00159",
"resourceVersion": "112706203"
}
},
{
"ip": "REDACTED.92.22",
"nodeName": "tfk-uc13-wrk-wt7n-qbj0.c.REDACTED-prod.internal",
"targetRef": {
"kind": "Pod",
"namespace": "live",
"name": "tasking-api-6bfbf9b65d-tzk2z",
"uid": "3733f6f0-c826-11e8-93e0-42010ab00159",
"resourceVersion": "112707520"
}
}
],
"ports": [
{
"port": 8080,
"protocol": "TCP"
}
]
}
],
"kind": "Endpoints",
"metadata": {
"name": "tasking-api",
"namespace": "live",
"selfLink": "/api/v1/namespaces/live/endpoints/tasking-api",
"uid": "89540f85-43ff-11e8-9f2e-42010ab0018e",
"resourceVersion": "112707521",
"creationTimestamp": "2018-04-19T18:29:03Z",
"labels": {
"component": "api",
"service": "tasking-api",
"team": "honeybadgers"
}
},
"apiVersion": "v1"
},
"lastResponseAt": "2018-10-05 09:42:45 +0000",
"lastStreamStartAt": "2018-10-06 14:33:05 +0000",
"lastStreamData": {
"type": "ADDED",
"object": {
"subsets": [
{
"addresses": [
{
"ip": "REDACTED.1.14",
"nodeName": "tfk-uc13-wrk-69xs-zh0p.c.REDACTED-prod.internal",
"targetRef": {
"kind": "Pod",
"namespace": "live",
"name": "tasking-api-6bfbf9b65d-srkf8",
"uid": "2538808c-c826-11e8-93e0-42010ab00159",
"resourceVersion": "112706812"
}
},
{
"ip": "REDACTED.122.152",
"nodeName": "tfk-uc13-wrk-6meb-fc8n.c.REDACTED-prod.internal",
"targetRef": {
"kind": "Pod",
"namespace": "live",
"name": "tasking-api-6bfbf9b65d-klqmk",
"uid": "25466027-c826-11e8-93e0-42010ab00159",
"resourceVersion": "112706203"
}
},
{
"ip": "REDACTED.35.84",
"nodeName": "tfk-uc13-wrk-wt7n-wcqd.c.REDACTED-prod.internal",
"targetRef": {
"kind": "Pod",
"namespace": "live",
"name": "tasking-api-6bfbf9b65d-27hdw",
"uid": "09779fe8-c8b1-11e8-93e0-42010ab00159",
"resourceVersion": "113658654"
}
}
],
"ports": [
{
"port": 8080,
"protocol": "TCP"
}
]
}
],
"kind": "Endpoints",
"metadata": {
"name": "tasking-api",
"namespace": "live",
"selfLink": "/api/v1/namespaces/live/endpoints/tasking-api",
"uid": "89540f85-43ff-11e8-9f2e-42010ab0018e",
"resourceVersion": "113658655",
"creationTimestamp": "2018-04-19T18:29:03Z",
"labels": {
"component": "api",
"service": "tasking-api",
"team": "honeybadgers"
}
},
"apiVersion": "v1"
}
},
"lastStreamDataAt": "2018-10-06 14:33:05 +0000",
"lastStreamEndAt": "2018-10-06 14:33:05 +0000",
"streaming": true
}
}
},
"portMappings": {
"live/tasking-api": {
"state": {
"running": true,
"lastStartedAt": "2018-10-05 09:42:45 +0000",
"lastUpdatedAt": "2018-10-10 20:06:05 +0000",
"value": {
"8080": "8080"
}
},
"watch": {
"request": "GET /api/v1/watch/namespaces/live/services/tasking-api",
"lastRequestAt": "2018-10-10 20:06:05 +0000",
"response": {
"status": {
"loadBalancer": {}
},
"spec": {
"ports": [
{
"port": 8080,
"targetPort": "8080"
}
]
},
"kind": "Service",
"metadata": {
"name": "tasking-api",
"namespace": "live",
"selfLink": "/api/v1/namespaces/live/services/tasking-api",
"uid": "8951b7ba-43ff-11e8-b691-42010ab0018f",
"resourceVersion": "75850090",
"creationTimestamp": "2018-04-19T18:29:03Z",
"labels": {
"component": "api",
"service": "tasking-api",
"team": "honeybadgers"
},
"annotations": {
"kubernetes.io/change-cause": "kubectl apply --record=true --filename=-",
"autoingresser.REDACTED/hostname-aliases": "tasking-api.prod.REDACTED"
}
},
"apiVersion": "v1"
},
"lastResponseAt": "2018-10-05 09:42:45 +0000",
"lastStreamStartAt": "2018-10-10 20:06:05 +0000",
"lastStreamData": {
"type": "ADDED",
"object": {
"status": {
"loadBalancer": {}
},
"spec": {
"ports": [
{
"port": 8080,
"targetPort": "8080"
}
]
},
"kind": "Service",
"metadata": {
"name": "tasking-api",
"namespace": "live",
"selfLink": "/api/v1/namespaces/live/services/tasking-api",
"uid": "8951b7ba-43ff-11e8-b691-42010ab0018f",
"resourceVersion": "75850090",
"creationTimestamp": "2018-04-19T18:29:03Z",
"labels": {
"component": "api",
"service": "tasking-api",
"team": "honeybadgers"
},
"annotations": {
"kubernetes.io/change-cause": "kubectl apply --record=true --filename=-",
"autoingresser.REDACTED/hostname-aliases": "tasking-api.prod.REDACTED"
}
},
"apiVersion": "v1"
}
},
"lastStreamDataAt": "2018-10-10 20:06:05 +0000",
"lastStreamEndAt": "2018-10-10 20:06:05 +0000",
"streaming": true
}
}
}
}
@negz
Copy link
Author

negz commented Oct 10, 2018

Here's the mapping of http-incoming ip:port to node name:

REDACTED.0.52:4141 - tfk-uc13-wrk-69xs-zh0p
REDACTED.2.173:4141 - tfk-uc13-wrk-6meb-fc8n
REDACTED.0.232:4141 - tfk-uc13-wrk-wt7n-wcqd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment