-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
deployment.yaml
44 lines (43 loc) · 1.12 KB
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: pod-cleanup-operator
namespace: pod-cleanup
spec:
replicas: 1
selector:
matchLabels:
app: pod-cleanup-operator
template:
metadata:
labels:
app: pod-cleanup-operator
spec:
serviceAccountName: pod-cleanup-operator
restartPolicy: Always
containers:
- name: operator
image: otherguy/k8s-operator-cleanup:1.0.0
imagePullPolicy: IfNotPresent
args:
# - --namespace=default
- --user
- --graceperiod=300
# - --dry-run
- --quiet
- --interval=60
# - --error-limit=5
- --lifetime-annotation=pod.kubernetes.io/lifetime
- --lifetime-max-kills=2
# - --label-selector='{"app": "my-sample-app"}'
- 'Failed:Shutdown'
- 'Failed:Terminated'
- 'Failed:NodeShutdown'
- 'Failed:Evicted'
resources:
limits:
cpu: 1000m
memory: 128Mi
requests:
cpu: 10m
memory: 64Mi