feat: add NFD and intel-gpu

This commit is contained in:
SeanOMik 2024-08-14 16:23:36 -04:00
parent 76f0a73fee
commit dbb9385ce7
11 changed files with 141 additions and 1 deletions

View File

@ -0,0 +1,25 @@
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: intel-gpu-plugin
namespace: intel-gpu
spec:
interval: 5m
chart:
spec:
chart: intel-device-plugins-gpu
version: 0.30.0
sourceRef:
kind: HelmRepository
name: intel
namespace: flux-system
dependsOn:
- name: intel-device-operator
namespace: intel-gpu
values:
name: intel-gpu-plugin
sharedDevNum: 3
nodeFeatureRule: true

View File

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: intel
namespace: flux-system
spec:
interval: 1m
url: https://intel.github.io/helm-charts

View File

@ -0,0 +1,23 @@
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: intel-device-operator
namespace: intel-gpu
spec:
interval: 5m
chart:
spec:
chart: intel-device-plugins-operator
version: 0.30.0
sourceRef:
kind: HelmRepository
name: intel
namespace: flux-system
dependsOn:
- name: nfd
namespace: kube-system
values:

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-repos.yaml
- namespace.yaml
- intel-device-plugins-operator.yaml
- gpu-plugin.yaml

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: intel-gpu

View File

@ -0,0 +1,21 @@
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-secrets
namespace: flux-system
spec:
timeout: 5m
interval: 10m
path: ./cluster/core/intel-gpu
prune: true
sourceRef:
kind: GitRepository
name: home-cluster
decryption:
provider: sops
secretRef:
name: sops-gpg
dependsOn:
- name: nfd
namespace: flux-system

View File

@ -7,3 +7,5 @@ resources:
- ./networking
- ./storage
- ./kube-replicator
- ./nfd
- ./intel-gpu

View File

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: nfd-charts
namespace: flux-system
spec:
interval: 1m
url: https://kubernetes-sigs.github.io/node-feature-discovery/charts

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-repos.yaml
- nfd.yaml

View File

@ -0,0 +1,19 @@
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: nfd
namespace: kube-system
spec:
interval: 5m
chart:
spec:
chart: node-feature-discovery
version: v0.16.3
sourceRef:
kind: HelmRepository
name: nfd-charts
namespace: flux-system
values:

18
cluster/core/nfd/ks.yaml Normal file
View File

@ -0,0 +1,18 @@
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: nfd
namespace: flux-system
spec:
timeout: 5m
interval: 10m
path: ./cluster/nfd/files
prune: true
sourceRef:
kind: GitRepository
name: home-cluster
decryption:
provider: sops
secretRef:
name: sops-gpg