Sign inSign up

heywoodlh/ollama_load_balancer

By heywoodlh

•Updated 5 days ago

Unofficial build of https://github.com/BigBIueWhale/ollama_load_balancer

Image
Machine learning & AI
0

5.7K

heywoodlh/ollama_load_balancer repository overview

Multi-arch build of ollama_load_balancer⁠.

⁠Usage

⁠Docker
docker run -it --rm -p 11434 docker.io/heywoodlh/ollama_load_balancer --server="http://192.168.150.134:11434=james" --server="http://192.168.150.135:11434=sara"
⁠Kubernetes
---
apiVersion: v1
kind: Service
metadata:
  name: ollama-lb
  namespace: default
  labels:
    app.kubernetes.io/name: ollama-lb
    app.kubernetes.io/instance: ollama-lb
spec:
  type: ClusterIP
  ports:
    - port: 11434
      targetPort: ollama
      protocol: TCP
      name: ollama
  selector:
    app.kubernetes.io/name: ollama-lb
    app.kubernetes.io/instance: ollama-lb
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: ollama-lb
  namespace: default
  labels:
    app.kubernetes.io/name: ollama-lb
    app.kubernetes.io/instance: ollama-lb
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: ollama-lb
      app.kubernetes.io/instance: ollama-lb
  template:
    metadata:
      labels:
        app.kubernetes.io/name: ollama-lb
        app.kubernetes.io/instance: ollama-lb
    spec:
      securityContext:
        {}
      containers:
        - name: ollama-lb
          securityContext:
            {}
          image: "docker.io/heywoodlh/ollama_load_balancer:1.0.3"
          command:
            - "ollama_load_balancer"
          args:
            - "--server=http://192.168.150.134:11434=james"
            - "--server=http://192.168.150.135:11434=sara"
          imagePullPolicy: IfNotPresent
          ports:
            - name: ollama
              containerPort: 11434
              protocol: TCP
          resources:
            {}

Tag summary

Content type

Image

Digest

sha256:a447686a7…

Size

68.9 MB

Last updated

5 days ago

docker pull heywoodlh/ollama_load_balancer