Skip to content

Instantly share code, notes, and snippets.

@parj
Created May 23, 2018 05:11
Show Gist options
  • Save parj/1c9997a7e5a7bdf27943fd9013fbacbe to your computer and use it in GitHub Desktop.
Save parj/1c9997a7e5a7bdf27943fd9013fbacbe to your computer and use it in GitHub Desktop.
Kubernetes role to read and write to pods for a namespace called Jenkins
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: jenkins-readwrite
namespace: jenkins
rules:
- apiGroups: [""] # "" indicates the core API group
resources: ["pods"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment