forked from galexrt/presentation-gitlab-k8s
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rbac.yaml
42 lines (42 loc) · 817 Bytes
/
rbac.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: gitlab-ci
namespace: presentation-gitlab-k8s
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: presentation-gitlab-k8s
name: gitlab-ci
rules:
- apiGroups: [""]
resources: ["*"]
verbs: ["*"]
- apiGroups: ["apps"]
resources: ["*"]
verbs: ["*"]
- apiGroups: ["batch"]
resources: ["*"]
verbs: ["*"]
- apiGroups: ["extensions"]
resources: ["*"]
verbs: ["*"]
- apiGroups: ["autoscaling"]
resources: ["*"]
verbs: ["*"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: gitlab-ci
namespace: presentation-gitlab-k8s
subjects:
- kind: ServiceAccount
name: gitlab-ci
namespace: presentation-gitlab-k8s
roleRef:
kind: Role
name: gitlab-ci
apiGroup: rbac.authorization.k8s.io