-
Task
-
Resolution: Done
-
Major
-
None
-
None
In MAISTRA-2607 we added an option to log API requests that the operator performs. This helped us uncover an unexpectedly high number of API requests during the pruning process and the operator startup. We should add the same option to istiod and check if it performs any API requests that we're not aware of.
To enable API request logging, edit the istiod Deployment and make the following changes to container.args:
- change log level to --log_output_level=default:info
- add --logKubernetesApiRequests=true
In the istiod log, you'll see statements like:
2022-09-23T06:56:10.494347Z info Performing Kubernetes API request: GET https://172.30.0.1:443/api/v1/namespaces/istio-system/configmaps?fieldSelector=metadata.name%3Distio-minimal&limit=500&resourceVersion=0 2022-09-23T06:56:10.497382Z info Performing Kubernetes API request: GET https://172.30.0.1:443/api/v1/namespaces/istio-system/configmaps?allowWatchBookmarks=true&fieldSelector=metadata.name%3Distio-minimal&resourceVersion=37278&timeout=5m24s&timeoutSeconds=324&watch=true
- is related to
-
MAISTRA-2607 Add option to log API requests performed by the operator
- Closed
- mentioned on