Pinging is not working inside the pod/container AKS

Mohd Rashid 20 Reputation points
2024-10-23T17:36:21.1133333+00:00

Hi,

I have one cluster aks and inside cluster i deploy 2 pods both are running

when i go inside the pod and do ping google.com its not pinging even i can do telnet and nslookup both work but ping is not working for any domain weather my domain or google domain its not pinging

can u tell me where im missing or what i need to do

I have create NSG in Inbound rule and Outbound rule both but still no solve

Here is my cluster details

--resource-group Perfai-Prod --name    PerfAI-Prod

Network configuration: Azure CNI Overlay

here is my details

ping to any domain is not pinging nslookup and telnet are working fine

and if i get into services like kubectl get svc -o wide and i try to ping that private ip from inside the pod its not pinging but when i use pod private ip is pinging not working from service

here is some screenshot

User's image

please tel me how i can achieve this ping issue inside pod what i miss do let me know and im using nginx ingress controller LB

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.
Azure | Azure Startups
Azure | Azure Startups
Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
{count} votes

Answer accepted by question author
  1. Anonymous
    2024-10-25T21:59:40.5566667+00:00

    Hi Mohd Rashid,

    Thanks for sharing more context on the issue.

    To ensure that curl is always available in your pods after a restart or when new pods are created, I recommend creating a custom Docker image that includes curl. This way, every new pod will have curl installed automatically, eliminating the need for manual installation each time.

    If the information provided has been helpful to you then please accept the answer by clicking the Accept Answer & Upvote on the post. We value your feedback, and it will help us to assist others who might have a similar query.
    User's image

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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