mirror of
https://github.com/optim-enterprises-bv/homelab.git
synced 2025-11-01 18:37:52 +00:00
feat(cuda): Running a CUDA sample pod
This commit is contained in:
8
apps/cuda-test/kustomization.yaml
Normal file
8
apps/cuda-test/kustomization.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: argocd
|
||||
commonLabels:
|
||||
app.kubernetes.io/managed-by: argocd
|
||||
|
||||
resources:
|
||||
- pod.yaml
|
||||
12
apps/cuda-test/pod.yaml
Normal file
12
apps/cuda-test/pod.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: cuda-vectoradd
|
||||
spec:
|
||||
restartPolicy: OnFailure
|
||||
containers:
|
||||
- name: cuda-vectoradd
|
||||
image: "nvcr.io/nvidia/k8s/cuda-sample:vectoradd-cuda11.7.1-ubuntu20.04"
|
||||
resources:
|
||||
limits:
|
||||
nvidia.com/gpu: 1
|
||||
@@ -15,6 +15,8 @@ spec:
|
||||
server: '*'
|
||||
- namespace: 'blog'
|
||||
server: '*'
|
||||
- namespace: 'cuda-test'
|
||||
server: '*'
|
||||
- namespace: 'home-assistant'
|
||||
server: '*'
|
||||
- namespace: 'jellyfin'
|
||||
|
||||
4
infra/gpu-operator/namespace.yaml
Normal file
4
infra/gpu-operator/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: gpu-operator
|
||||
Reference in New Issue
Block a user