2026-07-26 09:47:55 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: paperclip
|
|
|
|
|
namespace: paperclip
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: paperclip
|
|
|
|
|
strategy:
|
|
|
|
|
type: Recreate
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: paperclip
|
|
|
|
|
spec:
|
|
|
|
|
securityContext:
|
|
|
|
|
fsGroup: 1000
|
|
|
|
|
fsGroupChangePolicy: Always
|
|
|
|
|
initContainers:
|
|
|
|
|
- name: fix-permissions
|
|
|
|
|
image: busybox:1.36
|
|
|
|
|
command:
|
|
|
|
|
- sh
|
|
|
|
|
- -c
|
|
|
|
|
- |
|
|
|
|
|
mkdir -p /paperclip/scripts
|
2026-07-26 11:10:14 +00:00
|
|
|
mkdir -p /paperclip/instances/default/data/run-logs
|
|
|
|
|
mkdir -p /paperclip/instances/default/data/runs
|
|
|
|
|
mkdir -p /paperclip/instances/default/workspaces
|
|
|
|
|
mkdir -p /paperclip/instances/default/companies
|
2026-07-26 09:47:55 +00:00
|
|
|
chmod -R 777 /paperclip
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: data
|
|
|
|
|
mountPath: /paperclip
|
|
|
|
|
containers:
|
|
|
|
|
- name: paperclip
|
|
|
|
|
image: ghcr.io/paperclipai/paperclip:latest
|
|
|
|
|
imagePullPolicy: Always
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 3100
|
|
|
|
|
name: http
|
|
|
|
|
protocol: TCP
|
|
|
|
|
env:
|
|
|
|
|
- name: HOST
|
|
|
|
|
value: "0.0.0.0"
|
|
|
|
|
- name: PORT
|
|
|
|
|
value: "3100"
|
|
|
|
|
- name: PAPERCLIP_HOME
|
|
|
|
|
value: "/paperclip"
|
|
|
|
|
- name: PAPERCLIP_PUBLIC_URL
|
2026-07-26 10:39:10 +00:00
|
|
|
value: "https://paperclip.basicstack.de"
|
2026-07-26 09:47:55 +00:00
|
|
|
- name: PAPERCLIP_DEPLOYMENT_MODE
|
|
|
|
|
value: "authenticated"
|
|
|
|
|
- name: PAPERCLIP_DEPLOYMENT_EXPOSURE
|
|
|
|
|
value: "private"
|
|
|
|
|
- name: PAPERCLIP_MIGRATION_PROMPT
|
|
|
|
|
value: "never"
|
|
|
|
|
- name: PAPERCLIP_MIGRATION_AUTO_APPLY
|
|
|
|
|
value: "true"
|
|
|
|
|
- name: DATABASE_URL
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: paperclip-secrets
|
|
|
|
|
key: DATABASE_URL
|
|
|
|
|
- name: BETTER_AUTH_SECRET
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: paperclip-secrets
|
|
|
|
|
key: BETTER_AUTH_SECRET
|
|
|
|
|
- name: AGENT_JWT_SECRET
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: paperclip-secrets
|
|
|
|
|
key: AGENT_JWT_SECRET
|
|
|
|
|
- name: OPENAI_API_KEY
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: paperclip-secrets
|
|
|
|
|
key: OPENAI_API_KEY
|
|
|
|
|
- name: ANTHROPIC_API_KEY
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: paperclip-secrets
|
|
|
|
|
key: ANTHROPIC_API_KEY
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: data
|
|
|
|
|
mountPath: /paperclip
|
|
|
|
|
readinessProbe:
|
2026-07-26 10:07:16 +00:00
|
|
|
exec:
|
|
|
|
|
command:
|
|
|
|
|
- wget
|
|
|
|
|
- --quiet
|
|
|
|
|
- --tries=1
|
|
|
|
|
- --timeout=3
|
|
|
|
|
- --spider
|
|
|
|
|
- http://localhost:3100/api/health
|
2026-07-26 09:47:55 +00:00
|
|
|
initialDelaySeconds: 20
|
|
|
|
|
periodSeconds: 10
|
|
|
|
|
timeoutSeconds: 5
|
|
|
|
|
successThreshold: 1
|
|
|
|
|
failureThreshold: 3
|
|
|
|
|
livenessProbe:
|
2026-07-26 10:07:16 +00:00
|
|
|
exec:
|
|
|
|
|
command:
|
|
|
|
|
- wget
|
|
|
|
|
- --quiet
|
|
|
|
|
- --tries=1
|
|
|
|
|
- --timeout=3
|
|
|
|
|
- --spider
|
|
|
|
|
- http://localhost:3100/api/health
|
2026-07-26 09:47:55 +00:00
|
|
|
initialDelaySeconds: 30
|
|
|
|
|
periodSeconds: 30
|
|
|
|
|
timeoutSeconds: 5
|
|
|
|
|
successThreshold: 1
|
|
|
|
|
failureThreshold: 3
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
2026-07-26 10:00:04 +00:00
|
|
|
cpu: 1000m
|
|
|
|
|
memory: 2Gi
|
2026-07-26 09:47:55 +00:00
|
|
|
requests:
|
2026-07-26 10:00:04 +00:00
|
|
|
cpu: 200m
|
|
|
|
|
memory: 512Mi
|
2026-07-26 09:47:55 +00:00
|
|
|
volumes:
|
|
|
|
|
- name: data
|
|
|
|
|
persistentVolumeClaim:
|
2026-07-26 10:04:28 +00:00
|
|
|
claimName: paperclip-data
|