forked from sourcegraph/deploy-sourcegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lang-typescript.Deployment.yaml
79 lines (79 loc) · 1.97 KB
/
lang-typescript.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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
description: WebSocket language server for JavaScript and TypeScript (used for
live requests).
prometheus.io/port: '6060'
prometheus.io/scrape: 'true'
labels:
app: lang-typescript
deploy: lang-typescript
name: lang-typescript
spec:
minReadySeconds: 5
replicas: 1
selector:
matchLabels:
app: lang-typescript
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: lang-typescript
spec:
containers:
- env:
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: CACHE_DIR
value: /home/node/cache/$(POD_NAME)
image: index.docker.io/sourcegraph/lang-typescript:insiders@sha256:35e4d75c061c310e3996eb618c7bb5899c80785f2ffd29268a0d1a6daeecacfc
imagePullPolicy: IfNotPresent
livenessProbe:
initialDelaySeconds: 10
tcpSocket:
port: wss
timeoutSeconds: 5
name: lang-typescript
ports:
- containerPort: 8080
name: wss
protocol: TCP
- containerPort: 6060
name: debug
protocol: TCP
readinessProbe:
tcpSocket:
port: wss
terminationMessagePolicy: FallbackToLogsOnError
resources:
limits:
cpu: "4"
memory: 5Gi
requests:
cpu: "1"
memory: 2Gi
securityContext:
runAsUser: 0
volumeMounts:
- mountPath: /yarn-config
name: yarn-config
- mountPath: /home/node/cache
name: cache-ssd
securityContext: {}
volumes:
- configMap:
defaultMode: 420
name: yarn-config
name: yarn-config
- emptyDir: {}
name: cache-ssd