From d58e223eb2ccef3a1306e2f6da8fb400c7290fa5 Mon Sep 17 00:00:00 2001 From: mohammadVatandoost Date: Sun, 5 Nov 2023 12:13:10 +0100 Subject: [PATCH] update readme --- README.md | 8 ++++++++ deployments/helm/xds-control-plane/values.yaml | 3 ++- .../deployments/helm/xds-grpc-server-example/values.yaml | 1 - 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94a4a7b..fef53c9 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,14 @@ Deploy xds-control-plane with server and client example servoce to k8s make kind/deploy/control-plane ``` +### REST API +You can see the nodes and resources list on port 8080 +```shell +kubectl port-forward svc/xds-control-plane-headless -n control-plane 8080:8080 +``` +Nodes: http://localhost:8080/nodes +Nodes: http://localhost:8080/resources + ### Issues - [] for ADS, the request names must match the snapshot names, if they do not, then the watch is never responded, and it is expected that envoy makes another request. So we can only add service names to the snapshot that client exactly watch. this is wierld. It means if client watch xds-grpc-server-example-headless resource, you can only send listner for this resource (you couldn't resolve all the k8s services) (WARN[0010] ADS mode: not responding to request: "kube-prometheus-prometheus:9090" not listed, ResourceNames: [xds-grpc-server-example-headless:8888] ) diff --git a/deployments/helm/xds-control-plane/values.yaml b/deployments/helm/xds-control-plane/values.yaml index 8132e54..bae1651 100644 --- a/deployments/helm/xds-control-plane/values.yaml +++ b/deployments/helm/xds-control-plane/values.yaml @@ -60,4 +60,5 @@ configMap: LOGGER_LEVEL: "info" XDS_PORT: 8888 GRPC_TIMEOUT: 5 - + REST_API_HTTP_PORT: 8080 + diff --git a/example/server/deployments/helm/xds-grpc-server-example/values.yaml b/example/server/deployments/helm/xds-grpc-server-example/values.yaml index 1b4da50..4baccc3 100644 --- a/example/server/deployments/helm/xds-grpc-server-example/values.yaml +++ b/example/server/deployments/helm/xds-grpc-server-example/values.yaml @@ -58,4 +58,3 @@ configMap: GRPC_LISTENPORT: 8888 GRPC_TIMEOUT: 5 XDS_PORT: 5678 - REST_API_HTTP_PORT: 8080