Skip to content

Latest commit

 

History

History

non-privileged

This kustomization is for creating fresh Sourcegraph installations that want to run containers as non-root users in clusters with security restrictions. It avoids creating Roles and does all the rolebinding in a namespace. It configures Prometheus to work in the namespace and not require ClusterRole wide privileges when doing service discovery for scraping targets. It also disables cAdvisor.

Note: To create a fresh installation use non-privileged-create-cluster first and then use this overlay.

To use it, execute the following command from the root directory of this repository:

./overlay-generate-cluster.sh non-privileged generated-cluster

After executing the script you can apply the generated manifests from the generated-cluster directory:

kubectl apply -n ns-sourcegraph --prune -l deploy=sourcegraph -f generated-cluster --recursive