Skip to content

Instantly share code, notes, and snippets.

@joshrosso
Created June 19, 2019 23:55
Show Gist options
  • Save joshrosso/86618f87a45e4233a7207c1379e964fe to your computer and use it in GitHub Desktop.
Save joshrosso/86618f87a45e4233a7207c1379e964fe to your computer and use it in GitHub Desktop.
rb.yaml
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
metadata:
name: psp-kube-system
namespace: kube-system
subjects:
- kind: Group
name: system:serviceaccounts
# allows kubelet to communicate mirror pods to the API server.
# if not set, mirror pods will fail and static pods that restart may not show up
# when listing pods. See https://github.com/kubernetes/kubernetes/issues/70952.
- kind: Group
name: system:nodes
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: psp-kube-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment