Uploaded image for project: 'OpenShift Service Mesh'
  1. OpenShift Service Mesh
  2. OSSM-2041

Add API request logging to istiod

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • OSSM 2.3.0
    • None
    • Maistra
    • None
    • Sprint 57, Sprint 58 - week 1

    Description

      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
      

      Attachments

        Activity

          People

            mluksa@redhat.com Marko Luksa
            mluksa@redhat.com Marko Luksa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: