Kubernetes Registry (#1064)

* add teh k8s registry

* add k8s reg config/cmd

* go mod update
This commit is contained in:
Asim Aslam
2019-12-27 20:08:46 +00:00
committed by GitHub
parent 22aa7d14b3
commit 61cde4a9f4
14 changed files with 950 additions and 236 deletions

View File

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