Fix RabbitMQ Propagation
ReDeploy RabbitMQ Fix
Rebuild and Redeploy after Saving #
bash
cd ~/workshop/context-propagation
bash scripts/build-images.sh payment-api fulfillment-worker
bash scripts/import-images-k3d.sh payment-api fulfillment-worker
kubectl -n cosmic-shop rollout restart deployment/payment-api
kubectl -n cosmic-shop rollout restart deployment/fulfillment-worker
kubectl -n cosmic-shop rollout status deployment/payment-api --timeout=180s
kubectl -n cosmic-shop rollout status deployment/fulfillment-worker --timeout=180sValidation Checklist #
Run these commands after redeploy completes.
1. Confirm health endpoints report propagation enabled #
bash
kubectl -n cosmic-shop get pods -l app=fulfillment-worker
kubectl -n cosmic-shop exec deploy/fulfillment-worker -- wget -qO- http://localhost:3006/health
kubectl -n cosmic-shop exec deploy/payment-api -- wget -qO- http://localhost:3005/healthjson
{"status":"ok","service":"payment-api","stage":"payment","rabbitmq":true,"propagation":true}
{"status":"ok","service":"fulfillment-worker","stage":"fulfillment","propagation":true}2. Confirm rollouts completed #
bash
kubectl -n cosmic-shop rollout status deployment/payment-api
kubectl -n cosmic-shop rollout status deployment/fulfillment-worker3. Confirm startup logs mention propagation #
bash
kubectl -n cosmic-shop logs deployment/payment-api --tail=3
kubectl -n cosmic-shop logs deployment/fulfillment-worker --tail=3text
RabbitMQ context propagation: ENABLED
RabbitMQ context propagation: ENABLED
