Challenge, Easy,  on  Kubernetes

Manage Static Pod Lifecycle on a Cluster Node

Scenario

Create a static pod named mcp-grafana in the mcp-tool namespace and ensure it runs on node-01."

The container name should be grafana, using the image mcp/grafana:latest, with command ["sh", "-c"] and args ["while true; do sleep 3600; done"].

Apply the labels app: mcp-grafana, tool: grafana, and workload: monitoring.

Save the manifest as mcp-grafana.yaml.

Additionally, delete the pod named ai-data-cplane-01 from the cluster.

Place the manifest directly on node-01 as a static Pod — do not use nodeAffinity, nodeSelector, or taints/tolerations.


Hint 1

Static Pod manifests are placed directly on the node in the kubelet's static Pod directory, usually /etc/kubernetes/manifests/. Use ssh to copy the manifest to node-01.

See the official docs: Static Pods


Test Cases