サービスとネットワーキング
KubernetesのIngress resourceとGateway APIの違いに関する記述として正しいものはどれか。
- AIngressはL4のみをサポートし、Gateway APIはL7のみをサポートする
- BGateway APIはIngress resourceの後方互換のために定義された旧世代のAPIである
- CIngressはCRDとして追加インストールが必要な拡張リソースであり、Gateway APIはKubernetesのコアAPIに組み込まれている
- ✓Gateway APIはGatewayClass/Gateway/HTTPRouteなど役割を分離した複数のリソースで構成され、Ingressより柔軟なルーティング表現が可能である
解説
Gateway APIはインフラ管理者とアプリケーション開発者の責務を分離するためGatewayClass・Gateway・HTTPRouteなど複数のリソースに分かれており、単一のIngressリソースよりも表現力の高いルーティング設定が可能である。IngressはHTTP(S)を扱うL7向けのコアAPIグループのリソースで、Gateway APIはCRDとして提供される後発のAPIである。
根拠Services & Networking: Use the Gateway API to manage Ingress traffic / Know how to use Ingress controllers and Ingress resources