Skip to content

Small application that collect ingresses from a kubernetes cluster and publish to a kafka topic.

License

Notifications You must be signed in to change notification settings

navikt/ingress-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e6cda99 · Nov 15, 2024
Aug 17, 2023
Jun 26, 2024
Jun 15, 2021
Jun 15, 2021
Jun 14, 2021
Sep 22, 2020
Aug 17, 2023
May 19, 2020
Nov 15, 2024
Jun 11, 2020
Jun 15, 2021
Aug 17, 2023
May 29, 2020

Repository files navigation

ingress-collector

Small application that collect ingresses from a kubernetes cluster and push them to a REST endpoint on amplitude-proxy and amplitrude-proxy

Inspiration

https://github.com/navikt/naisflow-decorators

Contract

Post an array containing all entries at one endpoint: endpoint PUT /ingresses/{collector} this will reset all entries for this cluster(?). Typical at collector startup. After this changes can be pushed to the endpoint with PATCH /ingresses/{collector}

{
  "uid": "something-unique-that-identifies-this-entry",
  "ingresses": [
    "http://mydomain.com/a-contextpath",
    "http://another-domain-that-for-some-reason-resolves.com/a-contextpath"
  ],
  "collector": "preprod-collector",
  "props": {
    "team": "my-team",
    "cluster": "my-cluster",
    "env": "prod or what ever",
    "custom-random-thing-that-should-be-tracked": "42"
  }
}

Docker

docker-compose up -d --remove-orphans --build