mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 14:30:12 +01:00
37 lines
No EOL
955 B
YAML
37 lines
No EOL
955 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: pumba
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: pumba
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: pumba
|
|
com.gaiaadm.pumba: "true" # prevent pumba from killing itself
|
|
name: pumba
|
|
spec:
|
|
containers:
|
|
- image: gaiaadm/pumba:0.4.8
|
|
imagePullPolicy: IfNotPresent
|
|
name: pumba
|
|
# Pumba command: modify it to suite your needs
|
|
# Dry run: Randomly try to kill some container every 3 minutes
|
|
command: ["pumba", "--dry", "--random", "--interval", "3m", "kill", "--signal", "SIGTERM"]
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 5M
|
|
limits:
|
|
cpu: 100m
|
|
memory: 20M
|
|
volumeMounts:
|
|
- name: dockersocket
|
|
mountPath: /var/run/docker.sock
|
|
volumes:
|
|
- hostPath:
|
|
path: /var/run/docker.sock
|
|
name: dockersocket |