コンテンツにスキップ
Kong Logo | Kong Docs Logo
  • ドキュメント
    • API仕様を確認する
      View all API Specs すべてのAPI仕様を表示 View all API Specs arrow image
    • ドキュメンテーション
      API Specs
      Kong Gateway
      軽量、高速、柔軟なクラウドネイティブAPIゲートウェイ
      Kong Konnect
      SaaSのエンドツーエンド接続のための単一プラットフォーム
      Kong AI Gateway
      GenAI インフラストラクチャ向けマルチ LLM AI Gateway
      Kong Mesh
      Kuma と Envoy をベースにしたエンタープライズサービスメッシュ
      decK
      Kongの構成を宣言型で管理する上で役立ちます
      Kong Ingress Controller
      Kubernetesクラスタ内で動作し、Kongをプロキシトラフィックに設定する
      Kong Gateway Operator
      YAMLマニフェストを使用してKubernetes上のKongデプロイメントを管理する
      Insomnia
      コラボレーティブAPI開発プラットフォーム
  • Plugin Hub
    • Plugin Hubを探索する
      View all plugins すべてのプラグインを表示 View all plugins arrow image
    • 機能性 すべて表示 View all arrow image
      すべてのプラグインを表示
      AI's icon
      AI
      マルチ LLM AI Gatewayプラグインを使用してAIトラフィックを管理、保護、制御する
      認証's icon
      認証
      認証レイヤーでサービスを保護する
      セキュリティ's icon
      セキュリティ
      追加のセキュリティレイヤーでサービスを保護する
      トラフィック制御's icon
      トラフィック制御
      インバウンドおよびアウトバウンドAPIトラフィックの管理、スロットル、制限
      サーバーレス's icon
      サーバーレス
      他のプラグインと組み合わせてサーバーレス関数を呼び出します
      分析と監視's icon
      分析と監視
      APIとマイクロサービストラフィックを視覚化、検査、監視
      変革's icon
      変革
      Kongでリクエストとレスポンスをその場で変換
      ログ記録's icon
      ログ記録
      インフラストラクチャに最適なトランスポートを使用して、リクエストと応答データをログに記録します
  • サポート
  • コミュニティ
  • Kongアカデミー
デモを見る 無料トライアルを開始
1.3.x
  • Home icon
  • Kong Gateway Operator
  • Get Started
  • Kong Ingress Controller
  • Create a Gateway
report-issue問題を報告する
  • Kong Gateway
  • Kong Konnect
  • Kong Mesh
  • Kong AI Gateway
  • Plugin Hub
  • decK
  • Kong Ingress Controller
  • Kong Gateway Operator
  • Insomnia
  • Kuma

  • ドキュメント投稿ガイドライン
  • 1.6.x (latest)
  • 1.5.x
  • 1.4.x
  • 1.3.x
  • 1.2.x
  • 1.1.x
  • 1.0.x
  • Introduction
    • Overview
    • Deployment Topologies
      • Hybrid Mode
      • DB-less Mode
    • Key Concepts
      • Gateway API
      • Gateway Configuration
      • Managed Gateways
    • Changelog
    • Version Support Policy
    • FAQ
  • Get Started
    • Konnect
      • Install Gateway Operator
      • Deploy a Data Plane
      • Create a Route
    • Kong Ingress Controller
      • Install Gateway Operator
      • Create a Gateway
      • Create a Route
  • Production Deployment
    • Overview
    • Install
    • Enterprise License
    • Monitoring
      • Metrics
      • Status fields
        • Overview
        • DataPlane
        • ControlPlane
        • Gateway
    • Upgrade Gateway Operator
  • Guides
    • AI Gateway
    • Customization
      • Set data plane image
      • Deploying Sidecars
      • Customizing PodTemplateSpec
    • Autoscaling Kong Gateway
    • Autoscaling Workloads
      • Overview
      • Prometheus
      • Datadog
    • Upgrading Data Planes
      • Rolling Deployment
      • Blue / Green Deployment
  • Reference
    • Custom Resources
      • Overview
      • GatewayConfiguration
      • ControlPlane
      • DataPlane
    • Configuration Options
    • License
    • Version Compatibility
