diff --git a/kube/stateful_set.go b/kube/stateful_set.go index 80d7ca84..f2fd67f5 100644 --- a/kube/stateful_set.go +++ b/kube/stateful_set.go @@ -30,6 +30,7 @@ func NewStatefulSet(role *model.InstanceGroup, settings ExportSettings, grapher spec := helm.NewMapping() spec.Add("serviceName", fmt.Sprintf("%s-set", role.Name)) + spec.Add("selector", newSelector(role.Name)) spec.Add("template", podTemplate) // "updateStrategy" is new in kube 1.7, so we don't add anything to non-helm configs // The default behaviour is "OnDelete"