15 results found for kubernetes

  1. Adding or changing Buildkite secrets

    handbook › engineering › adding_buildkite_secrets
  2. Prometheus

    handbook › engineering › prometheus
    1. External Resources

      g., Kubernetes exports prometheus metrics), but it can still be tricky to understand effective ways of using it. Here are

    2. Track a service

      Prometheus uses Kubernetes' API to discover endpoints to scrape. Just add to

    3. Alerts

      rules files under kubernetes/resources/configmap/prometheus in the infrastructure repository for all of the alerts.

    4. Testing

      Connect to the Kubernetes cluster VPN. Then fetch the service account details + run the docker image.

    5. Updating the configuration

      container. We use a Kubernetes' ConfigMap feature to manage the configuration for Prometheus, so when updating the ConfigMap the changes are deployed to the

  3. How to resolve a "Sourcegraph.com is deleted entirely" incident

    handbook › engineering › incident_dotcom_deleted_entirely
    1. Assess in which way it is deleted entirely

      Navigate to the sourcegraph-dev project and look at the existing Kubernetes clusters.

    2. Recreating GKE cluster

      management.readonly","https://www.googleapis.com/auth/trace.append" --num-nodes "5" --enable-stackdriver-kubernetes --no-enable-ip-alias --network "projects/sourcegraph-dev/global/networks/default" --no-enable-master-authorized-n

    3. Recreating Kubernetes objects

      kubectl -n prod get deployments should show partial or no Kubernetes deployments, but that you are connected to the right cluster.

  4. Sourcegraph: open product, open company, open source

    company › open_source_open_company
    1. Open product

      Products like Kubernetes and Visual Studio Code do all their product planning in the open. They get useful input from the community and make it easy to integrate and rely on their products.

  5. Internal infrastructure

    handbook › engineering › distribution › internal_infrastructure
    1. Getting access to our Kubernetes clusters

      See kubernetes/README.md in the infrastructure repository.

  6. Deployments

    handbook › engineering › deployments
    1. gcloud container clusters get-credentials dot-com --zone us-central1-f --project sourcegraph-dev Kubernetes configuration

    2. Deploying to sourcegraph.com

      Every commit to the release branch (the default branch) on deploy-sourcegraph-dot-com deploys the Kubernetes YAML in this repository to our dot-com cluster in CI (i.e.

    3. Deploying and rolling back other clusters

      com. Use the links at the top of this page to see where the Kubernetes configurations for each cluster is stored.

    4. How to setup access to Kubernetes

      Install the kubectl command (CLI for interacting with Kubernetes):

    5. Backups

      Snapshots of all Kubernetes resources are taken periodically and pushed to https://github.com/sourcegraph/kube-backup/.

    6. Merging changes from deploy-sourcegraph

      We have two Sourcegraph Kubernetes cluster installations that we manage ourselves:

  7. Core services team

    handbook › engineering › core-services
    1. Tech stack

      Go, Postgres, Redis, Docker, Kubernetes.

  8. Untitled

    handbook › product › release_blog_post_template
    1. Deploy or upgrade: Local | AWS | DigitalOcean | Kubernetes cluster

    2. Thank you

      Deploy or upgrade: Local | AWS | DigitalOcean | Kubernetes cluster

  9. Distribution team

    handbook › engineering › distribution
    1. Ownership areas

      Deployment Kubernetes cluster installation & upgrade experience Kubernetes YAML & associated tooling Cloud-specific setup docs (AWS

    2. Tech stack

      Go, Docker, Kubernetes

  10. On-call

    handbook › engineering › on_call
    1. Responsibilities

      Make sure you have setup access to kubernetes and know how to perform operations like: looking at logs for a service, restarting a service, getting a command shell in a running pod (e.g. to look at what is on disk).

    2. Resources

      Also consumes other metrics since Kubernetes exports Prometheus metrics from cAdvisor and Kubernetes services.

    3. Playbook › Access pod logs in GCP console

      Go to Kubernetes Engine > Workloads, then search and click on the pod you're interested, e.g. sourcegraph-frontend.

  11. $MAJOR.$MINOR Release ($RELEASE_DATE)

    handbook › engineering › releases › release_issue_template
    1. $FOUR_WORKING_DAYS_BEFORE_RELEASE (4 work days before release): Branch cut

      Upgrade and run the regression test suite.[ ] New Sourcegraph Kubernetes cluster: Run the initializer on a new Sourcegraph Kubernetes cluster. Run the regression test suite.

    2. $ONE_WORKING_DAY_BEFORE_RELEASE (1 work day before release) Tag final release

      [ ] Cut the Kubernetes cluster release in deploy-sourcegraph:[ ] Wait for Renovate to open a PR named "Update Sourcegraph Docker im

  12. Sales team onboarding quiz

    handbook › sales › onboarding › quiz
    1. Questions

      What is Kubernetes?

  13. $MAJOR.$MINOR.$PATCH Patch Release

    handbook › engineering › releases › patch_release_issue_template
    1. Release Kubernetes deployment

  14. Sourcegraph team

    company › team
    1. Dax McDonald (he/him)

      Before Sourcegraph, he worked on making Kubernetes easier to use with Rio and K3s. He is an avid enthusiast of open-source and open-hardware.

  15. Common questions from prospective customers

    handbook › sales › common_customer_questions
    1. Should I deploy using Docker or to a cluster?

      Of course, if you just prefer deploying on Kubernetes, then starting with the cluster deployment is fine.