-
Notifications
You must be signed in to change notification settings - Fork 2
/
role.yaml
33 lines (32 loc) · 845 Bytes
/
role.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
# This role is the minimal set of permissions for full use of kink
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: kink
rules:
# For helm install/upgrade
- apiGroups: ['']
resources: [services,persistentvolumeclaims,serviceaccounts,secrets,configmaps]
verbs: ['*']
- apiGroups: [apps]
resources: [statefulsets]
verbs: ['*']
- apiGroups: [networking.k8s.io]
resources: [ingresses]
verbs: ['*']
# For inspecting deployed clusters
- apiGroups: ['']
resources: [pods]
verbs: [get,list,watch]
# For extracting kubeconfig
- apiGroups: ['']
resources: [pods/exec]
verbs: [create]
# For forwading controlplane/ingress ports
- apiGroups: ['']
resources: [pods/portforward]
verbs: [create]
# Not strictly necesary, but good luck debugging without it
- apiGroups: ['']
resources: [pods/logs]
verbs: [get]