<p>I'm trying to access .NET Web API which I docker-ized and mounted in an Kubernet Cluster on Microsoft Azure.</p>

<p>The application works fine on local docker machine.
The cluster is running, my deployment was correct and the pods where created. Everything I check is fine, but I cannot access my application through the external cluster IP (Load Balancer). This is my YAML deployment file:</p>

<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: ohmioapi-deployment
spec:
  selector:
    matchLabels:
      app: ohmioapi
  replicas: 1
  template:
    metadata:
      labels:
        app: ohmioapi
    spec:
      containers:
      - name: ohmioapi
        image: ohmiocontainers.azurecr.io/ohmioapi:latest
        imagePullPolicy: Always
        ports:
        - containerPort: 15200
      imagePullSecrets:
        - name: acr-auth
---
apiVersion: v1
kind: Service
metadata:
  name: ohmioapi
  labels:
    app: ohmioapi
spec:
  selector:
    app: ohmioapi
  ports:
  - port: 15200
    nodePort: 30200
    protocol: TCP
  type: LoadBalancer
</code></pre>

<p>Can anyone give a hint of where to start looking for?
Thanks!</p>

ericpap
<p>You can use the command <code>kubectl get service</code> to get all the information of services and check your service <code>ohmioapi</code>, the result will like this:</p>

<p><a href="https://i.stack.imgur.com/C4gC1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C4gC1.png" alt="enter image description here"></a></p>

<p>Or you can use the command <code>kubectl describe service serviceName</code> to get more details about your service, the result will like this:</p>

<p><a href="https://i.stack.imgur.com/sGKYH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sGKYH.png" alt="enter image description here"></a></p>

<p>You can check the port mapping in the load balancer and access from the browser via the external IP and port.</p>

<p>You also can use the command <code>kubectl edit service serviceName</code> to edit and check from the config file created by the Kunernetes, the result will like this:</p>

<p><a href="https://i.stack.imgur.com/1W3yT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1W3yT.png" alt="enter image description here"></a></p>
