This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
gitops-tbrnt/kube-cleanup-operator/deployment.yaml
Renovate Bot 0d12b01993
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Update quay.io/lwolf/kube-cleanup-operator Docker tag to v0.8.1
2020-07-30 09:00:40 +00:00

49 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: cleanup-operator
name: cleanup-operator
spec:
replicas: 1
selector:
matchLabels:
run: cleanup-operator
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
run: cleanup-operator
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "7000"
spec:
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.1
imagePullPolicy: Always
name: cleanup-operator
ports:
- containerPort: 7000
resources:
requests:
cpu: 50m
memory: 50Mi
limits:
cpu: 50m
memory: 50Mi
dnsPolicy: ClusterFirst
restartPolicy: Always
terminationGracePeriodSeconds: 30