<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: farwell-helloworld-net3-webapi
spec:
  replicas: 1
  selector:
    matchLabels:
      app: farwell-helloworld-net3-webapi
  template:
    metadata:
      labels:
        app: farwell-helloworld-net3-webapi
    spec:
      nodeSelector:
        &quot;kubernetes.io/os&quot;: linux
      containers:
      - name: farwell-helloworld-net3-webapi
        image: devcontainerregistry.azurecr.cn/farwell.helloworld.net3.webapi:latest
        env:
        - name: ALLOW_EMPTY_PASSWORD
          value: &quot;yes&quot;
        resources:
          requests:
            cpu: 100m
            memory: 128Mi
          limits:
            cpu: 250m
            memory: 256Mi
        ports:
        - containerPort: 8077
---
apiVersion: v1
kind: Service
metadata:
  name: farwell-helloworld-net3-webapi
spec:
  type: LoadBalancer
  ports:
  - port: 80
    targetPort: 8077
  selector:
    app: farwell-helloworld-net3-webapi
</code></pre>
<p>I use this command: kubectl get service farwell-helloworld-net3-webapi --watch
then i get this:</p>
<pre><code>NAME                             TYPE           CLUSTER-IP    EXTERNAL-IP     PORT(S)        AGE
farwell-helloworld-net3-webapi   LoadBalancer   10.0.116.13   52.131.xxx.xxx   80:30493/TCP   13m
</code></pre>
<p>I have already open the azure port 80.But I cannot access <a href="http://52.131.xxx.xxx/WeatherForecast" rel="nofollow noreferrer">http://52.131.xxx.xxx/WeatherForecast</a></p>
<p>Could you help me pls? or tell me some steps to help to find the reason?</p>

Farwell_Liu
<p>It seems that I changed the port number from 8077 to 80, then it runs well.</p>
