Skip to main content
In this lesson you’ll:
  • Create a namespace.
  • Deploy an Argo Rollout with a blue/green strategy.
  • Verify the application’s /health endpoint — suitable for use in an AnalysisTemplate and AnalysisRun to gate promotion.
The Rollout below (save as rollout-initial.yaml) runs five replicas of the “highway-animation” app (blue variant), sets a POD_COUNT environment variable, and configures blue/green with manual promotion (autoPromotionEnabled: false) so promotion can be done manually or via an analysis.
Create the namespace and apply the manifest:
Expected output after applying:
Verify pods and services in the namespace:
Example output (NodePort mappings shown):
Open the Argo Rollouts UI and switch to the argo-analysis-lab namespace to confirm the Rollout and blue/green details.
A screenshot of the Argo Rollouts web UI for the "highway-bluegreen" rollout showing a BlueGreen strategy, container image "siddharth67/highway-animation:blue", and a Revision 1 marked stable and active with green checkmarks. The top-right shows the namespace "argo-analysis-lab" and control buttons like Restart, Retry, Abort, and Promote.
Access the app via the active service NodePort on any cluster node: http://<node-ip>:32079 The application exposes a /health endpoint that returns a simple JSON payload:
This /health endpoint is a good target for an Argo Rollouts AnalysisTemplate. An AnalysisRun can query the endpoint and assert that "status" == "OK" before promoting the preview to active.
The Rollout is configured with autoPromotionEnabled: false. Promotion must be performed manually via the Argo Rollouts UI/CLI or gated using an AnalysisRun. Also be cautious exposing NodePorts in production clusters — prefer Ingress or LoadBalancer for controlled external access.
Resources at a glance: Links and references: That’s the health-check setup for this Rollout. You can now author an AnalysisTemplate that probes /health, run an AnalysisRun during promotion, and use its result to gate the transition from preview to active.

Watch Video