kubernetes-handbook/manifests/linkerd/jenkins-rbac-beta.yml

25 lines
595 B
YAML
Raw Normal View History

2017-08-01 21:20:16 +08:00
# RBAC configs for jenkins
---
# allows the jenkins process to run the continuous deploy demo
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: jenkins-rc
rules:
- apiGroups: [""] # "" indicates the core API group
resources: ["services", "replicationcontrollers"]
verbs: ["*"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: jenkins-role-binding
subjects:
- kind: ServiceAccount
name: default
namespace: default
roleRef:
kind: ClusterRole
name: jenkins-rc
apiGroup: rbac.authorization.k8s.io