appsops.observer
← All labs

Kubernetes application / Intermediate / 25–40 min

The application that keeps restarting

A locally deployed application repeatedly exits during startup. Inspect its logs and configuration to restore a healthy pod.

LAB IDapps-01-restarting-podTRACK / appsops.observer
Engineer investigating application systems at a workstation

The scenario

A deployment in a disposable kind cluster cannot stay running after a configuration change. Restore startup without changing the container image or startup command.

Mission objectives

  • Inspect the pod's previous logs and mounted configuration.
  • Correct the application configuration without bypassing the startup check.
  • Confirm the deployment is ready and its application can read the expected message.

Lab README

Restarting Kubernetes pod

A deployment in a disposable kind cluster cannot stay running after a configuration change. Investigate its previous logs and mounted configuration without changing the container image or startup command.

Before you begin

You need Bash, Python 3, Docker, kind and kubectl. Docker must be running; kind and the workload download images. Use a disposable machine and do not reuse the cluster name breakfix-apps-01 or its lab kubeconfig for other work.

Run and clean up

From this directory, run ./setup.sh. Use the printed kubeconfig and namespace breakfix-apps for investigation. After your changes, run ./verify.sh, then ./teardown.sh to remove the lab cluster and its kubeconfig.

View Markdown source ↗

Get the lab

Download and inspect the installer before running it. It checks the archive's SHA-256 digest and refuses to overwrite an existing lab directory.

curl -fsSLO https://devops.download/labs/apps-01-restarting-pod.sh
less apps-01-restarting-pod.sh
bash apps-01-restarting-pod.sh
cd labs/apps-01-restarting-pod
./setup.sh

When you've made your changes, run ./verify.sh. Remove lab resources with ./teardown.sh.

Download the archive instead ↗

Need a nudge?

Hint #1

Inspect the previous container logs and the ConfigMap mounted at /config.

Hint #2

Compare the file requested by the startup command with the keys in the mounted ConfigMap.

Hint #3 · Deep Dive Runbook on opsbreakfix.com

Read the deep dive runbook ↗

Solved it?

Read the Official Root Cause Analysis & Certification Roadmap on opsbreakfix.com

Continue to opsbreakfix.com ↗

OpsBreakFix ecosystem

Explore the sites.

One connected home for operations knowledge and tools.