kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: log-reader
namespace: default
rules:
- apiGroups:
- ""
resources:
- pods
- pods/log
verbs: ["get", "list"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: log-reader
namespace: default
subjects:
- kind: User
name: [email protected]
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: Role
name: log-reader
apiGroup: rbac.authorization.k8s.io
Last active
October 1, 2018 11:15
-
-
Save dwdraju/c6871ebc8ca221b56277ac3eb396d722 to your computer and use it in GitHub Desktop.
Kubernetes Pod Log Viewer Access
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment