Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes Registry #1064

Merged
merged 3 commits into from
Dec 27, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add k8s reg config/cmd
  • Loading branch information
asim committed Dec 27, 2019
commit 9a7b1d01232d5800bcce536680e64e595607a46d
2 changes: 2 additions & 0 deletions config/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/registry/etcd"
"github.com/micro/go-micro/registry/mdns"
kreg "github.com/micro/go-micro/registry/kubernetes"
rmem "github.com/micro/go-micro/registry/memory"
regSrv "github.com/micro/go-micro/registry/service"

Expand Down Expand Up @@ -211,6 +212,7 @@ var (
"etcd": etcd.NewRegistry,
"mdns": mdns.NewRegistry,
"memory": rmem.NewRegistry,
"kubernetes": kreg.NewRegistry,
}

DefaultSelectors = map[string]func(...selector.Option) selector.Selector{
Expand Down
2 changes: 1 addition & 1 deletion runtime/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ func NewRuntime(opts ...runtime.Option) runtime.Runtime {
}

// kubernetes client
client := client.NewClientInCluster()
client := client.NewClusterClient()

return &kubernetes{
options: options,
Expand Down