mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
Make the service reconciller use the API, not a PodRegistry
This commit is contained in:
@@ -76,11 +76,13 @@ func main() {
|
||||
Port: *minionPort,
|
||||
}
|
||||
|
||||
client := client.New("http://localhost:8080", nil)
|
||||
|
||||
var m *master.Master
|
||||
if len(etcdServerList) > 0 {
|
||||
m = master.New(etcdServerList, machineList, podInfoGetter, cloud, *minionRegexp)
|
||||
m = master.New(etcdServerList, machineList, podInfoGetter, cloud, *minionRegexp, client)
|
||||
} else {
|
||||
m = master.NewMemoryServer(machineList, podInfoGetter, cloud)
|
||||
m = master.NewMemoryServer(machineList, podInfoGetter, cloud, client)
|
||||
}
|
||||
|
||||
glog.Fatal(m.Run(net.JoinHostPort(*address, strconv.Itoa(int(*port))), *apiPrefix))
|
||||
|
Reference in New Issue
Block a user