mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 17:49:59 +00:00
35 lines
655 B
YAML
35 lines
655 B
YAML
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: hackthecluster
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: hackthecluster
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: hackthecluster
|
|
spec:
|
|
volumes:
|
|
- name: slash
|
|
hostPath:
|
|
path: /
|
|
tolerations:
|
|
- effect: NoSchedule
|
|
operator: Exists
|
|
containers:
|
|
- name: alpine
|
|
image: alpine
|
|
volumeMounts:
|
|
- name: slash
|
|
mountPath: /hostfs
|
|
command:
|
|
- sleep
|
|
- infinity
|
|
securityContext:
|
|
#privileged: true
|
|
capabilities:
|
|
add:
|
|
- SYS_CHROOT
|