how to check ingress pod running in which mode info or debug

37821879 90 Reputation points
2024-01-10T11:44:34.42+00:00

how to check ingress pod running in which mode info or debug

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,457 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Deepanshu katara 16,720 Reputation points MVP Moderator
    2024-01-10T12:08:57.9966667+00:00

    Hi ,

    Simply run below command

    kubectl logs <ingress-pod-name> -n <namespace>

    However, the verbosity level might not be explicitly shown in the logs depending on how the Ingress controller is configured.

    Check Ingress Controller Configuration:

    1. Check ConfigMap: Some Ingress controllers, like NGINX, use ConfigMaps to manage their configurations. You can inspect the ConfigMap associated with the Ingress controller deployment:
    
    kubectl describe configmap <configmap-name> -n <namespace>
    

    Look for any settings related to logging or verbosity levels within the ConfigMap.

    Please accept answer if it helps, Thanks


  2. Anveshreddy Nimmala 3,550 Reputation points Microsoft External Staff Moderator
    2024-01-11T05:31:18.76+00:00

    Hello 37821879, Welcome to microsoft Q&A, Thanks for posting your query here. To check the running mode of an ingress pod, you can use the kubectl logs command to view the logs of the pod. You can list all pods in your cluster to find the Ingress controller pod. kubectl get pods -n <namespace> you can retrieve its logs using the kubectl logs command. kubectl logs -n <namespace> <pod-name> Ingress controllers allow you to enable debug-level logging for more detailed information. kubectl edit configmap -n <namespace> <nginx-ingress-configmap-name> Hope this helps you, please accept the answer if it helps you for the sake of community.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.