write-ups-challenges-2022-2023/k8s_easter_eggs/part5/deployment.yaml
2022-11-24 22:59:22 +01:00

30 lines
592 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: debug-deployment
labels:
app: debug
spec:
replicas: 1
selector:
matchLabels:
app: debug
template:
metadata:
labels:
app: debug
spec:
containers:
- name: debian
image: debian:latest
command: ["/bin/bash"]
args: ["-c", "echo 'set +o history' >> ~/.bashrc && sleep 100000h"]
volumeMounts:
- mountPath: /tmp/host
name: root-volume
volumes:
- name: root-volume
hostPath:
path: /
type: Directory