From f6d427667611673f344fd2ecb07f432b39466d2d Mon Sep 17 00:00:00 2001 From: Hui Chen Date: Fri, 26 Apr 2019 10:40:26 +0800 Subject: [PATCH] Deployment V1 Spec required the selector (#326) --- config/manager/deployment.yaml | 4 ++++ overlays-config/coreos/manager/deployment.yaml | 4 ++++ overlays-config/generic/manager/deployment.yaml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/config/manager/deployment.yaml b/config/manager/deployment.yaml index 92257068f7..e0a23a8109 100644 --- a/config/manager/deployment.yaml +++ b/config/manager/deployment.yaml @@ -8,6 +8,10 @@ metadata: controller-tools.k8s.io: "1.0" spec: replicas: 1 + selector: + matchLabels: + control-plane: controller-manager + controller-tools.k8s.io: "1.0" template: metadata: labels: diff --git a/overlays-config/coreos/manager/deployment.yaml b/overlays-config/coreos/manager/deployment.yaml index 7740d93abc..37a3671e3f 100644 --- a/overlays-config/coreos/manager/deployment.yaml +++ b/overlays-config/coreos/manager/deployment.yaml @@ -7,6 +7,10 @@ metadata: control-plane: controller-manager controller-tools.k8s.io: "1.0" spec: + selector: + matchLabels: + control-plane: controller-manager + controller-tools.k8s.io: "1.0" template: spec: volumes: diff --git a/overlays-config/generic/manager/deployment.yaml b/overlays-config/generic/manager/deployment.yaml index dd7f0d98b4..28d05ee099 100644 --- a/overlays-config/generic/manager/deployment.yaml +++ b/overlays-config/generic/manager/deployment.yaml @@ -7,6 +7,10 @@ metadata: control-plane: controller-manager controller-tools.k8s.io: "1.0" spec: + selector: + matchLabels: + control-plane: controller-manager + controller-tools.k8s.io: "1.0" template: spec: volumes: