You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/designs/028-generic-baremetal-reboot-provider.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ flowchart TD
33
33
34
34
## Decision
35
35
36
-
Add a **generic provider** (`CSP=generic`) that reboots nodes via a privileged Kubernetes Job. By default the Job runs `chroot /host /sbin/reboot`; deployments can opt into a Linux Magic SysRq reboot for environments where the normal reboot path wedges the node. This follows the Job-based pattern from GPU Reset ([ADR-019](019-janitor-gpu-reset.md)). It is a named provider in the factory switch, just like `aws`, `gcp`, or `kind`.
36
+
Add a **generic provider** (`CSP=generic`) that reboots nodes via a privileged Kubernetes Job. By default the Job runs `chroot /host reboot`; deployments can opt into a Linux Magic SysRq reboot for environments where the normal reboot path wedges the node. This follows the Job-based pattern from GPU Reset ([ADR-019](019-janitor-gpu-reset.md)). It is a named provider in the factory switch, just like `aws`, `gcp`, or `kind`.
37
37
38
38
## Implementation
39
39
@@ -69,7 +69,7 @@ sequenceDiagram
69
69
GP-->>JC: requestID = pre-reboot bootID
70
70
71
71
K8s->>Job: Schedule pod on target node
72
-
Job->>Node: chroot /host /sbin/reboot or echo b > /proc/sysrq-trigger
72
+
Job->>Node: chroot /host reboot or echo b > /proc/sysrq-trigger
73
73
Note over Node: Node reboots, pod is killed
74
74
75
75
Note over Node: Node boots back up, new bootID assigned
@@ -116,7 +116,7 @@ spec:
116
116
containers:
117
117
- name: reboot
118
118
image: busybox:1.37
119
-
command: ["chroot", "/host", "/sbin/reboot"]
119
+
command: ["chroot", "/host", "reboot"]
120
120
securityContext:
121
121
privileged: true
122
122
volumeMounts:
@@ -138,7 +138,7 @@ spec:
138
138
| `ttlSecondsAfterFinished` | `3600` | Auto-cleanup after 1h |
0 commit comments