Kubernetes 2 questions
- #1Crashing Misconfigured Pod
You have a Kubernetes cluster where the deployment webapp in namespace prod is stuck in
CrashLoopBackOff.The application exposes a health check endpoint at
/healthzon port8080. The container image already includes a config directory with the required files, but the deployment configuration has issues preventing the pod from starting correctly.Because the config directory already exists and is used by the application, mounting a
ConfigMapover the entire directory would overwrite it and cause the app to fail. The deployment needs to be fixed so configuration is injected without replacing the existing directory. - #2Pod Viewer Access
A monitoring application needs read-only access to pods in the
demonamespace.