how to restart the ingress pods also how to delete them

37821879 90 Reputation points
2024-01-11T12:59:37+00:00

how to restart the ingress pods also how to delete them

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,458 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. AlaaBarqawi_MSFT 942 Reputation points Microsoft Employee
    2024-01-11T13:13:07.66+00:00

    Hi @37821879 , to restart the ingress pods , you need to get the deployment 1st then restart

    kubectl get deployments -A
    

    Then you restart the ingress controller deployment

    kubectl rollout restart deployment/<deployment-name> -n namespace
    

    to delete them you want to know how you install the ingress controller is it by helm or by yaml ? kindly run

    helm list -A
    

    and then

    helm uninstall my-release -n namespace 
    

    if you deploy by YAML simply delete the deployment please mark as answer if this help

    0 comments No comments

  2. Ammar-Abdlqader 1,176 Reputation points Microsoft Employee
    2024-01-11T13:13:10.7633333+00:00

    Hello @37821879

    To restart the ingress pods, you can delete the pods and let the deployment create new ones. Here's how you can do it:

    1. Identify the pods you want to restart:
    2. kubectl get pods -n <namespace>
    3. Delete the pods:
    4. kubectl delete pod <pod-name> -n <namespace>

    To delete the ingress controller, if it was installed using Helm, you can use the helm uninstall command. Here's how you can do it:

    • helm list --namespace <namespace>
    • helm uninstall <release-name> --namespace <namespace>

    Let me know if that is what you are looking for. else provide us with further details.

    Thank you!

    I look forward to hearing from you!


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.