<p>I am trying to apply ingress rule in minikube but I am getting this error</p>
<pre><code>error: resource mapping not found for name: &quot;dashboard-ingress&quot; namespace: &quot;kubernetes-dashboard&quot; from &quot;Desktop/minikube/dashboard-ingress.yaml&quot;: no matches for kind &quot;Ingress&quot; in version &quot;networking.k8.io/v1&quot;
</code></pre>
<p>dashboard-ingress.yaml</p>
<pre><code>apiVersion: networking.k8.io/v1
kind: Ingress
metadata:
    name: dashboard-ingress
    namespace: kubernetes-dashboard
spec:
    rules:
    - host: dashboard.com
      http:
        paths:
        - backend: 
            serviceName: kubernetes-dashboard
            servicePort: 80
</code></pre>

etranz
<p>I have found the solution</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: dashboard-ingress
  namespace: kubernetes-dashboard
spec:
  rules:
  - host: dashboard.com
    http:
      paths:
        - pathType: Prefix
          path: &quot;/&quot;
          backend:
            service:
              name: kubernetes-dashboard
              port:
                number: 80    
</code></pre>
