mirror of
https://github.com/MichaelCade/90DaysOfDevOps.git
synced 2025-01-24 18:15:28 +07:00
77 lines
1.3 KiB
YAML
77 lines
1.3 KiB
YAML
|
---
|
||
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
name: jenkins
|
||
|
namespace: jenkins
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRole
|
||
|
metadata:
|
||
|
annotations:
|
||
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
||
|
labels:
|
||
|
kubernetes.io/bootstrapping: rbac-defaults
|
||
|
name: jenkins
|
||
|
rules:
|
||
|
- apiGroups:
|
||
|
- '*'
|
||
|
resources:
|
||
|
- statefulsets
|
||
|
- services
|
||
|
- replicationcontrollers
|
||
|
- replicasets
|
||
|
- podtemplates
|
||
|
- podsecuritypolicies
|
||
|
- pods
|
||
|
- pods/log
|
||
|
- pods/exec
|
||
|
- podpreset
|
||
|
- poddisruptionbudget
|
||
|
- persistentvolumes
|
||
|
- persistentvolumeclaims
|
||
|
- jobs
|
||
|
- endpoints
|
||
|
- deployments
|
||
|
- deployments/scale
|
||
|
- daemonsets
|
||
|
- cronjobs
|
||
|
- configmaps
|
||
|
- namespaces
|
||
|
- events
|
||
|
- secrets
|
||
|
verbs:
|
||
|
- create
|
||
|
- get
|
||
|
- watch
|
||
|
- delete
|
||
|
- list
|
||
|
- patch
|
||
|
- update
|
||
|
- apiGroups:
|
||
|
- ""
|
||
|
resources:
|
||
|
- nodes
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- update
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRoleBinding
|
||
|
metadata:
|
||
|
annotations:
|
||
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
||
|
labels:
|
||
|
kubernetes.io/bootstrapping: rbac-defaults
|
||
|
name: jenkins
|
||
|
roleRef:
|
||
|
apiGroup: rbac.authorization.k8s.io
|
||
|
kind: ClusterRole
|
||
|
name: jenkins
|
||
|
subjects:
|
||
|
- apiGroup: rbac.authorization.k8s.io
|
||
|
kind: Group
|
||
|
name: system:serviceaccounts:jenkins
|