Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Minimal Sourcebot Installation

This example demonstrates the simplest way to deploy Sourcebot to a Kubernetes cluster using Helm.

Quick Start

1. Add the Helm Repository

helm repo add sourcebot https://sourcebot-dev.github.io/sourcebot-helm-chart
helm repo update

2. Generate Secrets

Edit secrets.yaml and replace the placeholder values:

# Generate authSecret
openssl rand -base64 33

# Generate encryptionKey
openssl rand -base64 24

Apply the secrets:

kubectl apply -f secrets.yaml

3. Configure Your Repositories

Edit config.json and update the repositories you want to index. See the configuration docs for more information.

4. Deploy

helm install sourcebot sourcebot/sourcebot \
  -f values.yaml \
  --set-json "sourcebot.config=$(cat config.json)"

5. Access Sourcebot

kubectl port-forward svc/sourcebot 3000:3000

Open http://localhost:3000

Uninstalling

helm uninstall sourcebot
kubectl delete -f secrets.yaml

# Optionally, remove all PVCs (this will delete all data)
kubectl delete pvc -l app.kubernetes.io/instance=sourcebot

For more information, see the main Helm chart documentation.