This repository was archived by the owner on Jun 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathsymbols.Deployment.yaml
More file actions
89 lines (89 loc) · 2.46 KB
/
symbols.Deployment.yaml
File metadata and controls
89 lines (89 loc) · 2.46 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
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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
description: Backend for symbols operations.
kubectl.kubernetes.io/default-container: symbols
labels:
deploy: sourcegraph
sourcegraph-resource-requires: no-cluster-admin
app.kubernetes.io/component: symbols
name: symbols
spec:
minReadySeconds: 10
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: symbols
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
deploy: sourcegraph
app: symbols
spec:
containers:
- name: symbols
env:
- name: SYMBOLS_CACHE_SIZE_MB
valueFrom:
resourceFieldRef:
containerName: symbols
resource: requests.ephemeral-storage
divisor: 1M
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: CACHE_DIR
value: /mnt/cache/$(POD_NAME)
# OTEL_AGENT_HOST must be defined before OTEL_EXPORTER_OTLP_ENDPOINT to substitute the node IP on which the DaemonSet pod instance runs in the latter variable
- name: OTEL_AGENT_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://$(OTEL_AGENT_HOST):4317
image: us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal/symbols:6.3.0@sha256:32a6ddd56f3ff0628d19d1638c717b9c1cf8d65ee4beb3b8b4c4a8bcc64e4607
terminationMessagePolicy: FallbackToLogsOnError
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: 3184
name: http
- containerPort: 6060
name: debug
resources:
limits:
cpu: "2"
ephemeral-storage: "12G"
memory: 2G
requests:
cpu: 500m
ephemeral-storage: "10G"
memory: 500M
volumeMounts:
- mountPath: /mnt/cache
name: cache-ssd
securityContext:
runAsUser: 0
volumes:
- emptyDir: {}
name: cache-ssd