-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathvalues.yaml
More file actions
1357 lines (1324 loc) · 57.7 KB
/
Copy pathvalues.yaml
File metadata and controls
1357 lines (1324 loc) · 57.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# To customize these values, use an override file:
# https://sourcegraph.com/github.com/sourcegraph/deploy-sourcegraph-helm/-/blob/charts/sourcegraph/README.md#customizations
### Common Configuration ###
sourcegraph:
image:
# -- Global docker image tag
defaultTag: "{{ .Chart.AppVersion }}"
# -- Global docker image pull policy
pullPolicy: IfNotPresent
# -- Global docker image registry or prefix
repository: index.docker.io/sourcegraph
# -- When set to true, sourcegraph.image.defaultTag is used as the default defaultTag for all services, instead of service-specific default defaultTags
useGlobalTagAsDefault: false
# -- Mount named secrets containing docker credentials
imagePullSecrets: []
# -- Add extra labels to all resources
labels: {}
# -- When true, remove all resource stanzas, allowing the scheduler to best-fit pods. Intended for local development with limited resources.
localDevMode: false
# -- Set a custom name for the app.kubernetes.io/name annotation
nameOverride: ""
# -- Global Affinity,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)
affinity: {}
# -- Global NodeSelector,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector)
nodeSelector: {}
# -- Global Tolerations,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/)
tolerations: []
# -- Add extra annotations to attach to all pods
podAnnotations: {}
# -- Add extra labels to attach to all pods
podLabels: {}
# -- Assign a priorityClass to all pods (daemonSets, deployments, and statefulSets)
priorityClassName: ""
# -- Global deployment clean up policy,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#clean-up-policy)
revisionHistoryLimit: 10
# -- Add extra labels to all services
serviceLabels: {}
# -- Disable the creation of Kubernetes secrets objects
disableKubernetesSecrets: false
# Generic application configuration options, used by most applications below
# app: # Generally matches directory name
# replicaCount: 1
#
# image:
# # Application-specific default tag. Overrides the global tag. Do not modify - use tag instead
# defaultTag:
# # Override the default tag on a service-specific basis
# tag:
# # Override the default docker image name
# name:
# # Override the global sourcegraph.image.repository on a service-specific basis
# repository:
#
# # Add additional labels and annotations to various resources
# labels: {}
# podLabels: {}
# podAnnotations: {}
# serviceLabels: {}
# serviceAnnotations: {}
# # Provide custom environment variables
# env: {}
# # Set resource requests / limits
# resources: {}
# containerSecurityContext: {}
# podSecurityContext: {}
# # Add additional volumes and mounts to deployments
# extraVolumeMounts: {}
# extraVolumes: {}
# # Add sidecars
# extraContainers: {}
# # Toggle serviceAccount creation
# serviceAccount.create: true
# # Customize service account name
# serviceAccount.name: ""
# # Override service type (defaults to ClusterIP)
# serviceType: ""
# # Set disk size on PVC's for stateful deployments
# storageSize: ""
# # Optionally bind PVC's to an existing PV
# volumeName: ""
# # Use an existing configmap (specified by name) instead of creating one
# existingConfig: ""
# # Toggle deployment of applications on/off. Applies to databases and third-party applications
# enabled: true
alpine:
# Used in init containers
image:
# -- Docker image tag for the `alpine` image
defaultTag: 6.0.0@sha256:c4705ccf969e262ee3916719ecc7c0fb5e606dd954278ac07ac1d052e4e490df
# -- Docker image name for the `alpine` image
name: "alpine-3.14"
# -- Security context for the `alpine` initContainer,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 999
runAsGroup: 999
readOnlyRootFilesystem: true
# -- Resource requests & limits for the `alpine` initContainer,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: 10m
memory: 50Mi
requests:
cpu: 10m
memory: 50Mi
cadvisor:
# -- Enable `cadvisor`
enabled: true
image:
# -- Docker image tag for the `cadvisor` image
defaultTag: 6.0.0@sha256:48082a2822a727e22c556ae2c3bae5f5bf4528c7b462efc3c085271ee5145be8
# -- Docker image name for the `cadvisor` image
name: "cadvisor"
# -- Name used by resources. Does not affect service names or PVCs.
name: "cadvisor"
podSecurityPolicy:
# -- Enable [PodSecurityPolicy](https://kubernetes.io/docs/concepts/policy/pod-security-policy/) for `cadvisor` pods
enabled: false
# -- Resource requests & limits for the `cadvisor` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: 300m
memory: 2000Mi
requests:
cpu: 150m
memory: 200Mi
serviceAccount:
# -- Enable creation of ServiceAccount for `cadvisor`
create: true
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: cadvisor
# -- Security context for the `cadvisor` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
# You may set `privileged` to `false and `cadvisor` will run with reduced privileges.
# `cadvisor` requires root privileges in order to display provisioning metrics.
# These metrics provide critical information to help you scale the Sourcegraph deployment.
# If you would like to bring your own infrastructure monitoring & alerting solution,
# you may want to disable the `cadvisor` DaemonSet completely
# by setting `cadvisor.enabled=false` in your override file
# You may also run `cadvisor` with reduced privileges by setting
# `cadvisor.containerSecurityContext.privileged=false` in your override file
privileged: true
codeInsightsDB:
# -- Enable `codeinsights-db` PostgreSQL server
enabled: true
auth:
# -- Name of existing secret to use for Code Insights credentials
# The secret must contain the keys `user`, `password`, `database`, `host` and `port`.
# `auth.user`, `auth.password`, etc. are ignored if this is enabled
existingSecret: ""
# -- Sets codeinsights-db database name
database: "postgres"
# -- Sets codeinsights-db host
host: "codeinsights-db"
# -- Sets codeinsights-db username
user: "postgres"
# -- Sets codeinsights-db password
password: "password"
# -- Sets codeinsights-db port
port: "5432"
# -- Sets codeinsights-db SSL mode
sslmode: "disable" # set to "require" to enable SSL
# -- Environment variables for the `codeinsights-db` container
env: {}
# -- Name of existing ConfigMap for `codeinsights-db`. It must contain a `postgresql.conf` key.
existingConfig: "" # Name of an existing configmap
# -- Additional PostgreSQL configuration. This will override or extend our default configuration.
# Notes: This is expecting a multiline string.
# Learn more from our [recommended PostgreSQL configuration](https://docs.sourcegraph.com/admin/config/postgres-conf) and [PostgreSQL documentation](https://www.postgresql.org/docs/12/config-setting.html)
additionalConfig: ""
image:
# -- Docker image tag for the `codeinsights-db` image
defaultTag: 6.0.0@sha256:24263ff136f8cc328d63808982beb4a109461da30b522b63d2867a4e708713c9
# -- Docker image name for the `codeinsights-db` image
name: "postgresql-16-codeinsights"
# -- Security context for the `codeinsights-db` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 70
runAsGroup: 70
readOnlyRootFilesystem: true
init:
# -- Security context for the `alpine` initContainer,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 70
runAsGroup: 70
readOnlyRootFilesystem: true
# -- Configuration for the `pgsql-exporter` sidecar container
postgresExporter: {}
# -- Name used by resources. Does not affect service names or PVCs.
name: "codeinsights-db"
# -- Resource requests & limits for the `codeinsights-db` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: "4"
memory: 2Gi
requests:
cpu: "4"
memory: 2Gi
# -- Security context for the `codeinsights-db` pod,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
podSecurityContext:
runAsUser: 70
fsGroup: 70
fsGroupChangePolicy: "OnRootMismatch"
serviceAccount:
# -- Enable creation of ServiceAccount for `codeinsights-db`
create: false
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: ""
# -- PVC Storage Request for `codeinsights-db` data volume
storageSize: 200Gi
# -- Optional subPath for the `codeinsights-db` primary data volume mount
storageSubPath: ""
# -- Optional annotations to add to the `codeinsights-db` PVC
storageAnnotations: {}
codeIntelDB:
# -- Enable `codeintel-db` PostgreSQL server
enabled: true
auth:
# -- Name of existing secret to use for CodeIntel credentials
# The secret must contain the keys `user`, `password`, `database`, `host` and `port`.
# `auth.user`, `auth.password`, etc. are ignored if this is enabled
existingSecret: ""
# -- Sets codeintel-db database name
database: "sg"
# -- Sets codeintel-db host
host: "codeintel-db"
# -- Sets codeintel-db username
user: "sg"
# -- Sets codeintel-db password
password: "password"
# -- Sets codeintel-db port
port: "5432"
# -- Sets codeintel-db SSL mode
sslmode: "disable" # set to "require" to enable SSL
# -- Name of existing ConfigMap for `codeintel-db`. It must contain a `postgresql.conf` key
existingConfig: ""
# -- Additional PostgreSQL configuration. This will override or extend our default configuration.
# Notes: This is expecting a multiline string.
# Learn more from our [recommended PostgreSQL configuration](https://docs.sourcegraph.com/admin/config/postgres-conf) and [PostgreSQL documentation](https://www.postgresql.org/docs/12/config-setting.html)
additionalConfig: ""
image:
# -- Docker image tag for the `codeintel-db` image
defaultTag: 6.0.0@sha256:224a2604331cb73809f466394c5b4f3ca95bf6a5a140cb75820dfe67301074bb
# -- Docker image name for the `codeintel-db` image
name: "postgresql-16"
# -- Security context for the `codeintel-db` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 999
runAsGroup: 999
readOnlyRootFilesystem: true
# -- Configuration for the `pgsql-exporter` sidecar container
postgresExporter: {}
# -- Name used by resources. Does not affect service names or PVCs.
name: "codeintel-db"
# -- Resource requests & limits for the `codeintel-db` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: "4"
memory: 4Gi
requests:
cpu: "4"
memory: 4Gi
# -- Security context for the `codeintel-db` pod,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
podSecurityContext:
runAsUser: 999
fsGroup: 999
fsGroupChangePolicy: "OnRootMismatch"
serviceAccount:
# -- Enable creation of ServiceAccount for `codeintel-db`
create: false
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: ""
# -- PVC Storage Request for `codeintel-db` data volume
storageSize: 200Gi
# -- Optional subPath for the `codeintel-db` primary data volume mount
storageSubPath: ""
# -- Optional annotations to add to the `codeintel-db` PVC
storageAnnotations: {}
frontend:
# -- Environment variables for the `frontend` container
# @default -- the chart will add some default environment values
env:
DEPLOY_TYPE:
value: helm
GRAFANA_SERVER_URL:
value: http://grafana:30070
JAEGER_SERVER_URL:
value: http://jaeger-query:16686
PROMETHEUS_URL:
value: http://prometheus:30090
image:
# -- Docker image tag for the `frontend` image
defaultTag: 6.0.0@sha256:d4f21178096da5fdb3804099ae9de2e050b06e859a327aa79452b1ea2f3ede0a
# -- Docker image name for the `frontend` image
name: "frontend"
ingress:
# -- Enable ingress for the Sourcegraph server
enabled: true
# -- Annotations for the Sourcegraph server ingress. For example, securing ingress with TLS provided by [cert-manager](https://cert-manager.io/docs/usage/ingress/)
annotations:
# -- [Deprecated annotation](https://kubernetes.io/docs/concepts/services-networking/ingress/#deprecated-annotation) for specifing the IngressClass in Kubernetes 1.17 and earlier.
# If you are using Kubernetes 1.18+, use `ingressClassName` instead and set an override value of `null` for this annotation.
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-body-size: 150m
# -- External hostname for the Sourcegraph server ingress (SSL)
host: ""
# -- IngressClassName for the Ingress (Available in Kubernetes 1.18+)
# If you set this field, set the annotation `frontend.ingress.annotations."kubernetes.io/ingress.class"` to `null`
ingressClassName: null
# -- Secret containing TLS cert. Cannot be set together with `tls`.
tlsSecret: ""
# -- List of hosts for the ingress rules. Supersedes `host` if set.
# Cannot be set together with `host`.
# Example:
# hosts:
# - host: sourcegraph.example.com
hosts: []
# -- Full TLS configuration for the ingress. Supersedes `tlsSecret` if set.
# Cannot be set together with `tlsSecret`.
# Omit `secretName` for controllers that manage certificates themselves (e.g. Tailscale).
# Example:
# tls:
# - hosts:
# - sourcegraph.example.com
# secretName: sourcegraph-tls # optional
tls: []
# -- Security context for the `frontend` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 100
runAsGroup: 101
readOnlyRootFilesystem: true
# -- Disable the roleBinding resource for deployment environments blocking RBAC, ex. OpenShift's default "secure" SCC
createRoleBinding: true
# -- Security context for the `frontend` pod,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
podSecurityContext: {}
# -- Enable creation of Role and RoleBinding (RBAC). Uses [view](https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles) ClusterRole if set to false
privileged: true
# -- Number of `frontend` pod
replicaCount: 2
# -- Name used by resources. Does not affect service names or PVCs.
name: "sourcegraph-frontend"
# -- Resource requests & limits for the `frontend` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: "2"
ephemeral-storage: 8Gi
memory: 4G
requests:
cpu: "2"
ephemeral-storage: 4Gi
memory: 2G
serviceAccount:
# -- Enable creation of ServiceAccount for `frontend`
create: true
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: sourcegraph-frontend
migrator:
# -- Enable [migrator](https://docs.sourcegraph.com/admin/how-to/manual_database_migrations) initContainer in
# `frontend` deployment to perform database migration
enabled: true
image:
# -- Docker image tag for the `migrator` image
defaultTag: 6.0.0@sha256:ec295eb0b743da6bf56777ca6524972267a5c442b0288095e2fe12fce38ebacc
# -- Docker image name for the `migrator` image
name: "migrator"
# -- Environment variables for the `migrator` container
env: {}
# -- Resource requests & limits for the `migrator` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: 500m
memory: 100M
requests:
cpu: 100m
memory: 50M
# -- Security context for the `migrator` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 100
runAsGroup: 101
readOnlyRootFilesystem: true
gitserver:
image:
# -- Docker image tag for the `gitserver` image
defaultTag: 6.0.0@sha256:aec9bf6993c243a283109104cd7c44be3c85680b77e3e8be0c5fba8f01a3bd35
# -- Docker image name for the `gitserver` image
name: "gitserver"
# -- Name of existing Secret that contains SSH credentials to clone repositories.
# It usually contains keys, such as `id_rsa` (private key) and `known_hosts`.
# Learn more from [documentation](https://docs.sourcegraph.com/admin/install/kubernetes/helm#using-ssh-to-clone-repositories)
sshSecret: ""
# -- Security context for the `gitserver` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 100
runAsGroup: 101
readOnlyRootFilesystem: true
# -- Number of `gitserver` pod
replicaCount: 1
# -- Resource requests & limits for the `gitserver` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: "4"
memory: 8G
requests:
cpu: "4"
memory: 8G
# -- Name used by resources. Does not affect service names or PVCs.
name: "gitserver"
# -- Security context for the `gitserver` pod,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
podSecurityContext:
runAsUser: 100
runAsGroup: 101
fsGroup: 101
fsGroupChangePolicy: "OnRootMismatch"
serviceAccount:
# -- Enable creation of ServiceAccount for `gitserver`
create: false
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: ""
# -- PVC Storage Request for `gitserver` data volume
storageSize: 200Gi
# -- Optional subPath for the `gitserver` primary data volume mount
storageSubPath: ""
# -- Optional annotations to add to the `gitserver` PVC
storageAnnotations: {}
grafana:
# -- Enable `grafana` dashboard (recommended)
enabled: true
# -- Sourcegraph Internal - Enable grafana to query pgsql database
# -- NOTE: Create a separate user in the pgsql database with read-only perms on the minimum set of tables
auth:
# -- Name of existing secret to for Grafana to use to connect to the pgsql database
# The secret must contain the keys `user`, `password`, `database`, `host` and `port`.
# `auth.user`, `auth.password`, etc. are ignored if this is enabled
existingSecret: ""
# -- Sets postgres database name
database: ""
# -- Sets postgres host
host: ""
# -- Sets postgres username
user: ""
# -- Sets postgres password
password: ""
# -- Sets postgres port
port: ""
# -- Sets postgres sslmode
sslmode: ""
# -- Name of existing ConfigMap for `grafana`. It must contain a `datasources.yml` key.
existingConfig: "" # Name of an existing configmap
image:
# -- Docker image tag for the `grafana` image
defaultTag: 6.0.0@sha256:e40236d0143d0735ff87374afce95b878b8cde448ef65cfdc7008056a03097e8
# -- Docker image name for the `grafana` image
name: "grafana"
# -- Security context for the `grafana` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 472
runAsGroup: 472
readOnlyRootFilesystem: true
# -- Name used by resources. Does not affect service names or PVCs.
name: "grafana"
# -- Resource requests & limits for the `grafana` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: "1"
memory: 512Mi
requests:
cpu: 100m
memory: 512Mi
# -- Security context for the `grafana` pod,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
podSecurityContext:
runAsUser: 472
runAsGroup: 472
fsGroup: 472
fsGroupChangePolicy: "OnRootMismatch"
serviceAccount:
# -- Enable creation of ServiceAccount for `grafana`
create: true
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: grafana
# -- PVC Storage Request for `grafana` data volume
storageSize: 2Gi
# -- Optional subPath for the `grafana` primary data volume mount
storageSubPath: ""
# -- Optional annotations to add to the `grafana` PVC
storageAnnotations: {}
indexedSearch:
image:
# -- Docker image tag for the `zoekt-webserver` image
defaultTag: 6.0.0@sha256:99038e0ec9bef930030c118d774fcdcd67d7fe57ad4c80d216703a4d29d64323
# -- Docker image name for the `zoekt-webserver` image
name: "indexed-searcher"
# -- Security context for the `zoekt-webserver` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 100
runAsGroup: 101
readOnlyRootFilesystem: true
# -- Name used by resources. Does not affect service names or PVCs.
name: "indexed-search"
# -- Number of `indexed-search` pod
replicaCount: 1
# -- Resource requests & limits for the `zoekt-webserver` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: "2"
memory: 4G
requests:
cpu: 500m
memory: 2G
# -- Security context for the `indexed-search` pod,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
podSecurityContext:
fsGroup: 101
fsGroupChangePolicy: "OnRootMismatch"
serviceAccount:
# -- Enable creation of ServiceAccount for `indexed-search`
create: false
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: ""
# -- PVC Storage Request for `indexed-search` data volume
# The size of disk to used for search indexes.
# This should typically be gitserver disk size multipled by the number of gitserver shards.
storageSize: 200Gi
# -- Optional subPath for the `indexed-search` primary data volume mount
storageSubPath: ""
# -- Optional annotations to add to the `indexed-search` PVC
storageAnnotations: {}
indexedSearchIndexer:
image:
# -- Docker image tag for the `zoekt-indexserver` image
defaultTag: 6.0.0@sha256:11539e07040b85045a9aa07f970aa310066e240dc28e6c9627653ee2bc6e0b91
# -- Docker image name for the `zoekt-indexserver` image
name: "search-indexer"
# -- Security context for the `zoekt-indexserver` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 100
runAsGroup: 101
readOnlyRootFilesystem: true
# -- Resource requests & limits for the `zoekt-indexserver` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
# zoekt-indexserver is CPU bound. The more CPU you allocate to it, the
# lower lag between a new commit and it being indexed for search.
resources:
limits:
cpu: "8"
memory: 8G
requests:
cpu: "4"
memory: 4G
blobstore:
# -- Enable `blobstore` (S3 compatible storage)
enabled: true
image:
# -- Docker image tag for the `blobstore` image
defaultTag: 6.0.0@sha256:82caab40f920282069c84e0e4ca503857926e934c67fb022f6d93823b4ea98b5
# -- Docker image name for the `blobstore` image
name: "blobstore"
# -- Security context for the `blobstore` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 100
runAsGroup: 101
# -- Name used by resources. Does not affect service names or PVCs.
name: "blobstore"
# -- Resource requests & limits for the `blobstore` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: "1"
memory: 500M
requests:
cpu: "1"
memory: 500M
# -- Security context for the `blobstore` pod,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
podSecurityContext:
runAsUser: 100
runAsGroup: 101
fsGroup: 101
fsGroupChangePolicy: "OnRootMismatch"
serviceAccount:
# -- Enable creation of ServiceAccount for `blobstore`
create: false
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: ""
# -- PVC Storage Request for `blobstore` data volume
storageSize: 100Gi
# -- Optional subPath for the `blobstore` primary data volume mount
storageSubPath: ""
# -- Optional annotations to add to the `blobstore` PVC
storageAnnotations: {}
openTelemetry:
enabled: true
image:
# -- Docker image tag for the `otel-collector` image
defaultTag: 6.0.0@sha256:ef3e61a4f0a624523ecdee57d8b7757436c2389e0cf12401b4764d19c826ff8a
# -- Docker image name for the `otel-collector` image
name: "opentelemetry-collector"
gateway:
# -- Name used by resources. Does not affect service names or PVCs.
name: "otel-collector"
# -- Resource requests & limits for the `otel-collector` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: "3"
memory: 3Gi
requests:
cpu: "1"
memory: 1Gi
config:
traces:
# -- Define trace processors.
# Read how to configure sampling in the [OpenTelemetry documentation](https://docs.sourcegraph.com/admin/observability/opentelemetry#sampling-traces)
processors: {}
# -- Define where traces should be exported to.
# Read how to configure different backends in the [OpenTelemetry documentation](https://opentelemetry.io/docs/collector/configuration/#exporters)
exporters: {}
# -- Define the name of a preexisting secret containing TLS certificates for exporters, which will be mounted under "/tls".
# Read more about TLS configuration of exporters in the [OpenTelemetry Collector documentation](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md)
exportersTlsSecretName: ""
serviceAccount:
# -- Enable creation of ServiceAccount for `otel-collector`
create: false
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: ""
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 100
runAsGroup: 101
agent:
# -- Name used by resources. Does not affect service names or PVCs.
name: "otel-agent"
# -- The workload kind for the otel-agent. Valid values are `DaemonSet` and `Deployment`.
# Use `Deployment` in environments where DaemonSets are restricted (e.g. some managed Kubernetes offerings).
# When set to `Deployment`, the otel-agent DaemonSet is not created and application pods send
# traces directly to the existing otel-collector Deployment (otel-collector:4317) instead.
kind: "DaemonSet"
# -- Resource requests & limits for the `otel-agent` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
hostPorts:
grpcOtlp: 4317
httpOtlp: 4318
httpZpages: 55679
resources:
limits:
cpu: "500m"
memory: 500Mi
requests:
cpu: "100m"
memory: 100Mi
serviceAccount:
# -- Enable creation of ServiceAccount for `otel-agent`
create: false
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: ""
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 100
runAsGroup: 101
nodeExporter:
# -- Enable `node-exporter`
enabled: true
image:
# -- Docker image tag for the `node-exporter` image
defaultTag: 6.0.0@sha256:099c2e4fb8eacdda82d2d4798591808ded7ad3dc5e6ed514535e0b8e7223ed06
# -- Docker image name for the `node-exporter` image
name: "node-exporter"
# -- Name used by resources. Does not affect service names or PVCs.
name: "node-exporter"
podSecurityPolicy:
# -- Enable [PodSecurityPolicy](https://kubernetes.io/docs/concepts/policy/pod-security-policy/) for `node-exporter` pods
enabled: false
# -- Resource requests & limits for the `node-exporter` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: ".2"
memory: 100Mi
serviceAccount:
# -- Enable creation of ServiceAccount for `node-exporter`
create: false
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: node-exporter
# Share the host process ID namespace.
hostPID: true
## Additional container arguments for the node-exporter container
extraArgs: []
# - --collector.diskstats.ignored-devices=^(ram|loop|fd|(h|s|v)d[a-z]|nvme\\d+n\\d+p)\\d+$
# - --collector.textfile.directory=/run/prometheus
# -- Security context for the `node-exporter` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 65534
runAsGroup: 65534
readOnlyRootFilesystem: true
# -- Security context for the `node-exporter` pod,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
podSecurityContext:
fsGroup: 65534
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
pgsql:
# -- Enable `pgsql` PostgreSQL server
enabled: true
auth:
# -- Name of existing secret to use for Postgres credentials
# The secret must contain the keys `user`, `password`, `database`, `host` and `port`.
# `auth.user`, `auth.password`, etc. are ignored if this is enabled
existingSecret: ""
# -- Sets postgres database name
database: "sg"
# -- Sets postgres host
host: "pgsql"
# -- Sets postgres username
user: "sg"
# -- Sets postgres password
password: "password"
# -- Sets postgres port
port: "5432"
# -- Sets postgres SSL mode
sslmode: "disable" # set to "require" to enable SSL
# -- Name of existing ConfigMap for `pgsql`. It must contain a `postgresql.conf` key
existingConfig: "" # Name of an existing configmap
# -- Additional PostgreSQL configuration. This will override or extend our default configuration.
# Notes: This is expecting a multiline string.
# Learn more from our [recommended PostgreSQL configuration](https://docs.sourcegraph.com/admin/config/postgres-conf) and [PostgreSQL documentation](https://www.postgresql.org/docs/12/config-setting.html)
additionalConfig: ""
image:
# -- Docker image tag for the `pgsql` image
defaultTag: 6.0.0@sha256:224a2604331cb73809f466394c5b4f3ca95bf6a5a140cb75820dfe67301074bb
# -- Docker image name for the `pgsql` image
name: "postgresql-16"
# -- Security context for the `pgsql` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 999
runAsGroup: 999
readOnlyRootFilesystem: true
# -- Configuration for the `pgsql-exporter` sidecar container
postgresExporter: {}
# -- Name used by resources. Does not affect service names or PVCs.
name: "pgsql"
# -- Resource requests & limits for the `pgsql` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: "4"
memory: 4Gi
requests:
cpu: "4"
memory: 4Gi
# -- Security context for the `pgsql` pod,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
podSecurityContext:
# Required to prevent escalations to root.
runAsUser: 999
runAsGroup: 999
fsGroup: 999
fsGroupChangePolicy: "OnRootMismatch"
serviceAccount:
# -- Enable creation of ServiceAccount for `pgsql`
create: false
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: ""
# -- PVC Storage Request for `pgsql` data volume
storageSize: 200Gi
# -- Optional subPath for the `pgsql` primary data volume mount
storageSubPath: ""
# -- Optional annotations to add to the `pgsql` PVC
storageAnnotations: {}
postgresExporter:
image:
# -- Docker image tag for the `pgsql-exporter` image
defaultTag: 6.0.0@sha256:685a18f482e4a71a54e15814ffd6b8cd62844f6af056a81f7ec0ba5cf23fce27
# -- Docker image name for the `pgsql-exporter` image
name: "postgres_exporter"
# -- Resource requests & limits for the `pgsql-exporter` sidecar container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: 10m
memory: 50Mi
requests:
cpu: 10m
memory: 50Mi
syntacticCodeIntel:
enabled: false
properties:
# -- port to whick worker API will bind
workerPort: 3188
image:
# -- Docker image tag for the `syntactic-code-intel-worker` image
defaultTag: 6.0.0@sha256:50bdeb38b196f0fc21404969016bf8263f78144292e905867e93480f66c8251c
# -- Docker image name for the `syntactic-code-intel-worker` image
name: "syntactic-code-intel-worker"
# -- Security context for the `syntactic-code-intel-worker` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 100
runAsGroup: 101
readOnlyRootFilesystem: true
# -- Name used by resources. Does not affect service names or PVCs.
name: "syntactic-code-intel-worker"
# -- Security context for the `syntactic-code-intel-worker` pod,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
podSecurityContext: {}
# -- Number of `syntactic-code-intel-worker` pod
replicaCount: 2
# -- Resource requests & limits for the `syntactic-code-intel-worker` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: "2"
memory: 4G
requests:
cpu: 500m
memory: 2G
serviceAccount:
# -- Enable creation of ServiceAccount for `syntactic-code-intel-worker`
create: false
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: ""
preciseCodeIntel:
# -- Environment variables for the `precise-code-intel-worker` container
env:
NUM_WORKERS:
value: "4"
image:
# -- Docker image tag for the `precise-code-intel-worker` image
defaultTag: 6.0.0@sha256:3a72cf893cb25731d4636593c544c91781d925d867417416255e56debc27ed37
# -- Docker image name for the `precise-code-intel-worker` image
name: "precise-code-intel-worker"
# -- Security context for the `precise-code-intel-worker` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 100
runAsGroup: 101
readOnlyRootFilesystem: true
# -- Name used by resources. Does not affect service names or PVCs.
name: "precise-code-intel-worker"
# -- Security context for the `precise-code-intel-worker` pod,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
podSecurityContext: {}
# -- Number of `precise-code-intel-worker` pod
replicaCount: 2
# -- Resource requests & limits for the `precise-code-intel-worker` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
resources:
limits:
cpu: "2"
memory: 4G
requests:
cpu: 500m
memory: 2G
serviceAccount:
# -- Enable creation of ServiceAccount for `precise-code-intel-worker`
create: false
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: ""
prometheus:
# -- Enable `prometheus` (recommended)
enabled: true
# -- Name of existing ConfigMap for `pgsql`. It must contain a `prometheus.yml` key
existingConfig: "" # Name of an existing configmap
image:
# -- Docker image tag for the `prometheus` image
defaultTag: 6.0.0@sha256:86a315720fd9813d9ef9746d92e637bc20cd9ebd90da78d8cc6906062252891f
# -- Docker image name for the `prometheus` image
name: "prometheus"
# -- Security context for the `prometheus` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
containerSecurityContext:
allowPrivilegeEscalation: false
runAsUser: 100
runAsGroup: 100
# Read-only filesystem not supported for the prometheus container,
# see [sourcegraph/issues/34012](https://github.com/sourcegraph/sourcegraph/issues/34012) for more information
readOnlyRootFilesystem: false
# -- Name used by resources. Does not affect service names or PVCs.
name: "prometheus"
# -- Enable RBAC for `prometheus`
privileged: true
# -- Disable the creation of a RoleBinding object, for customers who block all RBAC resource creation
createRoleBinding: true
# -- Resource requests & limits for the `prometheus` container,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
# Prometheus is relied upon to monitor services for sending alerts to site admins when
# something is wrong with Sourcegraph, thus its memory requests and limits are the same to
# guarantee it has enough memory to perform its job reliably and prevent conflicts with
# other pods on the same host node.
#
# The limit chosen here is based on what works reliably on Sourcegraph.com with lots
# of traffic.
resources:
limits:
cpu: "2"
memory: 6G
requests:
cpu: 500m
memory: 6G
# -- Security context for the `prometheus` pod,
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
podSecurityContext:
fsGroup: 100
fsGroupChangePolicy: "OnRootMismatch"
serviceAccount:
# -- Enable creation of ServiceAccount
create: true
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: prometheus
# -- PVC Storage Request for `prometheus` data volume
storageSize: 200Gi
# -- Optional subPath for the `prometheus` primary data volume mount
storageSubPath: ""
# -- Optional annotations to add to the `prometheus` PVC
storageAnnotations: {}
redisCache:
# -- Enable `redis-cache` Redis server
enabled: true
image:
# -- Docker image tag for the `redis-cache` image
defaultTag: 6.0.0@sha256:40ea19e8944b93e05d7697c808969fe0c81a014a56245f3a97b645aa34a9ab78
# -- Docker image name for the `redis-cache` image
name: "redis-cache"
connection:
# -- Name of existing secret to use for Redis endpoint
# The secret must contain the key `endpoint` and should follow IANA specification
# learn more from the [Helm docs](https://docs.sourcegraph.com/admin/install/kubernetes/helm#using-external-redis-instances)
existingSecret: ""
# -- Endpoint to use for redis-cache. Supports either host:port or IANA specification
endpoint: "redis-cache:6379"