mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Make "kubecfg -s <port> run ..." select correctly
kubecfg run creates a replication controller which sets all pods with a replicationController= label, but then sets up a service selecting on name= instead. This fixes that. kubecfg -s <port> run ... can now actually work.
This commit is contained in:
parent
0c2ea0bcf2
commit
bb3900f447
@ -255,7 +255,7 @@ func createService(name string, port int, client client.Interface) (*api.Service
|
|||||||
"name": name,
|
"name": name,
|
||||||
},
|
},
|
||||||
Selector: map[string]string{
|
Selector: map[string]string{
|
||||||
"name": name,
|
"replicationController": name,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
svc, err := client.CreateService(svc)
|
svc, err := client.CreateService(svc)
|
||||||
|
Loading…
Reference in New Issue
Block a user