<p>I'm deploying this list.</p>
<ol>
<li><a href="https://gist.github.com/darknisfire/87472125137c00263054b4b6794e5aa5" rel="nofollow noreferrer">Front gist</a></li>
<li><a href="https://gist.github.com/darknisfire/cc643db38d9d02d770bb88924818f456" rel="nofollow noreferrer">Back gist</a></li>
<li><a href="https://gist.github.com/darknisfire/6f72db2c5268f7a2596a3e4f0b0569e5" rel="nofollow noreferrer">MySQL gist</a></li>
<li><a href="https://gist.github.com/darknisfire/35486ea4eca737072a82152f2d011681" rel="nofollow noreferrer">PhpMyAdmin gist</a></li>
<li><a href="https://gist.github.com/darknisfire/41a1aa5ce55b31627a66bf3fe6b790ca" rel="nofollow noreferrer">Ingress gist</a></li>
</ol>
<p>And Ingress NodePort is <code>80:31361, 443:30482</code> in <code>kubectl get svc -n ingress-nginx</code></p>
<p>The problem is in <code>Ingress</code>.</p>
<p>To load <code>PhpMyAdmin</code> page, I typed url as <code>http://my-ip:31361/pma</code>.</p>
<p>But every resources are not found with 404 error.</p>
<p>If I typed url as <code>http://my-ip:31361/pma/</code>, It works finely.</p>
<p>Only difference is <code>/</code>.</p>
<p>Why this is happen?</p>
<p>How can I page <code>pma</code> or <code>main</code>  without <code>/</code>?</p>

01hanst
<pre><code>apiVersion: networking.k8s.io/v1

kind: Ingress 
metadata:   
  name: ingress   
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/rewrite-target: /$2
    nginx.ingress.kubernetes.io/configuration-snippet: |
      rewrite ^\/(main|pma)$ $1/ permanent; 
spec:   
  rules:
    - http:
      paths:
      - path: /main(/|$)(.*)
        pathType: Prefix
        backend:
          service:
            name: frontend-service
            port:
              number: 80
      - path: /pma(/|$)(.*)
        pathType: Prefix
        backend:
          service:
            name: pma-service
            port:
              number: 80
</code></pre>
<p>As a result, I didn't remove <code>/</code>.</p>
<p>However, If user load page as <code>/main</code>, nginx will redirect to <code>/main/</code>, <code>/pma</code> -&gt; <code>/pma/</code>.</p>
<p>Then every resouces are accessible.</p>
<p>Thank you @P....</p>
