let standalone npd use kubelet credentials

Signed-off-by: Jake Sanders <jsand@google.com>
This commit is contained in:
Jake Sanders
2019-11-08 12:13:05 -08:00
parent 62f66ea2f5
commit 42a06f58c6
2 changed files with 34 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kubelet-user-npd-binding
labels:
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:node-problem-detector
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: User
name: kubelet