-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathworkflow-controller-deployment.yaml
42 lines (42 loc) · 1.21 KB
/
workflow-controller-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: workflow-controller
spec:
selector:
matchLabels:
app: workflow-controller
template:
metadata:
labels:
app: workflow-controller
spec:
serviceAccountName: argo
containers:
- name: workflow-controller
image: argoproj/workflow-controller:v2.12.10
command:
- workflow-controller
args:
- --configmap
- workflow-controller-configmap
- --executor-image
- argoproj/argoexec:v2.12.10
ports:
- name: metrics
containerPort: 9090
# Periodically check we are listening on the metrics port
# causing a restart if it is not OK.
# This takes advantage of the fact that if the metrics service has died,
# then the controller has died.
# In testing, it appears to take 60-90s from failure to restart.
livenessProbe:
httpGet:
port: metrics
path: /metrics
initialDelaySeconds: 30
periodSeconds: 30
securityContext:
runAsNonRoot: true
nodeSelector:
kubernetes.io/os: linux