- Enable / install Docker for Mac's Kubernetes support via Docker > Preferences > Kubernetes:
-
Ensure Docker has lots of memory (e.g. 8GB).
-
Delete all
resources
andlimits
references in our repository. Otherwise all pods will fail to start due to hitting the resource requests. Unless you have something like a 90 core 300GB RAM dev laptop, I don't know of a better way to do this. -
Following our own instructions, when prompted, create the storageclass using the
docker.io/hostpath
provider:
# base/sourcegraph.StorageClass.yaml
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: sourcegraph
labels:
deploy: sourcegraph
provisioner: docker.io/hostpath
- After running
kubectl-apply-all.sh
, port forward to visit the frontend:
kubectl port-forward $(kubectl get pod -l app=sourcegraph-frontend -o template --template="{{(index .items 0).metadata.name}}") 3080