# The workload waiting for a node

A cache workload never leaves Pending. Its intended placement is the worker
node of this disposable cluster. Investigate scheduler events and restore
placement without changing the Deployment.

## Before you begin

Use a disposable machine with Bash, Python 3, Docker, kind and kubectl. Docker
may download the kind node and workload images. The lab creates a two-node
cluster named `breakfix-apps-02` and a separate kubeconfig and ownership record
under `~/.kube`; it does not modify your default kubeconfig or cloud resources.
Do not use the lab cluster name for other work. Setup refuses to overwrite an
existing cluster or files, and teardown checks the recorded node identities.

## Investigate

Run `./setup.sh`, then inspect the workload and nodes with the dedicated
kubeconfig:

```sh
kubectl --kubeconfig "$HOME/.kube/breakfix-apps-02" -n breakfix-apps-02 get pods -o wide
kubectl --kubeconfig "$HOME/.kube/breakfix-apps-02" -n breakfix-apps-02 describe pod -l app=cache
kubectl --kubeconfig "$HOME/.kube/breakfix-apps-02" get nodes --show-labels
```

In this exercise the worker is the intended destination. Do not remove the
workload's scheduling constraint or change its Deployment. After correcting
the lab's node configuration, run `./verify.sh` and `./teardown.sh`.
Teardown deletes the lab cluster and its two kubeconfig-related files only
when the cluster's recorded node identities still match.
