feat : complete the k8s test

This commit is contained in:
geffzhang 2019-01-29 09:15:30 +08:00
parent b9ff7802bd
commit 7f73bd3a64
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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>