Skip to content

[BUG] booking-api CrashLoopBackOff — ConfigMap key mismatch #4

Description

@alain-Sortnext

Bug — HIGH

Service: booking-api
Status: CrashLoopBackOff

Problem

infrastructure/kubernetes/deployment.yaml references ConfigMap key DB_HOST but infrastructure/kubernetes/configmap.yaml defines the key as DATABASE_HOST.

Kubernetes cannot inject the environment variable — pod crashes on startup.

Steps to reproduce

kubectl get pods  # shows CrashLoopBackOff
kubectl logs booking-api-<pod-id> --previous
kubectl describe pod booking-api-<pod-id>

Fix

Either rename DATABASE_HOSTDB_HOST in configmap.yaml, or update the deployment to reference DATABASE_HOST.

Business Impact

booking-api is unavailable. All client bookings failing. Part of INC-2024-047 context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcriticalCritical security or reliability issuekubernetesKubernetes related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions