<p>I have setup an Ingress for my nginx service,and I can access this service(<code>my-domain.com</code>) with a <code>200</code> response.But it always returns <code>503</code> when the html page trying to get its static resources(<code>my-domain.com/foo/static/</code>). But everything goes right when I simply pull my image and expose the port on local machine.</p>

<p>pieces of code:</p>

<pre><code>nginx.conf
location / {
   root html;
   index index.html;
}

ingress.yml
http:
  paths:
    - path : /
    backend:
      serviceName: nginx
      servicePort: 8000

directories and fies inner nginx/html:
- html
  - foo
    - static
      - css
      - js
      - image
    index.html
</code></pre>

Shengxin Huang
<p>In <code>nginx.conf</code> I should Specify <code>server_name</code> the same as k8s <code>service</code> name in the same k8s cluster.</p>
