<p>I've recently setup a Kubernetes cluster and I am brand new to all of this so it's quite a bit to take in. Currently I am trying to setup and Ingress for wordpress deployments. I am able to access through nodeport but I know nodeport is not recommended so I am trying to setup the ingress. I am not exactly sure how to do it and I can't find many guides. I followed this to setup the NGINX LB <a href="https://github.com/nginxinc/kubernetes-ingress/tree/master/examples/complete-example" rel="nofollow noreferrer">https://github.com/nginxinc/kubernetes-ingress/tree/master/examples/complete-example</a>    and I used this to setup the WP Deployment <a href="https://docs.docker.com/ee/ucp/admin/configure/use-nfs-volumes/#inspect-the-deployment" rel="nofollow noreferrer">https://docs.docker.com/ee/ucp/admin/configure/use-nfs-volumes/#inspect-the-deployment</a></p>

<p>I would like to be able to have multiple WP deployments and have an Ingress that resolves to the correct one, but I really can't find much information on it. Any help is greatly appreciated! </p>

Erwin Evans
<p>You can configure your ingress to forward traffic to a different service depending on path.</p>

<p>An example of such a confugration is this:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: test
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - host: foo.bar.com
    http:
      paths:
      - path: /foo
        backend:
          serviceName: s1
          servicePort: 80
      - path: /bar
        backend:
          serviceName: s2
          servicePort: 80
</code></pre>

<p>Read the kubernetes <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">documentation on ingress</a> for more info.</p>

<p>PS: In order for this to work you need an ingress controller like the one in the links in your question.</p>
