Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions k8s-mock-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ spec:
- ./k8s-device-plugin
- -v=5
- --device-config-file=/device-config.yaml
securityContext:
privileged: true
allowPrivilegeEscalation: true
capabilities:
drop: ["ALL"]
add: ["SYS_ADMIN"]
volumeMounts:
- name: dp
mountPath: /var/lib/kubelet/device-plugins
Expand Down
21 changes: 3 additions & 18 deletions k8s-mock-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,8 @@ metadata:
rules:
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- update
- list
- patch
- apiGroups:
- ""
resources:
- pods
verbs:
- update
- patch
- get
- list
- watch
resources: ["nodes"]
verbs: ["get", "update", "list", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand All @@ -40,4 +25,4 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: hami-mock-device-plugin
namespace: kube-system
namespace: kube-system
Loading