File size: 1,091 Bytes
4962437
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
apiVersion: apps/v1
kind: Deployment
metadata:
  name: swarms-deployment
spec:
  replicas: 3
  selector:
    matchLabels:
      app: swarms
  template:
    metadata:
      labels:
        app: swarms
    spec:
      containers:
        - name: swarms
          image: your_dockerhub_username/swarms:latest
          ports:
            - containerPort: 8000
          env:
            - name: EVAL_PORT
              value: "8000"
            - name: MODEL_NAME
              value: "gpt-4"
            - name: CELERY_BROKER_URL
              value: "redis://redis:6379"
            - name: SERVER
              value: "http://localhost:8000"
            - name: USE_GPU
              value: "False"
            - name: PLAYGROUND_DIR
              value: "playground"
            - name: LOG_LEVEL
              value: "INFO"
            - name: BOT_NAME
              value: "Orca"
            - name: OPENAI_API_KEY
              valueFrom:
                secretKeyRef:
                  name: openai-secret
                  key: OPENAI_API_KEY
            # Other environment variables