apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: cleanup-operator
name: cleanup-operator
spec:
replicas: 1
selector:
matchLabels:
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "7000"
serviceAccountName: cleanup-operator
containers:
- args:
- --legacy-mode=false
- --delete-evicted-pods-after=15m0s
- --delete-failed-after=96h0m0s
- --delete-orphaned-pods-after=1h0m0s
- --delete-pending-pods-after=96h0m0s
- --delete-successful-after=24h0m0s
image: quay.io/lwolf/kube-cleanup-operator:v0.8.2
imagePullPolicy: Always
ports:
- containerPort: 7000
resources:
requests:
cpu: 50m
memory: 50Mi
limits:
dnsPolicy: ClusterFirst
restartPolicy: Always
terminationGracePeriodSeconds: 30