A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://sourcegraph.com/docs/admin/deploy/machine-images below:

Sourcegraph Machine Images - Sourcegraph docs

Sourcegraph Machine Images

Sourcegraph machine images help to simplify the deployment experience for our users by using a pre-setup machine image.

Overview

All Sourcegraph machine image instances are deployed via a single K3s server cluster, running on a single node with an embedded SQLite Database. It allows us to package all the Sourcegraph services with necessary components into one single launcher image so that you can spin up a Sourcegraph instance with just a few clicks in less than 10 minutes. See the official K3s docs to learn more about the architecture of a K3s server.

This deployment method is recommended for customers who do not wish to spend too much time on setup and maintenance, but still require full control over their instances. The Sourcegraph image instances also provide high-availability and flexibility in resource usage, with the capability for scaling and making additional customizations easy whenever your needs have changed, by simply adjusting the worker/agent nodes, while still being on a single node environment.

Everything we use to build and publish the images can be found in our public deployment repository. You are also welcome to check out and follow our progress and updates there.

Our deployment and release process is also documented in the deployment docs.

All Sourcegraph machine images are free to download, and we encourage you to spin up a Sourcegraph AMI instance to experiment with.

Features Amazon Machine Images (AMIs)

All AMI instances are currently pinned with a Sourcegraph version that the instance is launched with to ensure restarting the instance will not cause upgrades accidentally. The version number is saved into a text file on both the root (file path: /home/ec2-user/.sourcegraph-version) and data volumes (file path: /mnt/data/.sourcegraph-version) where it will be read by the reboot script on each reboot. Upgrades will only happen on reboot if the version numbers from both volumes are different.

Detailed deployment and upgrade instructions can be found in our AWS AMIs docs.

Unique AMI IDs can be found in our release page.

Creation process

Our AWS AMIs are all based on the HVM method, which provides us with the ability to create a Sourcegraph instance directly on the virtual machine using the verified Amazon Linux 2 Kernel 5.10 x86_64 HVM as the base image. The following steps are performed during the AMI creation process through our installation script:

  1. De-escalate to ec2-user to make sure tasks are performed by non-root user
  2. Install Git
  3. Clone the deployment repository
  4. Data volumes are formatted and labeled for the AMI instance to mount later
  5. Add configurations to the kernel that would otherwise limit Sourcegraph search performance
  6. Adjust the local firewall settings to ensure K3s cluster networking/DNS can pass through
  7. Link the ephemeral kubelet/pod storage to our data disk
  8. Link the persistent volume pod storage to our data disk
  9. Link the K3s's embedded database to our data disk
  10. Install K3s on root volume
  11. Correct permission of the K3s kube config file located in /etc/rancher/k3s/k3s.yaml
  12. Install Helm on root volume
  13. Download Sourcegraph Helm Charts on root volume
  14. Deploy Sourcegraph using the local Helm Charts
  15. Save the version number to both root and data volumes
  16. Add a cronjob to run the reboot script on each reboot
  17. K3s is stopped and disabled
  18. The instance will then be stopped to create an AMI using the attached volumes
Data volumes

Each AWS AMI comes with two Amazon EBS volumes, one is for root, and the other one is for data:

Sourcegraph does not have access to your cluster and data.

Network and Security

Please refer to the official CIS hardening guide by K3s for more details and general tips on how to improve security of your cluster.

NOTE: See Sourcegraph Vulnerability Management Policy to learn more about our vulnerability and patching policy as well as the current vulnerability service level agreements.

Additional resources

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4