2024-04-28 21:41:59 +00:00
|
|
|
+++
|
|
|
|
|
disableToc = false
|
|
|
|
|
title = "Run with Kubernetes"
|
|
|
|
|
weight = 6
|
|
|
|
|
url = '/basics/kubernetes/'
|
|
|
|
|
ico = "rocket_launch"
|
|
|
|
|
+++
|
|
|
|
|
|
2024-06-22 10:16:27 +00:00
|
|
|
|
2025-05-16 10:45:48 +00:00
|
|
|
For installing LocalAI in Kubernetes, the deployment file from the `examples` can be used and customized as preferred:
|
2024-06-22 10:16:27 +00:00
|
|
|
|
|
|
|
|
```
|
2024-12-05 15:06:51 +00:00
|
|
|
kubectl apply -f https://raw.githubusercontent.com/mudler/LocalAI-examples/refs/heads/main/kubernetes/deployment.yaml
|
2024-06-22 10:16:27 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
For Nvidia GPUs:
|
|
|
|
|
|
|
|
|
|
```
|
2024-12-05 15:06:51 +00:00
|
|
|
kubectl apply -f https://raw.githubusercontent.com/mudler/LocalAI-examples/refs/heads/main/kubernetes/deployment-nvidia.yaml
|
2024-06-22 10:16:27 +00:00
|
|
|
```
|
|
|
|
|
|
2024-06-22 10:16:55 +00:00
|
|
|
Alternatively, the [helm chart](https://github.com/go-skynet/helm-charts) can be used as well:
|
2024-04-28 21:41:59 +00:00
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
helm repo add go-skynet https://go-skynet.github.io/helm-charts/
|
|
|
|
|
helm repo update
|
|
|
|
|
helm show values go-skynet/local-ai > values.yaml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
helm install local-ai go-skynet/local-ai -f values.yaml
|
|
|
|
|
```
|