Skip to content

Commit 3476ee5

Browse files
committed
Lower default storage size
1 parent 9c3e2fd commit 3476ee5

File tree

12 files changed

+51
-30
lines changed

12 files changed

+51
-30
lines changed

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@
33
[![sourcegraph: beta](https://img.shields.io/badge/sourcegraph-beta-blue.svg)](https://sourcegraph.com/github.com/sourcegraph/deploy-sourcegrap-k8s)
44

55
> **Warning**
6-
> The contents of this repository are currently in beta and have not been officially released. While we encourage testing and feedback, please do not use this in production environments. We cannot guarantee support for these beta features and recommend that you use them at your own risk. We will keep you updated as development progresses and official releases become available.
6+
> The contents of this repository are currently in beta and will not be officially released until v4.5.0. While we encourage testing and feedback, please do not use this in production environments. We cannot guarantee support for these beta features and recommend that you use them at your own risk. We will keep you updated as development progresses and official releases become available.
77
88
Deploying Sourcegraph into a Kubernetes cluster is for organizations that need highly scalable and
99
available code search and code intelligence. This repository contains documentation for creating,
1010
updating, and maintaining a Sourcegraph cluster using Kustomize.
1111

12-
For product and [pricing](https://about.sourcegraph.com/pricing/) information, visit
13-
[about.sourcegraph.com](https://about.sourcegraph.com) or [contact
14-
us](https://about.sourcegraph.com/contact/sales) for more information.
15-
1612
- [Installing](https://docs.sourcegraph.com/admin/deploy/kubernetes)
1713
- [Configuring](https://docs.sourcegraph.com/admin/deploy/kubernetes/kustomize/configure)
1814
- [Updating](https://docs.sourcegraph.com/admin/updates/kubernetes)
@@ -22,17 +18,15 @@ us](https://about.sourcegraph.com/contact/sales) for more information.
2218
- [Enterprise Getting Started Guide](https://docs.sourcegraph.com/adopt/enterprise_getting_started_guide#kubernetes-admin) and [Admin guide](https://docs.sourcegraph.com/admin) - useful guides for Sourcegraph admins
2319
- [Metrics](https://docs.sourcegraph.com/admin/observability/metrics) - guidance of metrics that can be used for monitoring Sourcegraph
2420

25-
## Deploying
26-
27-
🚨 **Please use the branch corresponding to the version of Sourcegraph you wish to deploy, e.g. `git checkout v4.5.0`.**
21+
## Deploy
2822

29-
Always refer to the [Sourcegraph Kustomize docs](https://docs.sourcegraph.com/admin/deploy/kubernetes/kustomize) for the latest instructions.
23+
Please refer to the [Sourcegraph Kustomize docs](https://docs.sourcegraph.com/admin/deploy/kubernetes/kustomize) for the latest instructions.
3024

31-
## Upgrading
25+
## Upgrade
3226

33-
When upgrading Sourcegraph, please check [upgrading docs](https://docs.sourcegraph.com/admin/updates/kubernetes) to confirm if manual migrations is necessary.
27+
When upgrading Sourcegraph, please check the [upgrade docs for Kubernetes](https://docs.sourcegraph.com/admin/updates/kubernetes) to confirm if manual migrations is necessary.
3428

35-
## Contributing
29+
## Development
3630

3731
The `dev` branch is used to track development.
3832

@@ -45,3 +39,7 @@ We've made our deployment configurations open source to better serve our custome
4539
## Licensing
4640

4741
The contents of this repository are open-source licensed. However, it makes reference to non-open-source images and actually running Sourcegraph using this repository falls under Sourcegraph's [enterprise license terms](https://about.sourcegraph.com/pricing/).
42+
43+
For product and [pricing](https://about.sourcegraph.com/pricing/) information, visit
44+
[about.sourcegraph.com](https://about.sourcegraph.com) or [contact
45+
us](https://about.sourcegraph.com/contact/sales) for more information.

base/monitoring/prometheus/prometheus.PersistentVolumeClaim.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ spec:
1111
- ReadWriteOnce
1212
resources:
1313
requests:
14-
storage: 200Gi
14+
storage: 50Gi

base/sourcegraph/blobstore/blobstore.PersistentVolumeClaim.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ spec:
1111
- ReadWriteOnce
1212
resources:
1313
requests:
14-
storage: 100Gi
14+
storage: 20Gi

base/sourcegraph/codeinsights-db/codeinsights-db.PersistentVolumeClaim.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ spec:
1111
- ReadWriteOnce
1212
resources:
1313
requests:
14-
storage: 200Gi
14+
storage: 50Gi

base/sourcegraph/codeintel-db/codeintel-db.PersistentVolumeClaim.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ spec:
1111
- ReadWriteOnce
1212
resources:
1313
requests:
14-
storage: 200Gi
14+
storage: 50Gi

base/sourcegraph/redis/redis-cache.PersistentVolumeClaim.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ spec:
1111
- ReadWriteOnce
1212
resources:
1313
requests:
14-
storage: 100Gi
14+
storage: 50Gi

base/sourcegraph/redis/redis-store.PersistentVolumeClaim.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ spec:
1111
- ReadWriteOnce
1212
resources:
1313
requests:
14-
storage: 100Gi
14+
storage: 50Gi

base/sourcegraph/searcher/searcher.StatefulSet.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ spec:
3131
containers:
3232
- name: searcher
3333
env:
34-
# - name: SEARCHER_CACHE_SIZE_MB
35-
# value: "500000"
34+
- name: SEARCHER_CACHE_SIZE_MB
35+
value: "25000"
3636
- name: POD_NAME
3737
valueFrom:
3838
fieldRef:
@@ -74,16 +74,16 @@ spec:
7474
runAsUser: 100
7575
volumeMounts:
7676
- mountPath: /mnt/cache
77-
name: cache-ssd
77+
name: cache
7878
volumes:
7979
- emptyDir: {}
80-
name: cache-ssd
80+
name: cache
8181
volumeClaimTemplates:
8282
- metadata:
83-
name: cache-ssd
83+
name: cache
8484
spec:
8585
accessModes:
8686
- ReadWriteOnce
8787
resources:
8888
requests:
89-
storage: 50G
89+
storage: 30G

base/sourcegraph/symbols/symbols.StatefulSet.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ spec:
2929
containers:
3030
- name: symbols
3131
env:
32-
# - name: SYMBOLS_CACHE_SIZE_MB
33-
# value: "500000"
32+
- name: SYMBOLS_CACHE_SIZE_MB
33+
value: "12000"
3434
- name: POD_NAME
3535
valueFrom:
3636
fieldRef:
@@ -77,18 +77,18 @@ spec:
7777
terminationMessagePolicy: FallbackToLogsOnError
7878
volumeMounts:
7979
- mountPath: /mnt/cache
80-
name: cache-ssd
80+
name: cache
8181
volumes:
82-
- name: cache-ssd
82+
- name: cache
8383
emptyDir: {}
8484
updateStrategy:
8585
type: RollingUpdate
8686
volumeClaimTemplates:
8787
- metadata:
88-
name: cache-ssd
88+
name: cache
8989
spec:
9090
accessModes:
9191
- ReadWriteOnce
9292
resources:
9393
requests:
94-
storage: 50G
94+
storage: 12G

components/services/searcher/deployment/patches/searcher.Deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ spec:
1515
- name: searcher
1616
env:
1717
- name: SEARCHER_CACHE_SIZE_MB
18+
value: null
1819
valueFrom:
1920
resourceFieldRef:
2021
containerName: searcher

0 commit comments

Comments
 (0)