AKS cluster External IP of loadbalancer not loading

Tarun Mehta 71 Reputation points
2024-07-18T12:53:21.5566667+00:00

I have created cluster using sample.yaml file on windows. It shows me external IP of loadbalancer but when i tried to open that IP in browser its shows

his site can’t be reached

48.216.163.240 took too long to respond.

Try:

ERR_CONNECTION_TIMED_OUT

SAMPLE.YAML FILE FOR REFERENCE IS AS BELOW.

apiVersion: apps/v1

kind: Deployment

metadata:

name: sample

labels:

app: sample

spec:

replicas: 1

template:

metadata:

  name: sample

  labels:

    app: sample

spec:

  nodeSelector:

    "kubernetes.io/os": windows

  containers:

  - name: sample

    image: mcr.microsoft.com/dotnet/framework/samples:aspnetapp

    resources:

      limits:

        cpu: 1

        memory: 800M

    ports:

      - containerPort: 80

selector:

matchLabels:

  app: sample

apiVersion: v1

kind: Service

metadata:

name: sample

spec:

type: LoadBalancer

ports:

  • protocol: TCP port: 80

selector:

app: sample
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,984 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. akinbade abiola 8,450 Reputation points
    2024-07-18T17:41:45.85+00:00

    Hello Tarun Mehta,

    Thanks for your question.

    I will recommend some troubleshooting steps for you.:

    Check status of your service and associated pods thus:

    kubectl get services -n <namespace>
    kubectl get pods -n <namespace>
    

    Ensure that the NSG associated with cluster allows inbound traffic on port 80.

    See: https://learn.microsoft.com/en-us/azure/aks/load-balancer-standard?source=recommendations

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    0 comments No comments