<p>Anybody know why I keep getting service unavailable for the below YAML code. The ingress points to the service which points to the container and it should be working. For this example I am just using an NGINX container to test.</p>

<pre><code>apiVersion: v1
kind: Service
metadata:
  name: frontend
spec:
  selector:
    k8s-app: traefik-ingress-lb
    app: nginx
  ports:
  - name: web
    port: 80
    targetPort: 80

---

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: frontend
spec:
  rules:
  - host: test.example.services
    http:
      paths:
      - path: /
        backend:
          serviceName: frontend
          servicePort: web

---

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.15.4
        ports:
        - containerPort: 80

---
</code></pre>

<p>The service had a selector which the app didn't. Once the label <code>k8s-app: traefik-ingress-lb</code> was removed everything worked fine.</p>

<p>Thanks to Daniel Tomcej on the Traefik Slack channel for helping me out here.</p>
