-
Notifications
You must be signed in to change notification settings - Fork 125
/
Copy pathsourcegraph-frontend.Deployment.yaml
92 lines (92 loc) · 2.29 KB
/
sourcegraph-frontend.Deployment.yaml
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
description: Serves the frontend of Sourcegraph via HTTP(S).
labels:
deploy: sourcegraph
name: sourcegraph-frontend
spec:
minReadySeconds: 10
replicas: 1
revisionHistoryLimit: 10
strategy:
rollingUpdate:
maxSurge: 2
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
app: sourcegraph-frontend
spec:
containers:
- args:
- serve
env:
- name: SOURCEGRAPH_CONFIG_FILE
value: /etc/sourcegraph/config.json
- name: DEPLOY_TYPE
value: datacenter
- name: LSP_PROXY
value: lsp-proxy:4388
- name: PGDATABASE
value: sg
- name: PGHOST
value: pgsql
- name: PGPORT
value: "5432"
- name: PGSSLMODE
value: disable
- name: PGUSER
value: sg
- name: PUBLIC_REPO_REDIRECTS
value: "true"
- name: SRC_GIT_SERVERS
value: gitserver-0.gitserver:3178
# See the customization guide (../../../docs/configure.md) for information
# about how to configure Sourcegraph to use TLS
# - name: TLS_CERT
# valueFrom:
# secretKeyRef:
# key: cert
# name: tls
# - name: TLS_KEY
# valueFrom:
# secretKeyRef:
# key: key
# name: tls
image: sourcegraph/frontend:2.11.0
livenessProbe:
httpGet:
path: /healthz
port: http
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
name: frontend
ports:
- containerPort: 3080
name: http
- containerPort: 3090
name: http-internal
- containerPort: 3443
name: https
resources:
limits:
cpu: "2"
memory: 2G
requests:
cpu: "2"
memory: 1G
volumeMounts:
- mountPath: /etc/sourcegraph
name: sg-config
securityContext:
runAsUser: 0
serviceAccountName: sourcegraph-frontend
volumes:
- configMap:
defaultMode: 464
name: config-file
name: sg-config