diff --git a/infrastructure/drivers/amd-gpu.yaml b/infrastructure/drivers/amd-gpu.yaml new file mode 100644 index 0000000000000000000000000000000000000000..81ddd3806ab588134c6a205e28f113acf82e9bbe --- /dev/null +++ b/infrastructure/drivers/amd-gpu.yaml @@ -0,0 +1,28 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1beta1 +kind: HelmRepository +metadata: + name: amd-gpu + namespace: drivers-system +spec: + interval: 30m + url: https://radeonopencompute.github.io/k8s-device-plugin/ +--- +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: amd-gpu + namespace: drivers-system +spec: + releaseName: amd-gpu + chart: + spec: + chart: amd-gpu + sourceRef: + kind: HelmRepository + name: amd-gpu + namespace: drivers-system + version: 0.2.0 + interval: 5m + values: + namespace: drivers-system diff --git a/infrastructure/drivers/kustomization.yaml b/infrastructure/drivers/kustomization.yaml new file mode 100644 index 0000000000000000000000000000000000000000..22ea8ec7681e5d33080ac20c9e99070a8453cedb --- /dev/null +++ b/infrastructure/drivers/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: drivers-system +resources: + - namespace.yaml + - amd-gpu.yaml + - ../../shared/networkpolicies/deny-by-default.yaml diff --git a/infrastructure/drivers/namespace.yaml b/infrastructure/drivers/namespace.yaml new file mode 100644 index 0000000000000000000000000000000000000000..09f50de0c086f576d0fd805493ffd5b424004063 --- /dev/null +++ b/infrastructure/drivers/namespace.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: drivers-system + labels: + name: drivers-system + kyverno.shivering-isles.com/class: "system" diff --git a/infrastructure/kustomization.yaml b/infrastructure/kustomization.yaml index 59ab3cb80c686b7c49b10137e9d872578285aa97..169bd6e1d70a7c5c2d3747067555edf2ecdaa764 100644 --- a/infrastructure/kustomization.yaml +++ b/infrastructure/kustomization.yaml @@ -3,6 +3,7 @@ kind: Kustomization resources: - kube-system - node-features + - drivers - system-upgrades - firewall - metallb