add nvidia gpu support
This commit is contained in:
parent
7339200fc6
commit
c175883985
|
@ -0,0 +1,2 @@
|
||||||
|
resources:
|
||||||
|
- https://raw.githubusercontent.com/ROCm/k8s-device-plugin/master/k8s-ds-amdgpu-dp.yaml
|
|
@ -0,0 +1,9 @@
|
||||||
|
version: v1
|
||||||
|
flags:
|
||||||
|
migStrategy: "none"
|
||||||
|
failOnInitError: true
|
||||||
|
nvidiaDriverRoot: "/"
|
||||||
|
plugin:
|
||||||
|
passDeviceSpecs: false
|
||||||
|
deviceListStrategy: envvar
|
||||||
|
deviceIDStrategy: uuid
|
|
@ -0,0 +1,13 @@
|
||||||
|
resources:
|
||||||
|
# - https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.16.1/deployments/static/nvidia-device-plugin.yml
|
||||||
|
- nvidia-device-plugin-helmchart.yaml
|
||||||
|
|
||||||
|
namespace: kube-system
|
||||||
|
|
||||||
|
configMapGenerator:
|
||||||
|
- name: nvidia-device-plugin-config
|
||||||
|
files:
|
||||||
|
- config0=config/config0.yaml
|
||||||
|
|
||||||
|
configurations:
|
||||||
|
- kustomizeconfig/namereference.yaml
|
|
@ -0,0 +1,5 @@
|
||||||
|
nameReference:
|
||||||
|
- kind: ConfigMap
|
||||||
|
fieldSpecs:
|
||||||
|
- kind: HelmChart
|
||||||
|
path: spec/set/config.name
|
|
@ -0,0 +1,18 @@
|
||||||
|
apiVersion: helm.cattle.io/v1
|
||||||
|
kind: HelmChart
|
||||||
|
metadata:
|
||||||
|
name: nvidia-device-plugin
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
repo: https://nvidia.github.io/k8s-device-plugin
|
||||||
|
chart: nvidia-device-plugin
|
||||||
|
version: 0.16.1
|
||||||
|
targetNamespace: kube-system
|
||||||
|
set:
|
||||||
|
config.default: config0
|
||||||
|
config.name: nvidia-device-plugin-config
|
||||||
|
gfd.enabled: "true"
|
||||||
|
valuesContent: |-
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/arch: amd64
|
||||||
|
runtimeClassName: nvidia
|
|
@ -25,10 +25,10 @@ spec:
|
||||||
values:
|
values:
|
||||||
- amd64
|
- amd64
|
||||||
priorityClassName: high-priority
|
priorityClassName: high-priority
|
||||||
|
runtimeClassName: nvidia
|
||||||
containers:
|
containers:
|
||||||
- name: server
|
- name: server
|
||||||
imagePullPolicy: Always
|
image: ollama/ollama
|
||||||
image: ollama/ollama:rocm
|
|
||||||
# image: badjware/ollama-tweak
|
# image: badjware/ollama-tweak
|
||||||
# env:
|
# env:
|
||||||
# - name: HSA_OVERRIDE_GFX_VERSION
|
# - name: HSA_OVERRIDE_GFX_VERSION
|
||||||
|
@ -37,12 +37,12 @@ spec:
|
||||||
# value: "0"
|
# value: "0"
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 8Gi
|
memory: 4Gi
|
||||||
# cpu: 2000m
|
cpu: 2000m
|
||||||
limits:
|
limits:
|
||||||
memory: 8Gi
|
memory: 4Gi
|
||||||
# cpu: 3000m
|
cpu: 3000m
|
||||||
amd.com/gpu: 1
|
nvidia.com/gpu: 1
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 11434
|
- containerPort: 11434
|
||||||
name: http
|
name: http
|
||||||
|
|
|
@ -52,6 +52,10 @@ images:
|
||||||
newTag: "7.2"
|
newTag: "7.2"
|
||||||
- name: bitnami/kubectl
|
- name: bitnami/kubectl
|
||||||
newTag: "1.29"
|
newTag: "1.29"
|
||||||
|
- name: ollama/ollama
|
||||||
|
newTag: 0.3.3
|
||||||
|
# newTag: 0.3.3-rocm
|
||||||
|
|
||||||
|
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
- name: litellm-proxy-config
|
- name: litellm-proxy-config
|
||||||
|
|
|
@ -2,5 +2,5 @@ resources:
|
||||||
- ../../bases/longhorn
|
- ../../bases/longhorn
|
||||||
- ../../bases/traefik
|
- ../../bases/traefik
|
||||||
- ../../bases/external-secrets
|
- ../../bases/external-secrets
|
||||||
- https://raw.githubusercontent.com/ROCm/k8s-device-plugin/master/k8s-ds-amdgpu-dp.yaml
|
- ../../bases/k8s-device-plugin-nvidia
|
||||||
- clustersecretstore.yaml
|
- clustersecretstore.yaml
|
Loading…
Reference in New Issue