add pvc, helmRepo and helmRelease for ollama
This commit is contained in:
14
clusters/ipv6/tools/ollama/ollama-pvc.yml
Normal file
14
clusters/ipv6/tools/ollama/ollama-pvc.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: ollama-longhorn
|
||||||
|
namespace: tools
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
volumeMode: Filesystem
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
storageClassName: longhorn
|
||||||
35
clusters/ipv6/tools/ollama/ollama-release.yml
Normal file
35
clusters/ipv6/tools/ollama/ollama-release.yml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: ollama
|
||||||
|
namespace: tools
|
||||||
|
spec:
|
||||||
|
interval: 6h
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: ollama
|
||||||
|
version: "1.36.0"
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: ollama
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 6h
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
values:
|
||||||
|
ollama:
|
||||||
|
gpu:
|
||||||
|
enabled: true
|
||||||
|
type: nvidia
|
||||||
|
service:
|
||||||
|
type: LoadBalancer
|
||||||
|
port: 2123
|
||||||
|
runtimeClassName: nvidia
|
||||||
|
persistentVolume:
|
||||||
|
enabled: true
|
||||||
|
existingClaim: ollama-longhorn
|
||||||
9
clusters/ipv6/tools/ollama/ollama-repo.yml
Normal file
9
clusters/ipv6/tools/ollama/ollama-repo.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: ollama
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 6h
|
||||||
|
url: https://otwld.github.io/ollama-helm/
|
||||||
Reference in New Issue
Block a user