-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathexecutor.Deployment.yaml
More file actions
66 lines (66 loc) · 1.99 KB
/
executor.Deployment.yaml
File metadata and controls
66 lines (66 loc) · 1.99 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: executor
annotations:
description: Runs sourcegraph executor replicas for batch changes and codeintel auto indexing.
kubectl.kubernetes.io/default-container: executor
labels:
deploy: sourcegraph
sourcegraph-resource-requires: no-cluster-admin
app.kubernetes.io/component: executor
spec:
selector:
matchLabels:
app: executor
minReadySeconds: 10
replicas: 1
revisionHistoryLimit: 10
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: executor
spec:
serviceAccountName: executor
containers:
- name: executor
image: index.docker.io/sourcegraph/executor-kubernetes:6.12.1792@sha256:7dbd2ad48a4b23d1657694c030eb85a53a146a524d28466610db17c517a3a47c
imagePullPolicy: Always
livenessProbe:
exec:
command:
- /usr/bin/pgrep
- -f
- /usr/local/bin/executor
initialDelaySeconds: 15
timeoutSeconds: 5
readinessProbe:
exec:
command:
- /usr/bin/pgrep
- -f
- /usr/local/bin/executor
periodSeconds: 5
terminationMessagePolicy: FallbackToLogsOnError
env:
- name: EXECUTOR_FRONTEND_PASSWORD
valueFrom:
secretKeyRef:
name: executor-secret
key: password
# Refer to https://docs.sourcegraph.com/admin/executors/deploy_executors_binary#step-2-setup-environment-variables on how to populate these variables
envFrom:
- configMapRef:
name: executor-config
volumeMounts:
- mountPath: /data
name: sg-executor-volume
volumes:
- name: sg-executor-volume
persistentVolumeClaim:
claimName: sg-executor-pvc