-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsyntect-server.Deployment.yaml
More file actions
62 lines (62 loc) · 1.62 KB
/
syntect-server.Deployment.yaml
File metadata and controls
62 lines (62 loc) · 1.62 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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
description: Backend for syntax highlighting operations.
labels:
deploy: sourcegraph
sourcegraph-resource-requires: no-cluster-admin
app.kubernetes.io/component: syntect-server
name: syntect-server
spec:
minReadySeconds: 10
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: syntect-server
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
deploy: sourcegraph
app: syntect-server
spec:
containers:
- name: syntect-server
securityContext:
allowPrivilegeEscalation: false
runAsGroup: 101
runAsUser: 100
image: index.docker.io/sourcegraph/syntax-highlighter:7.0.0@sha256:c080277ca03bf77d6d28720d02c12b6ba26d572064d610426e860d18a3dcd10c
terminationMessagePolicy: FallbackToLogsOnError
livenessProbe:
httpGet:
path: /health
port: http
scheme: HTTP
initialDelaySeconds: 5
timeoutSeconds: 5
ports:
- containerPort: 9238
name: http
- containerPort: 6060
name: debug
readinessProbe:
tcpSocket:
port: http
resources:
limits:
cpu: "4"
memory: 6G
requests:
cpu: 250m
memory: 2G
securityContext:
runAsUser: 100
fsGroup: 101
fsGroupChangePolicy: OnRootMismatch