apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"rbac.authorization.k8s.io/v1","kind":"ClusterRole","metadata":{"annotations":{},"name":"system:anonymous"},"rules":[{"apiGroups":["*"],"resources":["nodes","nodes/proxy","nodes/stats","nodes/log","nodes/spec","nodes/metrics","pods"],"verbs":["get","list","watch"]},{"nonResourceURLs":["*"],"verbs":["get"]}]}
  name: system:anonymous
rules:
- apiGroups:
  - '*'
  resources:
  - nodes
  - nodes/proxy
  - nodes/stats
  - nodes/log
  - nodes/spec
  - nodes/metrics
  - pods
  verbs:
  - get
  - list
  - watch
- nonResourceURLs:
  - '*'
  verbs:
  - get

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: system:anonymous
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: system:anonymous
subjects:
- apiGroup: rbac.authorization.k8s.io
  kind: User
  name: system:anonymous