Skip to content

Conversation

@dhaifley
Copy link
Contributor

@dhaifley dhaifley commented May 20, 2025

Description

  • Add an additional note to the instructions in local_controller.md about the IP address for the XDS service host when debugging a local build of kgateway using a local kind cluster for testing.
  • Add additional steps to local_controller.md for testing a locally running build of kgateway using a local kind cluster and inspecting KRT and XDS snapshots.
  • Fix a reference to Gloo found in the README.md in the test/kubernetes/e2e directory.

Change Type

/kind cleanup
/kind documentation

Changelog

NONE

Copilot AI review requested due to automatic review settings May 20, 2025 19:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates documentation related to local debugging of kgateway, including clarifying the IP address configuration for the xDS service and enhancing the local testing instructions.

  • Updated README to remove an outdated reference to Gloo Gateway.
  • Enhanced local-controller.md with an additional note on the xDS service IP and comprehensive steps for running and inspecting local builds.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/kubernetes/e2e/README.md Removed an outdated reference to Gloo Gateway for clarity.
devel/debugging/local-controller.md Added a note on an alternative xDS service IP and detailed local debugging instructions.

@github-actions github-actions bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note-none kind/documentation labels May 20, 2025
@dhaifley dhaifley force-pushed the docs-local-debugging branch from 7030968 to 25ae970 Compare May 20, 2025 19:05
@dhaifley dhaifley requested a review from Copilot May 20, 2025 19:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds clarification for local debugging of the XDS service host IP and cleans up a stale reference in the end-to-end test README.

  • Clarify alternative IP for KGW_XDS_SERVICE_HOST when running in kind
  • Provide step-by-step instructions to run and inspect local builds and snapshots
  • Fix the “Gloo Gateway” reference in the e2e README

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
test/kubernetes/e2e/README.md Updated generic “installation” wording and removed outdated “Gloo Gateway” reference
devel/debugging/local-controller.md Added alternative XDS host IP note and new section with step-by-step local debugging guide


> Note: `172.17.0.1` is IP address of the `docker0` bridge interface that allows pods running in `Kind` to access the host network, thereby allowing the Gateway proxy to connect to the xDS service running on the host.
> Additional note: Replacing `172.17.0.1` with `192.168.65.254`, as the value for `KGW_XDS_SERVICE_HOST` may help, if the gateway proxy pods in a local kind cluster are unable to connect to the xDS service running on the local machine. `192.168.65.254` is the IP address that `host.docker.internal` resolves to on gateway proxy pods when running in a local kind cluster.
Copy link

Copilot AI May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an explicit command example, e.g., export KGW_XDS_SERVICE_HOST=192.168.65.254, so readers know exactly how to set the environment variable.

Suggested change
> Additional note: Replacing `172.17.0.1` with `192.168.65.254`, as the value for `KGW_XDS_SERVICE_HOST` may help, if the gateway proxy pods in a local kind cluster are unable to connect to the xDS service running on the local machine. `192.168.65.254` is the IP address that `host.docker.internal` resolves to on gateway proxy pods when running in a local kind cluster.
> Additional note: Replacing `172.17.0.1` with `192.168.65.254`, as the value for `KGW_XDS_SERVICE_HOST` may help, if the gateway proxy pods in a local kind cluster are unable to connect to the xDS service running on the local machine. For example, you can set it using the following command:
>
> ```bash
> export KGW_XDS_SERVICE_HOST=192.168.65.254
> ```
>
> `192.168.65.254` is the IP address that `host.docker.internal` resolves to on gateway proxy pods when running in a local kind cluster.

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this suggestion is reasonable to make it easy to c/p the env var.

…ugging local builds, README cleanup

Signed-off-by: David Haifley <[email protected]>
@dhaifley dhaifley force-pushed the docs-local-debugging branch from 25ae970 to 4638300 Compare May 20, 2025 19:12
@shashankram shashankram enabled auto-merge May 21, 2025 15:52
@shashankram shashankram added this pull request to the merge queue May 21, 2025
Merged via the queue into kgateway-dev:main with commit 4682e60 May 21, 2025
26 of 27 checks passed
@dhaifley dhaifley deleted the docs-local-debugging branch May 21, 2025 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/documentation release-note-none

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants