-
Notifications
You must be signed in to change notification settings - Fork 597
Expand file tree
/
Copy pathansible-deployer.yaml
More file actions
37 lines (37 loc) · 1.02 KB
/
ansible-deployer.yaml
File metadata and controls
37 lines (37 loc) · 1.02 KB
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
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: ansible-deployer-account
namespace: funstuff
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ansible-deployer
rules:
# Core API
- apiGroups: ['']
resources: ['services', 'pods', 'deployments', 'configmaps', 'secrets']
verbs: ['get', 'list', 'create', 'update', 'delete', 'patch', 'watch']
# Apps API
- apiGroups: ['apps']
resources: ['deployments', 'daemonsets', 'jobs']
verbs: ['get', 'list', 'create', 'update', 'delete', 'patch', 'watch']
# Knative API
- apiGroups: ['serving.knative.dev']
resources: ['services', 'revisions', 'routes']
verbs: ['get', 'list', 'create', 'update', 'delete', 'patch', 'watch']
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: ansible-deployer-binding
subjects:
- kind: ServiceAccount
name: ansible-deployer-account
namespace: funstuff
roleRef:
kind: ClusterRole
name: ansible-deployer
apiGroup: rbac.authorization.k8s.io