44 lines
778 B
YAML
44 lines
778 B
YAML
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRole
|
||
|
metadata:
|
||
|
name: drone-deploy
|
||
|
rules:
|
||
|
- apiGroups: [""]
|
||
|
resources:
|
||
|
- secrets
|
||
|
- configmaps
|
||
|
- pods
|
||
|
- services
|
||
|
- persistentvolumeclaims
|
||
|
- serviceaccounts
|
||
|
verbs: ["*"]
|
||
|
- apiGroups: ["apps"]
|
||
|
resources:
|
||
|
- replicasets
|
||
|
- deployments
|
||
|
- statefulsets
|
||
|
verbs: ["*"]
|
||
|
- apiGroups: ["batch"]
|
||
|
resources:
|
||
|
- jobs
|
||
|
- cronjobs
|
||
|
verbs: ["*"]
|
||
|
- apiGroups: ["autoscaling"]
|
||
|
resources:
|
||
|
- horizontalpodautoscalers
|
||
|
verbs: ["*"]
|
||
|
- apiGroups: ["networking.k8s.io"]
|
||
|
resources:
|
||
|
- ingresses
|
||
|
verbs: ["*"]
|
||
|
- apiGroups: ["rbac.authorization.k8s.io"]
|
||
|
resources:
|
||
|
- roles
|
||
|
- rolebindings
|
||
|
verbs: ["*"]
|
||
|
- apiGroups: ["monitoring.coreos.com"]
|
||
|
resources:
|
||
|
- podmonitors
|
||
|
- servicemonitors
|
||
|
verbs: ["*"]
|