/
repo-updater.Deployment.yaml
71 lines (71 loc) · 2.02 KB
/
repo-updater.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: Handles repository metadata (not Git data) lookups and updates from external code hosts and other similar services.
kubectl.kubernetes.io/default-container: repo-updater
labels:
deploy: sourcegraph
sourcegraph-resource-requires: no-cluster-admin
app.kubernetes.io/component: repo-updater
name: repo-updater
spec:
minReadySeconds: 10
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: repo-updater
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
deploy: sourcegraph
app: repo-updater
spec:
containers:
- name: repo-updater
image: index.docker.io/sourcegraph/repo-updater:insiders@sha256:7b23c97ddb91bc354b3fee6f5a87fb3221936208e6d9b07acc7d7c1916247fff
env:
# 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
terminationMessagePolicy: FallbackToLogsOnError
ports:
- containerPort: 3182
name: http
- containerPort: 6060
name: debug
readinessProbe:
failureThreshold: 3
httpGet:
path: /ready
port: debug
scheme: HTTP
periodSeconds: 1
timeoutSeconds: 5
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: debug
scheme: HTTP
periodSeconds: 1
timeoutSeconds: 5
resources:
limits:
cpu: "1"
memory: 2Gi
requests:
cpu: "1"
memory: 500Mi
securityContext:
runAsUser: 0