From 5b2db838b8e57f67d993daf4eca9695667634dfc Mon Sep 17 00:00:00 2001 From: Chris Roat <1053153+chrisroat@users.noreply.github.com> Date: Fri, 18 Jun 2021 05:40:00 -0700 Subject: [PATCH] Remove namespace from ClusterRole/ClusterRoleBinding These are not namespaced objects. It seems kubectl silently strips the namespace, but other tools are more strict and this causes problems. --- deploy/rbac.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/deploy/rbac.yaml b/deploy/rbac.yaml index 078527d4..0c1280ee 100644 --- a/deploy/rbac.yaml +++ b/deploy/rbac.yaml @@ -27,7 +27,6 @@ metadata: labels: k8s-app: node-termination-handler name: node-termination-handler - namespace: kube-system rules: # Allow Node Termination Handler to get and update nodes (for posting taints). - apiGroups: [""] @@ -46,7 +45,6 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: node-termination-handler - namespace: kube-system labels: k8s-app: node-termination-handler roleRef: