From 2270a933a24dac8539af66c81dfdeb5a32281744 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Sun, 31 Mar 2024 12:25:57 -0500 Subject: [PATCH] Add intel gpu plugin. --- .../intel-device-plugin/app/helmrelease.yaml | 29 +++++++++++++ .../app/kustomization.yaml | 6 +++ .../intel-device-plugin/gpu/helmrelease.yaml | 30 +++++++++++++ .../gpu/kustomization.yaml | 6 +++ .../kube-system/intel-device-plugin/ks.yaml | 42 +++++++++++++++++++ .../apps/kube-system/kustomization.yaml | 1 + 6 files changed, 114 insertions(+) create mode 100644 kubernetes/apps/kube-system/intel-device-plugin/app/helmrelease.yaml create mode 100644 kubernetes/apps/kube-system/intel-device-plugin/app/kustomization.yaml create mode 100644 kubernetes/apps/kube-system/intel-device-plugin/gpu/helmrelease.yaml create mode 100644 kubernetes/apps/kube-system/intel-device-plugin/gpu/kustomization.yaml create mode 100644 kubernetes/apps/kube-system/intel-device-plugin/ks.yaml diff --git a/kubernetes/apps/kube-system/intel-device-plugin/app/helmrelease.yaml b/kubernetes/apps/kube-system/intel-device-plugin/app/helmrelease.yaml new file mode 100644 index 00000000..b3a65272 --- /dev/null +++ b/kubernetes/apps/kube-system/intel-device-plugin/app/helmrelease.yaml @@ -0,0 +1,29 @@ +--- +# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json +apiVersion: helm.toolkit.fluxcd.io/v2beta2 +kind: HelmRelease +metadata: + name: intel-device-plugin-operator +spec: + interval: 30m + chart: + spec: + chart: intel-device-plugins-operator + version: 0.29.0 + sourceRef: + kind: HelmRepository + name: intel + namespace: flux-system + install: + crds: CreateReplace + remediation: + retries: 3 + upgrade: + cleanupOnFail: true + crds: CreateReplace + remediation: + strategy: rollback + retries: 3 + dependsOn: + - name: node-feature-discovery + namespace: kube-system \ No newline at end of file diff --git a/kubernetes/apps/kube-system/intel-device-plugin/app/kustomization.yaml b/kubernetes/apps/kube-system/intel-device-plugin/app/kustomization.yaml new file mode 100644 index 00000000..2d7deaca --- /dev/null +++ b/kubernetes/apps/kube-system/intel-device-plugin/app/kustomization.yaml @@ -0,0 +1,6 @@ +--- +# yaml-language-server: $schema=https://json.schemastore.org/kustomization +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ./helmrelease.yaml \ No newline at end of file diff --git a/kubernetes/apps/kube-system/intel-device-plugin/gpu/helmrelease.yaml b/kubernetes/apps/kube-system/intel-device-plugin/gpu/helmrelease.yaml new file mode 100644 index 00000000..5a4f77ba --- /dev/null +++ b/kubernetes/apps/kube-system/intel-device-plugin/gpu/helmrelease.yaml @@ -0,0 +1,30 @@ +--- +# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json +apiVersion: helm.toolkit.fluxcd.io/v2beta2 +kind: HelmRelease +metadata: + name: intel-device-plugin-gpu +spec: + interval: 30m + chart: + spec: + chart: intel-device-plugins-gpu + version: 0.29.0 + sourceRef: + kind: HelmRepository + name: intel + namespace: flux-system + install: + remediation: + retries: 3 + upgrade: + cleanupOnFail: true + remediation: + strategy: rollback + retries: 3 + dependsOn: + - name: intel-device-plugin-operator + namespace: kube-system + values: + name: intel-gpu-plugin + sharedDevNum: 3 \ No newline at end of file diff --git a/kubernetes/apps/kube-system/intel-device-plugin/gpu/kustomization.yaml b/kubernetes/apps/kube-system/intel-device-plugin/gpu/kustomization.yaml new file mode 100644 index 00000000..2d7deaca --- /dev/null +++ b/kubernetes/apps/kube-system/intel-device-plugin/gpu/kustomization.yaml @@ -0,0 +1,6 @@ +--- +# yaml-language-server: $schema=https://json.schemastore.org/kustomization +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ./helmrelease.yaml \ No newline at end of file diff --git a/kubernetes/apps/kube-system/intel-device-plugin/ks.yaml b/kubernetes/apps/kube-system/intel-device-plugin/ks.yaml new file mode 100644 index 00000000..a360679b --- /dev/null +++ b/kubernetes/apps/kube-system/intel-device-plugin/ks.yaml @@ -0,0 +1,42 @@ +--- +# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: &app intel-device-plugin + namespace: flux-system +spec: + targetNamespace: kube-system + commonMetadata: + labels: + app.kubernetes.io/name: *app + path: ./kubernetes/apps/kube-system/intel-device-plugin/app + prune: true + sourceRef: + kind: GitRepository + name: homelab + wait: false + interval: 30m + retryInterval: 1m + timeout: 5m +--- +# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: &app intel-device-plugin-gpu + namespace: flux-system +spec: + targetNamespace: kube-system + commonMetadata: + labels: + app.kubernetes.io/name: *app + path: ./kubernetes/apps/kube-system/intel-device-plugin/gpu + prune: true + sourceRef: + kind: GitRepository + name: homelab + wait: false + interval: 30m + retryInterval: 1m + timeout: 5m \ No newline at end of file diff --git a/kubernetes/apps/kube-system/kustomization.yaml b/kubernetes/apps/kube-system/kustomization.yaml index 0574ff88..1bac3bee 100644 --- a/kubernetes/apps/kube-system/kustomization.yaml +++ b/kubernetes/apps/kube-system/kustomization.yaml @@ -10,6 +10,7 @@ resources: - ./descheduler/ks.yaml - ./fstrim/ks.yaml - ./metrics-server/ks.yaml + - ./intel-device-plugin/ks.yaml - ./nvidia-device-plugin/ks.yaml - ./node-feature-discovery/ks.yaml - ./reloader/ks.yaml