forked from sourcegraph/deploy-sourcegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lang-go.Deployment.yaml
71 lines (71 loc) · 1.68 KB
/
lang-go.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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
description: Go code intelligence provided by xlang-go, but supporting TLS and
WebSockets.
labels:
deploy: lang-go
name: lang-go
spec:
minReadySeconds: 10
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: lang-go
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: lang-go
spec:
containers:
- args:
- go-langserver
- -mode=websocket
- -addr=:7777
- -usebuildserver
- -usebinarypkgcache=false
- -cachedir=$(CACHE_DIR)
- -freeosmemory=false
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: CACHE_DIR
value: /mnt/cache/$(POD_NAME)
image: index.docker.io/sourcegraph/lang-go:insiders@sha256:556d3163389eaa244c996c5c22ea8f5f52c457cd0b94458b38ab8cda27d590b5
livenessProbe:
initialDelaySeconds: 5
tcpSocket:
port: lsp
timeoutSeconds: 5
name: lang-go
ports:
- containerPort: 7777
name: lsp
- containerPort: 6060
name: debug
readinessProbe:
tcpSocket:
port: 7777
terminationMessagePolicy: FallbackToLogsOnError
resources:
limits:
cpu: "8"
memory: 12Gi
requests:
cpu: "1"
memory: 11Gi
volumeMounts:
- mountPath: /mnt/cache
name: cache-ssd
volumes:
- emptyDir: {}
name: cache-ssd