<p>I am trying to access my microservice &quot;externalforum-api-svc&quot; inside my kubernetes cluster using ocelot gateway. I`ve followed the docs but it does not seem to be working.</p>
<p>Can someone please tell me whats wrong with it?</p>
<p>I want to deploy the ocelot api gateway as clusterIP and use Ingress to access it from outside of the cluster, but i am facing this issue when trying to reroute from ocelot -&gt; service inside the cluster.</p>
<blockquote>
<p>## Error warn: Ocelot.Responder.Middleware.ResponderMiddleware[0] requestId: 0HMCO5SFMMOIQ:00000002, previousRequestId: no previous
request id, message: Error Code:
UnableToFindServiceDiscoveryProviderError Message: Unable to find
service discovery provider for type: consul errors found in
ResponderMiddleware. Setting error response for request
path:/externalForumService, request method: GET</p>
</blockquote>
<pre><code>{
  &quot;Routes&quot;: [
    {
      &quot;UpstreamPathTemplate&quot;: &quot;/externalForumService/GetAll&quot;,
      &quot;DownstreamPathTemplate&quot;: &quot;/api/externalforum/v1/forum/GetAll&quot;,
      &quot;DownstreamScheme&quot;: &quot;http&quot;,
      &quot;ServiceName&quot;: &quot;externalforum-api-svc&quot;,
      &quot;UpstreamHttpMethod&quot;: [ &quot;Get&quot; ]
    },
    {
      &quot;UpstreamPathTemplate&quot;: &quot;/externalForumService&quot;,
      &quot;DownstreamPathTemplate&quot;: &quot;/api/externalforum/v1/forum&quot;,
      &quot;DownstreamScheme&quot;: &quot;http&quot;,
      &quot;ServiceName&quot;: &quot;externalforum-api-svc&quot;,
      &quot;UpstreamHttpMethod&quot;: [ &quot;Get&quot; ]
    }
  ],
  &quot;GlobalConfiguration&quot;: {
    &quot;ServiceDiscoveryProvider&quot;: {
      &quot;Namespace&quot;: &quot;propnull&quot;,
      &quot;Type&quot;: &quot;kube&quot;
    }
  }
}
</code></pre>
<h2>Service to map</h2>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: externalforum-api-svc
  namespace: propnull
spec:
  type: ClusterIP
  selector:
    app: externalforum-api
  ports:
    - name: http
      protocol: TCP
      port: 80
      targetPort: 80
</code></pre>
<p>I have already ran <code>kubectl create clusterrolebinding permissive-binding --clusterrole=cluster-admin --user=admin --user=kubelet --group=system:serviceaccounts</code></p>
<h2>Specifications</h2>
<ul>
<li>Version: 17.0.0</li>
<li>Platform: net core 5.0</li>
</ul>

<p>Try to change &quot;type : kube&quot; to &quot;type : KubernetesServiceDiscoveryProvider&quot; in GlobalConfiguration section.</p>
