kubernetes-installation/drone-runner/role.yaml

41 lines
627 B
YAML
Raw Normal View History

2021-10-11 20:12:50 +07:00
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
2022-04-01 11:25:29 +07:00
namespace: default
2021-10-11 20:12:50 +07:00
name: drone
rules:
2022-04-01 10:44:38 +07:00
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- delete
- apiGroups:
- ""
resources:
- pods
- pods/log
verbs:
- get
- create
- delete
- list
- watch
- update
2021-10-11 20:12:50 +07:00
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: drone
2022-04-01 11:25:29 +07:00
namespace: default
2021-10-11 20:12:50 +07:00
subjects:
2022-04-01 10:44:38 +07:00
- kind: ServiceAccount
name: default
2022-04-01 11:25:29 +07:00
namespace: default
2021-10-11 20:12:50 +07:00
roleRef:
kind: Role
name: drone
2022-04-01 10:44:38 +07:00
apiGroup: rbac.authorization.k8s.io