Files
virtual-kubelet/hack/skaffold/virtual-kubelet/base.yml
Sargun Dhillon a3f933d998 Fix permission denied warnings during tests (#617)
For some reason the kubelet tries to do things that it gets perm
denied. This changes the base.yml in the skaffold file to have
the permissions. In turn, this broke the node deletion test. So,
instead of looking for the deletion event (imperative), we wait
for the node UID to change (declarative).
2019-05-17 10:53:24 -07:00

72 lines
959 B
YAML

apiVersion: v1
kind: ServiceAccount
metadata:
name: virtual-kubelet
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: virtual-kubelet
rules:
- apiGroups:
- ""
resources:
- configmaps
- secrets
- services
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods
verbs:
- delete
- get
- list
- watch
- patch
- apiGroups:
- ""
resources:
- nodes
verbs:
- create
- get
- apiGroups:
- ""
resources:
- nodes/status
verbs:
- update
- patch
- apiGroups:
- ""
resources:
- pods/status
verbs:
- update
- patch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: virtual-kubelet
subjects:
- kind: ServiceAccount
name: virtual-kubelet
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: virtual-kubelet