k8s intel gpu files

This commit is contained in:
2023-03-22 01:32:01 +01:00
parent ff0d769aa5
commit ef418f2839
18 changed files with 200 additions and 0 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -0,0 +1,8 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: intel-gpu-plugin
spec:
template:
spec:
serviceAccountName: gpu-manager-sa

View File

@ -0,0 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: gpu-manager-role
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["list"]

View File

@ -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

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: gpu-manager-sa

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -0,0 +1,5 @@
bases:
- ../../base
patches:
- path: add-args.yaml
- path: add-nodeselector-intel-gpu.yaml

View File

@ -0,0 +1,5 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: intel-gpu-plugin
namespace: kube-system

View File

@ -0,0 +1,4 @@
bases:
- ../../base
patches:
- path: add-namespace-kube-system.yaml

View File

@ -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"

View File

@ -0,0 +1,4 @@
bases:
- ../../base
patches:
- path: add-nodeselector-intel-gpu.yaml