From eec92e4677b48abbc1268481195587d04c275648 Mon Sep 17 00:00:00 2001 From: ximenchuifeng Date: Tue, 27 Oct 2026 17:01:37 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20mxlexus2=20=E4=B8=B4=E6=97=B6=E9=87=8D?= =?UTF-8?q?=E5=90=AF=20Job(sshd=20=E6=8C=82=E6=AD=BB=E8=BF=9C=E7=A8=8B?= =?UTF-8?q?=E9=87=8D=E5=90=AF=E7=94=A8,=E4=BA=8B=E5=90=8E=E5=88=A0?= =?UTF-8?q?=E9=99=A4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mxlexus2/extras/reboot-job/job.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 environments/mxlexus2/extras/reboot-job/job.yaml diff --git a/environments/mxlexus2/extras/reboot-job/job.yaml b/environments/mxlexus2/extras/reboot-job/job.yaml new file mode 100644 index 0000000..c907a01 --- /dev/null +++ b/environments/mxlexus2/extras/reboot-job/job.yaml @@ -0,0 +1,18 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: node-reboot-once + namespace: mixingx +spec: + backoffLimit: 0 + ttlSecondsAfterFinished: 60 + template: + spec: + hostPID: true + restartPolicy: Never + containers: + - name: reboot + image: mx-imserver-registry.cn-shanghai.cr.aliyuncs.com/library/busybox:1.36 + command: ["nsenter","-t","1","-m","-u","-i","-n","-p","--","systemctl","reboot"] + securityContext: + privileged: true