SUSE Support

Here When You Need Us

How to enable debug level logging for the kube-auth-api DaemonSet in Rancher provisioned Kubernetes clusters

This document (000020055) is provided subject to the disclaimer at the end of this document.

Situation

Task

The kube-auth-api DaemonSet is deployed to controlplane nodes, in Rancher provisioned Kubernetes clusters, to provide user authentication functionality for the authorized cluster endpoint. When troubleshooting an issue with authorized cluster endpoint authentication, it may be helpful to analyze the kube-auth-api logs at debug level, and this article details how to enable debug logging.

Pre-requisites

Resolution

  1. Navigate to the workloads view of the System project, within the Rancher UI, for the relevant Rancher provisioned cluster.

  2. Locate the kube-api-auth DaemonSet, within the cattle-system namespace, click the three dots at the right side of the UI and select Edit Config, per the following screenshot:

    image.png

  3. Select the kube-api-auth container in the main tab.

  4. Under the General section, scroll down until the Command section

  5. In the Command section, enter /usr/bin/kube-api-auth, and --debug serve in the Arguments field, per the following screenshot, and click Save:

    image.png

  6. The kube-api-auth pod(s) will restart with the new debug logging configuration. Viewing the kube-api-auth logs you should now observe log messages with level=debug.

Further reading

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020055
  • Creation Date: 09-Apr-2024
  • Modified Date:10-Apr-2024
    • SUSE Rancher

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.