diff --git a/pkg/kubecfg/kubecfg.go b/pkg/kubecfg/kubecfg.go index f6dfb4c96da..dce07c30b7b 100644 --- a/pkg/kubecfg/kubecfg.go +++ b/pkg/kubecfg/kubecfg.go @@ -168,7 +168,7 @@ func RunController(image, name string, replicas int, client client.Interface, po DesiredState: api.ReplicationControllerState{ Replicas: replicas, ReplicaSelector: map[string]string{ - "name": name, + "replicationController": name, }, PodTemplate: api.PodTemplate{ DesiredState: api.PodState{ @@ -184,13 +184,10 @@ func RunController(image, name string, replicas int, client client.Interface, po }, }, Labels: map[string]string{ - "name": name, + "replicationController": name, }, }, }, - Labels: map[string]string{ - "name": name, - }, } controllerOut, err := client.CreateReplicationController(controller)