Closed Palisar closed 1 year ago
@ggnaegi Could you confirm that plz?
Here is a screen shot for more context
@Palisar @raman-m the extension method is foreseen for an IOcelotBuilder
object, therefore you should write
services
.AddOcelot(Configuration)
.AddKubernetes()
since AddOcelot will return an IOcelotBuilder The docs for version 20.0 are fine though (and version 1.0.0 too ;-)):
Ah , sorry it was my mistake not overriding this. Thanks for the clarification and sorry for the misunderstanding.
Dear Paul, We have very simple K8s demo app: OcelotKube sample Here are exact lines which should help you: OcelotKube / ApiGateway / Startup.cs Extension definition: Ocelot.Provider.Kubernetes.OcelotBuilderExtensions.AddKubernetes
Expected Behavior / New Feature
When you view the docs for K8s is shows simply to use
s.AddKubernetes();
in the configure services in program.cs
Actual Behavior / Motivation for New Feature
the extension method
.AddKubernetes()
doesn't appear to be available to this method.Steps to Reproduce the Problem
Ocelot.Provider.Kubernetes
as instructed in the docss.AddKubernetes();
and it will show this method is not longer there.Specifications