mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +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,
|
||||
},
|
||||
Selector: map[string]string{
|
||||
"name": name,
|
||||
"replicationController": name,
|
||||
},
|
||||
}
|
||||
svc, err := client.CreateService(svc)
|
||||
|
Loading…
Reference in New Issue
Block a user