Kubernetes
Recall mit Helm bereitstellen
Voraussetzungen
- Kubernetes 1.19+
- Helm 3.0+
- PV-Provisioner-Unterstützung
Installation
# Clone repo
git clone https://github.com/tryrecall/recall.git && cd recall
# Generate secrets
BETTER_AUTH_SECRET=$(openssl rand -hex 32)
ENCRYPTION_KEY=$(openssl rand -hex 32)
INTERNAL_API_SECRET=$(openssl rand -hex 32)
# Install
helm install recall ./helm/recall \
--set app.env.BETTER_AUTH_SECRET="$BETTER_AUTH_SECRET" \
--set app.env.ENCRYPTION_KEY="$ENCRYPTION_KEY" \
--set app.env.INTERNAL_API_SECRET="$INTERNAL_API_SECRET" \
--namespace recall --create-namespaceCloud-spezifische Werte
helm install recall ./helm/recall \
--values ./helm/recall/examples/values-aws.yaml \
--set app.env.BETTER_AUTH_SECRET="$BETTER_AUTH_SECRET" \
--set app.env.ENCRYPTION_KEY="$ENCRYPTION_KEY" \
--set app.env.INTERNAL_API_SECRET="$INTERNAL_API_SECRET" \
--set app.env.NEXT_PUBLIC_APP_URL="https://recall.yourdomain.com" \
--namespace recall --create-namespacehelm install recall ./helm/recall \
--values ./helm/recall/examples/values-azure.yaml \
--set app.env.BETTER_AUTH_SECRET="$BETTER_AUTH_SECRET" \
--set app.env.ENCRYPTION_KEY="$ENCRYPTION_KEY" \
--set app.env.INTERNAL_API_SECRET="$INTERNAL_API_SECRET" \
--set app.env.NEXT_PUBLIC_APP_URL="https://recall.yourdomain.com" \
--namespace recall --create-namespacehelm install recall ./helm/recall \
--values ./helm/recall/examples/values-gcp.yaml \
--set app.env.BETTER_AUTH_SECRET="$BETTER_AUTH_SECRET" \
--set app.env.ENCRYPTION_KEY="$ENCRYPTION_KEY" \
--set app.env.INTERNAL_API_SECRET="$INTERNAL_API_SECRET" \
--set app.env.NEXT_PUBLIC_APP_URL="https://recall.yourdomain.com" \
--namespace recall --create-namespaceSchlüsselkonfiguration
# Custom values.yaml
app:
replicaCount: 2
env:
NEXT_PUBLIC_APP_URL: "https://recall.yourdomain.com"
OPENAI_API_KEY: "sk-..."
postgresql:
persistence:
size: 50Gi
ingress:
enabled: true
className: nginx
tls:
enabled: true
app:
host: recall.yourdomain.comSiehe helm/recall/values.yaml für alle Optionen.
Externe Datenbank
postgresql:
enabled: false
externalDatabase:
enabled: true
host: "your-db-host"
port: 5432
username: "postgres"
password: "your-password"
database: "recall"
sslMode: "require"Befehle
# Port forward for local access
kubectl port-forward deployment/recall-recall-app 3000:3000 -n recall
# View logs
kubectl logs -l app.kubernetes.io/component=app -n recall --tail=100
# Upgrade
helm upgrade recall ./helm/recall --namespace recall
# Uninstall
helm uninstall recall --namespace recall