forked from sourcegraph/deploy-sourcegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbundle-manager.Deployment.yaml
71 lines (71 loc) · 1.9 KB
/
bundle-manager.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: Stores and manages precise code intelligence bundles.
labels:
deploy: sourcegraph
sourcegraph-resource-requires: no-cluster-admin
app.kubernetes.io/component: precise-code-intel
name: precise-code-intel-bundle-manager
spec:
minReadySeconds: 10
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: precise-code-intel-bundle-manager
strategy:
type: Recreate
template:
metadata:
labels:
deploy: sourcegraph
app: precise-code-intel-bundle-manager
spec:
containers:
- env:
- name: PRECISE_CODE_INTEL_BUNDLE_DIR
value: /lsif-storage
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
image: index.docker.io/sourcegraph/precise-code-intel-bundle-manager:3.21.1@sha256:f1e1caf98c6d89bc13b0a788c8a00eb1de049d03cf001477411a463e26af02ad
terminationMessagePolicy: FallbackToLogsOnError
name: precise-code-intel-bundle-manager
livenessProbe:
httpGet:
path: /healthz
port: http
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /healthz
port: http
scheme: HTTP
periodSeconds: 5
timeoutSeconds: 5
ports:
- containerPort: 3187
name: http
- containerPort: 6060
name: debug
resources:
limits:
cpu: "2"
memory: 2G
requests:
cpu: 500m
memory: 500M
volumeMounts:
- mountPath: /lsif-storage
name: bundle-manager
securityContext:
runAsUser: 0
volumes:
- name: bundle-manager
persistentVolumeClaim:
claimName: bundle-manager