enterprise-switcher-icon 次に切り替える: OSS
On this pageOn this page
  • GatewayConfiguration
  • GatewayClass

このページは、まだ日本語ではご利用いただけません。翻訳中です。

旧バージョンのドキュメントを参照しています。 最新のドキュメントはこちらをご参照ください。

Create a Gateway

Creating GatewayClass and Gateway resources in Kubernetes causes Kong Gateway Operator to create a Kong Ingress Controller and Kong Gateway deployment.

GatewayConfiguration

You can customize your Kong Ingress Controller and Kong Gateway deployments using the GatewayConfiguration CRD. This allows you to control the image being used, and set any required environment variables. If you are creating a KIC in Konnect deployment, you need to customize the deployment to contain your control plane ID and authentication certificate.

Konnect
On-Prem

To get the endpoint and the authentication details of the data plane.

  1. Log in to Konnect.
  2. Navigate to runtimes icon Gateway Manager, click New Control Plane and select Kong Ingress Controller.
  3. Enter a name for your new control plane.
  4. In the Connect to KIC section, click Generate Script.
  5. Click Generate Certificate in step 3.
  6. Save the contents of Cluster Certificate in a file named tls.crt. Save the contents of Cluster Key in a file named tls.key.
  7. Create a Kubernetes secret containing the cluster certificate:

     kubectl create secret tls konnect-client-tls --cert=./tls.crt --key=./tls.key
    
  8. In the Install the KIC step 4, find the value of controlPlaneID. Replace YOUR_CP_ID with the control plane ID in the following manifest.
  9. In the Install the KIC step 4, find the value of cluster_telemetry_endpoint. The first segment of that value is the control plane endpoint for your cluster. For example, if the value of cluster_telemetry_endpoint is 36fc5d01be.us.cp0.konghq.com, then the control plane endpoint of the cluster is 36fc5d01be. Replace YOUR_CP_ENDPOINT with your control plane ID in the following manifest.
  10. Deploy the data plane with kubectl apply:

     echo 'kind: GatewayConfiguration
     apiVersion: gateway-operator.konghq.com/v1beta1
     metadata:
       name: kong
       namespace: default
     spec:
       controlPlaneOptions:
         deployment:
           podTemplateSpec:
             spec:
               containers:
               - name: controller
                 image: kong/kubernetes-ingress-controller:3.4.4
                 env:
                   - name: CONTROLLER_KONNECT_ADDRESS
                     value: https://us.kic.api.konghq.com
                   - name: CONTROLLER_KONNECT_LICENSING_ENABLED
                     value: "true"
                   - name: CONTROLLER_KONNECT_RUNTIME_GROUP_ID
                     value: YOUR_CP_ID
                   - name: CONTROLLER_KONNECT_SYNC_ENABLED
                     value: "true"
                   - name: CONTROLLER_KONNECT_TLS_CLIENT_CERT
                     valueFrom:
                       secretKeyRef:
                         key: tls.crt
                         name: konnect-client-tls
                   - name: CONTROLLER_KONNECT_TLS_CLIENT_KEY
                     valueFrom:
                       secretKeyRef:
                         key: tls.key
                         name: konnect-client-tls
                 volumeMounts:
                   - name: cluster-certificate
                     mountPath: /var/cluster-certificate
               volumes:
               - name: cluster-certificate
       dataPlaneOptions:
         deployment:
           podTemplateSpec:
             spec:
               containers:
               - name: proxy
                 image: kong/kong-gateway:3.10.0.1
                 env:
                   - name: KONG_DATABASE
                     value: "off"
                   - name: KONG_CLUSTER_CONTROL_PLANE
                     value: YOUR_CP_ENDPOINT.us.cp0.konghq.com:443
                   - name: KONG_CLUSTER_SERVER_NAME
                     value: YOUR_CP_ENDPOINT.us.cp0.konghq.com
                   - name: KONG_CLUSTER_TELEMETRY_ENDPOINT
                     value: YOUR_CP_ENDPOINT.us.tp0.konghq.com:443
                   - name: KONG_CLUSTER_TELEMETRY_SERVER_NAME
                     value: YOUR_CP_ENDPOINT.us.tp0.konghq.com
                   - name: KONG_CLUSTER_MTLS
                     value: pki
                   - name: KONG_CLUSTER_CERT
                     value: /etc/secrets/konnect-client-tls/tls.crt
                   - name: KONG_CLUSTER_CERT_KEY
                     value: /etc/secrets/konnect-client-tls/tls.key
                   - name: KONG_LUA_SSL_TRUSTED_CERTIFICATE
                     value: system
                   - name: KONG_KONNECT_MODE
                     value: "on"
                   - name: KONG_VITALS
                     value: "off"
                 volumeMounts:
                   - name: cluster-certificate
                     mountPath: /var/cluster-certificate
                   - name: konnect-client-tls
                     mountPath: /etc/secrets/konnect-client-tls/
                     readOnly: true
               volumes:
               - name: cluster-certificate
               - name: konnect-client-tls
                 secret:
                   secretName: konnect-client-tls
                   defaultMode: 420' | kubectl apply -f -
    

