plano/demos/use_cases/k8s_api
2025-02-20 17:51:10 -08:00
..
arch_config.yaml move to use-cases 2025-02-20 17:45:16 -08:00
docker-compose.yaml move to use-cases 2025-02-20 17:45:16 -08:00
image.png move to use-cases 2025-02-20 17:45:16 -08:00
image2.png move to use-cases 2025-02-20 17:45:16 -08:00
README.md better readme 2025-02-20 17:50:38 -08:00
run_demo.sh move to use-cases 2025-02-20 17:45:16 -08:00
tracing.png add mising file 2025-02-20 17:51:10 -08:00

Kubernetes API Demo

This demo shows how you can use a publicly hosted REST API and interact with it using the Arch Gateway.

Summary

In this demo, you will learn how to set up and run a model server, Arch Gateway, and a Docker container for the UI. You will also learn how to tail access logs for debugging purposes. The demo includes examples of getting namespace details and retrieving pod information from a Kubernetes cluster.

How to run this demo.

Before starting make sure you have completed the pre-requisites here

In separate window start 1) model server, 2) arch gateway 3) docker container for UI and for debugging 4) tail access logs

  1. start model server

    archgw up --service model_server --foreground
    
  2. start arch gateway

    archgw up --service archgw --foreground
    
  3. start docker container for ui

    docker compose up
    
  4. tail access logs

    tail -F ~/archgw_logs/access_*
    

Here is a sample screenshot of the demo in action,

screenshot

  • show usage of get namespace details and get pods Demo Screenshot

Observability

You can see access logs to see details of outbound API calls through arch gateway. You can also see request details using supplied jaeger UI. Following is a screenshot showing one request served through arch gateway,

tracing