Skip to content

Instantly share code, notes, and snippets.

@parj
Created May 23, 2018 05:15
Show Gist options
  • Save parj/1aaafd7332376f6eb6c4e8888060bfe4 to your computer and use it in GitHub Desktop.
Save parj/1aaafd7332376f6eb6c4e8888060bfe4 to your computer and use it in GitHub Desktop.
Bind the jenkins-robot user to the jenkins-readwrite role for Kubernetes
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: read-pods
namespace: jenkins
subjects:
- kind: ServiceAccount
name: jenkins-robot
namespace: default
roleRef:
kind: Role
name: jenkins-readwrite
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment