0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

istio + knativeでハマった

Last updated at Posted at 2025-07-15

Istio + Knative で VirtualService でハマった

Istio Gateway と MetalLB を設定して Knative Service を外部公開しようとしたが、external-Gateway用のVirtualService(VS)が生成されず、Pod内のローカルアクセスのみしかできない状態にハマった。

原因

  • Knative の config-domain ConfigMap に外部公開用ドメインが設定するの忘れてた
  • config-domain が未設定のままだと、Knative はデフォルトで {service}.{namespace}.svc.cluster.local のドメインを使う
  • この場合、自動生成される VirtualService の networking.knative.dev/visibilityLocalCluster に設定される
  • そのため、外部 Gateway へはルーティングされず、クラスター内アクセス限定となる

解決方法

  1. knative-serving ネームスペースの config-domain ConfigMap を編集し、外部公開用のドメインを追加する

    kubectl edit configmap config-domain -n knative-serving
    
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?