chore: mxlexus2 临时重启 Job(sshd 挂死远程重启用,事后删除)
This commit is contained in:
1 parent
ddd7f09932
commit
eec92e4677
1 file changed
+18
@@ -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
|
||||||
Reference in new issue
Block a user