Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# [BETA] Deploy Sourcegraph with Kustomize
# Deploy Sourcegraph on Kubernetes with Kustomize

[![sourcegraph: beta](https://img.shields.io/badge/sourcegraph-beta-blue.svg)](https://sourcegraph.com/github.com/sourcegraph/deploy-sourcegrap-k8s)
[![sourcegraph: search](https://img.shields.io/badge/sourcegraph-search-brightgreen.svg)](https://sourcegraph.com/github.com/sourcegraph/deploy-sourcegraph-k8s) [![master build status](https://badge.buildkite.com/018ed23ed79d7297e7dd109b745597c58d875323fb06e81786.svg?branch=main)](https://buildkite.com/sourcegraph/deploy-sourcegraph-k8s)

> **Note**
> This deployment method only supports Sourcegraph version 4.5.0 and above.
> This deployment method only supports **Sourcegraph version 4.5.0 and above**.

Deploying Sourcegraph into a Kubernetes cluster is for organizations that need highly scalable and
available code search and code intelligence. This repository contains documentation for creating,
Expand Down Expand Up @@ -32,7 +32,9 @@ We've made our deployment configurations open source to better serve our custome

## Questions & Issues

[Open an issue (in sourcegraph/sourcegraph)](https://github.com/sourcegraph/sourcegraph/issues/new?assignees=&labels=deploy-sourcegraph-k8s&template=deploy-sourcegraph.md&title=%5Bdeploy-sourcegraph%5D) or contact us (support@sourcegraph.com), we are happy to help!
[Open an issue (in sourcegraph/sourcegraph)](https://github.com/sourcegraph/sourcegraph/issues/new?assignees=&labels=deploy-sourcegraph-k8s&template=deploy-sourcegraph.md&title=%5Bdeploy-sourcegraph%5D).

For urgent issues, please contact us at support@sourcegraph.com --we are happy to help!

## Licensing

Expand Down
6 changes: 6 additions & 0 deletions components/clusters/k3s/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ components:
- ../../storage-class/k3s
patches:
- path: patches/sourcegraph-frontend.Ingress.yaml
# k3s deploy type added in 5.0.0
configMapGenerator:
- name: sourcegraph-frontend-env
behavior: merge
literals:
- DEPLOY_TYPE=k3s
4 changes: 2 additions & 2 deletions examples/k3s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ You can generate the manifests without cloning the repository using the kustomiz

```sh
# Replace xs with your instance size
# Replace v4.5.0 to a version branch that support this overlay
kubectl kustomize https://github.com/sourcegraph/deploy-sourcegraph-k8s/examples/k3s/xs?ref=v4.5.0 -o cluster.yaml
# Replace v5.0.0 to a version branch (must be 4.5.0 or above) that support this overlay
kubectl kustomize https://github.com/sourcegraph/deploy-sourcegraph-k8s/examples/k3s/xs?ref=v5.0.0 -o cluster.yaml
```

The manifests will be grouped and exported to the cluster.yaml file in the directory where you run the command from.
5 changes: 0 additions & 5 deletions examples/k3s/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,3 @@ components:
- ../../components/clusters/k3s
- ../../components/privileged
- ../../components/enable/service-discovery
# configMapGenerator:
# - name: sourcegraph-frontend-env
# behavior: merge
# literals:
# - DEPLOY_TYPE=K3s
5 changes: 0 additions & 5 deletions examples/k3s/l/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,3 @@ components:
- ../../../components/clusters/k3s
- ../../../components/privileged
- ../../../components/enable/service-discovery
# configMapGenerator:
# - name: sourcegraph-frontend-env
# behavior: merge
# literals:
# - DEPLOY_TYPE=K3s
5 changes: 0 additions & 5 deletions examples/k3s/m/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,3 @@ components:
- ../../../components/clusters/k3s
- ../../../components/privileged
- ../../../components/enable/service-discovery
# configMapGenerator:
# - name: sourcegraph-frontend-env
# behavior: merge
# literals:
# - DEPLOY_TYPE=K3s
5 changes: 0 additions & 5 deletions examples/k3s/s/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,3 @@ components:
- ../../../components/clusters/k3s
- ../../../components/privileged
- ../../../components/enable/service-discovery
# configMapGenerator:
# - name: sourcegraph-frontend-env
# behavior: merge
# literals:
# - DEPLOY_TYPE=K3s
5 changes: 0 additions & 5 deletions examples/k3s/xl/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,3 @@ components:
- ../../../components/clusters/k3s
- ../../../components/privileged
- ../../../components/enable/service-discovery
# configMapGenerator:
# - name: sourcegraph-frontend-env
# behavior: merge
# literals:
# - DEPLOY_TYPE=K3s
5 changes: 0 additions & 5 deletions examples/k3s/xs/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,3 @@ components:
- ../../../components/clusters/k3s
- ../../../components/privileged
- ../../../components/enable/service-discovery
# configMapGenerator:
# - name: sourcegraph-frontend-env
# behavior: merge
# literals:
# - DEPLOY_TYPE=K3s
4 changes: 2 additions & 2 deletions examples/privileged/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ You can generate the manifests without cloning the repository using the kustomiz

```sh
# Replace xs with your instance size
# Replace v4.5.0 to a version branch that support this overlay
kubectl kustomize https://github.com/sourcegraph/deploy-sourcegraph-k8s/examples/privileged/xs?ref=v4.5.0 -o cluster.yaml
# Replace v5.0.0 to a version branch (must be 4.5.0 or above) that support this overlay
kubectl kustomize https://github.com/sourcegraph/deploy-sourcegraph-k8s/examples/privileged/xs?ref=v5.0.0 -o cluster.yaml
```

The manifests will be grouped and exported to the cluster.yaml file in the directory where you run the command from.