k8s intel gpu files
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: intel-gpu-plugin
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: intel-gpu-plugin
|
||||
args:
|
||||
- "-shared-dev-num=300"
|
||||
- "-resource-manager"
|
@ -0,0 +1,9 @@
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: intel-gpu-plugin
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
nodeSelector:
|
||||
intel.feature.node.kubernetes.io/gpu: "true"
|
@ -0,0 +1,17 @@
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: intel-gpu-plugin
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: intel-gpu-plugin
|
||||
volumeMounts:
|
||||
- name: podresources
|
||||
mountPath: /var/lib/kubelet/pod-resources
|
||||
volumes:
|
||||
- name: podresources
|
||||
hostPath:
|
||||
path: /var/lib/kubelet/pod-resources
|
||||
|
@ -0,0 +1,8 @@
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: intel-gpu-plugin
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
serviceAccountName: gpu-manager-sa
|
@ -0,0 +1,8 @@
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: gpu-manager-role
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["list"]
|
@ -0,0 +1,12 @@
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: gpu-manager-rolebinding
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: gpu-manager-sa
|
||||
namespace: default
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: gpu-manager-role
|
||||
apiGroup: rbac.authorization.k8s.io
|
@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: gpu-manager-sa
|
@ -0,0 +1,11 @@
|
||||
bases:
|
||||
- ../../base
|
||||
resources:
|
||||
- gpu-manager-rolebinding.yaml
|
||||
- gpu-manager-role.yaml
|
||||
- gpu-manager-sa.yaml
|
||||
patches:
|
||||
- path: add-serviceaccount.yaml
|
||||
- path: add-podresource-mount.yaml
|
||||
- path: add-args.yaml
|
||||
- path: add-nodeselector-intel-gpu.yaml
|
@ -0,0 +1,13 @@
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: intel-gpu-plugin
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: intel-gpu-plugin
|
||||
args:
|
||||
- "-shared-dev-num=30"
|
||||
- "-enable-monitoring"
|
||||
- "-v=2"
|
@ -0,0 +1,9 @@
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: intel-gpu-plugin
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
nodeSelector:
|
||||
intel.feature.node.kubernetes.io/gpu: "true"
|
@ -0,0 +1,5 @@
|
||||
bases:
|
||||
- ../../base
|
||||
patches:
|
||||
- path: add-args.yaml
|
||||
- path: add-nodeselector-intel-gpu.yaml
|
@ -0,0 +1,5 @@
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: intel-gpu-plugin
|
||||
namespace: kube-system
|
@ -0,0 +1,4 @@
|
||||
bases:
|
||||
- ../../base
|
||||
patches:
|
||||
- path: add-namespace-kube-system.yaml
|
@ -0,0 +1,9 @@
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: intel-gpu-plugin
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
nodeSelector:
|
||||
intel.feature.node.kubernetes.io/gpu: "true"
|
@ -0,0 +1,4 @@
|
||||
bases:
|
||||
- ../../base
|
||||
patches:
|
||||
- path: add-nodeselector-intel-gpu.yaml
|
Reference in New Issue
Block a user