fix: enforce D601 native k3s guards
This commit is contained in:
@@ -43,7 +43,26 @@ KUBECONFIG=/etc/rancher/k3s/k3s.yaml kubectl -n hwlab-dev get deploy,svc,pod -o
|
||||
```
|
||||
|
||||
Do not trust the default `kubectl` context as a DEV runtime signal. On D601 it
|
||||
may point at another cluster such as `docker-desktop`.
|
||||
may point at another cluster such as `docker-desktop`. The 2026-05-23 control
|
||||
plane incident is tracked in
|
||||
[pikasTech/unidesk#138](https://github.com/pikasTech/unidesk/issues/138), with
|
||||
hotfix context in
|
||||
[pikasTech/unidesk#118](https://github.com/pikasTech/unidesk/issues/118):
|
||||
Docker Desktop Kubernetes has been disabled and cleaned, but the default
|
||||
`/home/ubuntu/.kube/config` may still point at the dead
|
||||
`docker-desktop`/`127.0.0.1:11700` entry. Treat that as residual bad config, not
|
||||
as DEV runtime evidence.
|
||||
|
||||
Before any DEV deploy, rollback, smoke, or manual k3s observation, confirm the
|
||||
native node explicitly:
|
||||
|
||||
```sh
|
||||
KUBECONFIG=/etc/rancher/k3s/k3s.yaml kubectl get nodes -o jsonpath='{.items[*].metadata.name}'
|
||||
```
|
||||
|
||||
The result must contain `d601`. Seeing `desktop-control-plane`,
|
||||
`docker-desktop`, or `127.0.0.1:11700` means the command is on the wrong
|
||||
control-plane path and must stop before mutation or acceptance.
|
||||
|
||||
Use the read-only preflight when a runner needs to report k3s visibility:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user