I am trying to track all API requests to my kubernetes cluster running on some ec2 instances. How do I go about doing this?
I am basically trying to check which IP the request is sent from, any data sent and any other discerning information.
I tried using prometheus but have not had any luck so far.
You can enable Auditing on your cluster. For specific resource, use resourceNames
in the audit policy to specify the resource name.