From af3d90b8cdc46879342c59b9f01d384996b215fd Mon Sep 17 00:00:00 2001 From: Jonathan Leech-Pepin Date: Fri, 31 Jan 2025 17:06:42 -0500 Subject: [PATCH] Add default setup charts --- charts/gpu-runtime.yaml | 10 ++++++++++ charts/infisical.yaml | 16 ++++++++++++++++ charts/longhorn.yaml | 30 ++++++++++++++++++++++++++++++ charts/traefik.yaml | 31 +++++++++++++++++++++++++++++++ 4 files changed, 87 insertions(+) create mode 100644 charts/gpu-runtime.yaml create mode 100644 charts/infisical.yaml create mode 100644 charts/longhorn.yaml create mode 100644 charts/traefik.yaml diff --git a/charts/gpu-runtime.yaml b/charts/gpu-runtime.yaml new file mode 100644 index 0000000..066a112 --- /dev/null +++ b/charts/gpu-runtime.yaml @@ -0,0 +1,10 @@ +apiVersion: helm.cattle.io/v1 +kind: HelmChart +metadata: + name: nvidia-device-plugin + namespace: kube-system +spec: + chart: nvidia-device-plugin + repo: https://nvidia.github.io/k8s-device-plugin + valuesContent: |- + runtimeClassName: nvidia diff --git a/charts/infisical.yaml b/charts/infisical.yaml new file mode 100644 index 0000000..fd61431 --- /dev/null +++ b/charts/infisical.yaml @@ -0,0 +1,16 @@ +apiVersion: helm.cattle.io/v1 +kind: HelmChart +metadata: + annotations: + helmcharts.cattle.io/managed-by: helm-controller + finalizers: + - wrangler.cattle.io/on-helm-chart-remove + generation: 1 + name: infisical-install + namespace: default +spec: + chart: secrets-operator + repo: https://dl.cloudsmith.io/public/infisical/helm-charts/helm/charts/ + failurePolicy: abort + targetNamespace: infisical + createNamespace: true diff --git a/charts/longhorn.yaml b/charts/longhorn.yaml new file mode 100644 index 0000000..eddab7e --- /dev/null +++ b/charts/longhorn.yaml @@ -0,0 +1,30 @@ +apiVersion: helm.cattle.io/v1 +kind: HelmChart +metadata: + annotations: + helmcharts.cattle.io/managed-by: helm-controller + finalizers: + - wrangler.cattle.io/on-helm-chart-remove + generation: 1 + name: longhorn-install + namespace: default # This should be elsewhere but changing it would delete +spec: + version: v1.7.2 + chart: longhorn + repo: https://charts.longhorn.io + failurePolicy: abort + targetNamespace: longhorn-system + createNamespace: true + valuesContent: |- + global: + tolerations: + - key: "public" + operator: "Equal" + value: "true" + effect: "NoSchedule" + - key: "gpu" + operator: "Equal" + value: "true" + effect: "NoSchedule" + defaultSettings: + taintToleration: "public=true:NoSchedule;gpu=true:NoSchedule" diff --git a/charts/traefik.yaml b/charts/traefik.yaml new file mode 100644 index 0000000..c47f2f6 --- /dev/null +++ b/charts/traefik.yaml @@ -0,0 +1,31 @@ +apiVersion: helm.cattle.io/v1 +kind: HelmChart +metadata: + name: traefik-lb + namespace: kube-system +spec: + chart: traefik + repo: https://traefik.github.io/charts + targetNamespace: traefik + createNamespace: true + valuesContent: |- + providers: + kubernetesGateway: + enabled: true + experimentalChannel: true + ports: + ollama: + port: 11434 + expose: + default: true + exposedPort: 11434 + postgres: + port: 5432 + expose: + default: true + exposedPort: 5432 + redis: + expose: + default: true + port: 6379 + exposedPort: 6379