30 lines
592 B
YAML
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
|