wip: envoy gatewayの章の追加 - #555
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new hands-on chapter for Envoy Gateway, covering installation, various HTTP routing strategies (basic, path-based, header-based, and weighted), external service routing using the Backend resource, and health check policies. It also includes a detailed section on debugging with the egctl CLI tool. Feedback focuses on improving the tutorial's robustness: specifically, ensuring port 8888 is accessible in cloud environments, correctly handling the installation path of the egctl binary, and providing a command to clean up background port-forward processes during the final step.
|
|
||
| ```sh | ||
| export ENVOY_SERVICE=$(kubectl get svc -n envoy-gateway-system --selector=gateway.envoyproxy.io/owning-gateway-namespace=envoy-gateway-handson,gateway.envoyproxy.io/owning-gateway-name=eg -o jsonpath='{.items[0].metadata.name}') | ||
| kubectl -n envoy-gateway-system port-forward service/${ENVOY_SERVICE} 8888:8080 & |
| ### egctlのインストール | ||
|
|
||
| ```sh | ||
| curl -fsSL https://gateway.envoyproxy.io/get-egctl.sh | VERSION=v1.7.1 bash |
There was a problem hiding this comment.
get-egctl.sh スクリプトは、デフォルトでカレントディレクトリの ./bin/egctl にバイナリをインストールします。そのため、その後の手順(625行目など)で egctl を直接実行すると「command not found」エラーになります。バイナリをパスの通ったディレクトリ(/usr/local/bin など)に移動する手順を追加するか、実行時のパスを ./bin/egctl に修正してください。
| curl -fsSL https://gateway.envoyproxy.io/get-egctl.sh | VERSION=v1.7.1 bash | |
| curl -fsSL https://gateway.envoyproxy.io/get-egctl.sh | VERSION=v1.7.1 bash | |
| sudo mv ./bin/egctl /usr/local/bin/ |
|
|
||
| ハンズオンで作成したリソースを削除します。 | ||
|
|
||
| ```sh |
There was a problem hiding this comment.
* feat: 新しいコンテナポート32081を追加し、ホストポート8081を設定 * fix: Gatewayのポート番号を8080から8081に変更
No description provided.