Use the following example to customize the log level of Kong Ingress Controller:

echo 'kind: GatewayConfiguration
apiVersion: gateway-operator.konghq.com/v1beta1
metadata:
  name: kong
  namespace: default
spec:
  dataPlaneOptions:
    deployment:
      podTemplateSpec:
        spec:
          containers:
          - name: proxy
            image: kong:3.9.0
  controlPlaneOptions:
    deployment:
      podTemplateSpec:
        spec:
          containers:
          - name: controller
            image: kong/kubernetes-ingress-controller:3.4.4
            env:
            - name: CONTROLLER_LOG_LEVEL
              value: debug' | kubectl apply -f -

The results should look like this:

gatewayconfiguration.gateway-operator.konghq.com/kong created

GatewayClass

To use the Gateway API resources to configure your routes, you need to create a GatewayClass instance and create a Gateway resource that listens on the ports that you need.

echo '
kind: GatewayClass
apiVersion: gateway.networking.k8s.io/v1
metadata:
  name: kong
spec:
  controllerName: konghq.com/gateway-operator
  parametersRef:
    group: gateway-operator.konghq.com
    kind: GatewayConfiguration
    name: kong
    namespace: default
---
kind: Gateway
apiVersion: gateway.networking.k8s.io/v1
metadata:
  name: kong
  namespace: default
spec:
  gatewayClassName: kong
  listeners:
  - name: http
    protocol: HTTP
    port: 80' | kubectl apply -f -

The results should look like this:

gatewayclass.gateway.networking.k8s.io/kong created
gateway.gateway.networking.k8s.io/kong created

You can verify that everything works by checking the Gateway resource via kubectl:

kubectl get gateway kong -o wide

You should see the following output:

NAME   CLASS   ADDRESS        PROGRAMMED   AGE
kong   kong    172.18.0.102   True         9m5s

If the Gateway has Programmed condition set to True then you can visit Konnect and see your configuration being synced by Kong Ingress Controller.


前へ Install KIC with Kong Gateway Operator
次へ Create a Route
Thank you for your feedback.
Was this page useful?
情報が多すぎる場合 close cta icon
Kong Konnectを使用すると、より多くの機能とより少ないインフラストラクチャを実現できます。月額1Mリクエストが無料。
無料でお試しください
  • Kong
    APIの世界を動かす

    APIマネジメント、サービスメッシュ、イングレスコントローラーの統合プラットフォームにより、開発者の生産性、セキュリティ、パフォーマンスを大幅に向上します。

    • 製品
      • Kong Konnect
      • Kong Gateway Enterprise
      • Kong Gateway
      • Kong Mesh
      • Kong Ingress Controller
      • Kong Insomnia
      • 製品アップデート
      • 始める
    • ドキュメンテーション
      • Kong Konnectドキュメント
      • Kong Gatewayドキュメント
      • Kong Meshドキュメント
      • Kong Insomniaドキュメント
      • Kong Konnect Plugin Hub
    • オープンソース
      • Kong Gateway
      • Kuma
      • Insomnia
      • Kongコミュニティ
    • 会社概要
      • Kongについて
      • お客様
      • キャリア
      • プレス
      • イベント
      • お問い合わせ
  • 利用規約• プライバシー• 信頼とコンプライアンス
© Kong Inc. 2025