mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 06:22:50 +08:00
feat : complete the k8s test
This commit is contained in:
parent
b9ff7802bd
commit
7f73bd3a64
@ -23,7 +23,7 @@ namespace Ocelot.Provider.Kubernetes
|
|||||||
var kubeClientFactory = provider.GetService<IKubeApiClientFactory>();
|
var kubeClientFactory = provider.GetService<IKubeApiClientFactory>();
|
||||||
var k8sRegistryConfiguration = new KubeRegistryConfiguration()
|
var k8sRegistryConfiguration = new KubeRegistryConfiguration()
|
||||||
{
|
{
|
||||||
ApiEndPoint = new Uri($"http://{config.Host}:{config.Port}"),
|
ApiEndPoint = new Uri($"https://{config.Host}:{config.Port}"),
|
||||||
KeyOfServiceInK8s = name,
|
KeyOfServiceInK8s = name,
|
||||||
KubeNamespace = config.Namesapce,
|
KubeNamespace = config.Namesapce,
|
||||||
AuthStrategy = KubeAuthStrategy.BearerToken,
|
AuthStrategy = KubeAuthStrategy.BearerToken,
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="KubeClient" Version="2.2.2" />
|
<PackageReference Include="KubeClient" Version="2.2.4" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user