Commit 152534fc authored by Adam Harrison's avatar Adam Harrison
Browse files

Convert to compact representation

parent 741b27cd
---
apiVersion: v1
kind: ServiceAccount
metadata:
......
# ClusterRole
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kured
rules:
# Allow kured to grab it's lock
- apiGroups:
- extensions
resources:
- daemonsets
verbs:
- get
- update
- apiGroups: ["extensions"]
resources: ["daemonsets"]
verbs: ["get", "update"]
# Allow kured to cordon and uncordon nodes
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- update
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "update"]
# Allow kured to drain nodes
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- delete
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- get
- apiGroups:
- extensions
resources:
- daemonsets
- replicasets
verbs:
- get
- apiGroups:
- batch
resources:
- jobs
verbs:
- get
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "delete"]
- apiGroups: ["apps"]
resources: ["statefulsets"]
verbs: ["get"]
- apiGroups: ["extensions"]
resources: ["daemonsets", "replicasets"]
verbs: ["get"]
- apiGroups: ["batch"]
resources: ["jobs"]
verbs: ["get"]
- apiGroups: [""]
resources: ["pods/eviction"]
verbs: ["create"]
---
# CLusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment