19 lines
475 B
YAML
19 lines
475 B
YAML
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
|