Public IP not reachable and connection timeout on AKS

Roseline Agbo 1 Reputation point
2022-02-16T08:43:16.287+00:00

I deployed Asp.net core Web API on the Aks cluster but I am unable to reach the API using an external IP Address. below is my dployment.yml and service.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-aspnetcore-deployment
spec:
selector:
matchLabels:
app: hello-aspnetcore-pod
template:
metadata:
labels:
app: hello-aspnetcore-pod
spec:
containers:
ports:

  • containerPort: 80

apiVersion: v1
kind: Service
metadata:
name: hello-aspnetcore-service
spec:
selector:
app: hello-aspnetcore-pod
ports:

  • port: 8080
    targetPort: 80
    type: LoadBalancer
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.
2,108 questions
{count} votes

1 answer

Sort by: Most helpful
  1. shiva patpi 13,251 Reputation points Microsoft Employee
    2022-02-16T16:22:00.367+00:00

    Hello @Roseline Agbo ,
    Is that the complete deployment YAML file ? Under the containers section Image attribute is missing.
    Can you kindly double check if you are using the right image in the YAML file ?

    Regards,
    Shiva.

    0 comments No comments

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.