[fix] cannot patch resource "nodes/status" in API group

This commit is contained in:
JeffreyGuan
2023-05-15 21:01:22 +08:00
parent 9fd58e318f
commit 7fc7947bc3
3 changed files with 26 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: node-problem-detector
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: npd-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:node-problem-detector
subjects:
- kind: ServiceAccount
name: node-problem-detector
namespace: kube-system