Skip to content
Kong Logo | Kong Docs Logo
search
  • Docs
    • Explore the API Specs
      View all API Specs View all API Specs View all API Specs arrow image
    • Documentation
      API Specs
      Kong Gateway
      Lightweight, fast, and flexible cloud-native API gateway
      Kong Konnect
      Single platform for SaaS end-to-end connectivity
      Kong Mesh
      Enterprise service mesh based on Kuma and Envoy
      decK
      Helps manage Kong’s configuration in a declarative fashion
      Kong Ingress Controller
      Works inside a Kubernetes cluster and configures Kong to proxy traffic
      Kong Gateway Operator
      Manage your Kong deployments on Kubernetes using YAML Manifests
      Insomnia
      Collaborative API development platform
      Kuma
      Open-source distributed control plane with a bundled Envoy Proxy integration
  • Plugin Hub
    • Explore the Plugin Hub
      View all plugins View all plugins View all plugins arrow image
    • Functionality View all View all arrow image
      View all plugins
      Authentication's icon
      Authentication
      Protect your services with an authentication layer
      Security's icon
      Security
      Protect your services with additional security layer
      Traffic Control's icon
      Traffic Control
      Manage, throttle and restrict inbound and outbound API traffic
      Serverless's icon
      Serverless
      Invoke serverless functions in combination with other plugins
      Analytics & Monitoring's icon
      Analytics & Monitoring
      Visualize, inspect and monitor APIs and microservices traffic
      Transformations's icon
      Transformations
      Transform request and responses on the fly on Kong
      Logging's icon
      Logging
      Log request and response data using the best transport for your infrastructure
  • Support
  • Community
  • Kong Academy
Get a Demo Start Free Trial
Kong Gateway
2.6.x
  • Home icon
  • Kong Gateway
  • Get Started
  • Comprehensive
  • Prepare to Administer Kong Gateway
github-edit-pageEdit this page
report-issueReport an issue
  • Kong Gateway
  • Kong Konnect
  • Kong Mesh
  • Plugin Hub
  • decK
  • Kong Ingress Controller
  • Kong Gateway Operator
  • Insomnia
  • Kuma

  • Docs contribution guidelines
  • 3.5.x (latest)
  • 3.4.x
  • 3.3.x
  • 3.2.x
  • 3.1.x
  • 3.0.x
  • 2.8.x
  • 2.7.x
  • 2.6.x
  • Archive (pre-2.6)
enterprise-switcher-icon Switch to OSS
On this pageOn this page
  • Before you begin
  • Verify the Kong Gateway configuration
  • (Optional) Verify Control Plane and Data Plane connection
  • Summary and next steps
You are browsing documentation for an outdated version. See the latest documentation here.

Prepare to Administer Kong Gateway

Before getting started with using Kong Gateway, verify that it was installed correctly, and that you’re ready to administer it.

Before you begin

Before you start this section, make sure that:

  • Kong Gateway is installed and running.
  • Kong Manager (if applicable) and Kong Admin API ports are listening on the appropriate port/IP/DNS settings.
  • If using declarative configuration to configure Kong Gateway, decK is installed.

In this guide, an instance of Kong Gateway is referenced via <admin-hostname>. Make sure to replace <admin-hostname> with the hostname of your control plane instance.

Verify the Kong Gateway configuration

Using Kong Manager
Using the Admin API
Using decK (YAML)

As a Kong Gateway user, you can use Kong Manager for environment administration. You’re going to use it later on in this guide, so first make sure you can access Kong Manager.

Open a web browser and navigate to http://localhost:8002.

If Kong Gateway was installed correctly, it automatically logs you in and presents the Kong Manager Overview page.

Ensure that you can send requests to the gateway’s Admin API using either cURL or HTTPie.

View the current configuration by issuing the following command in a terminal window:

cURL
HTTPie
curl -i -X GET http://localhost:8001
http localhost:8001

The current configuration returns.

  1. Check that decK is connected to Kong Gateway:

     deck ping
    

    You should see a success message with the version that you’re connected to:

     Successfully connected to Kong!
     Kong version:  2.1.0
    
  2. Ensure that you can pull configuration from Kong Gateway by issuing the following command in a terminal window:

     deck dump
    

    This command creates a kong.yaml file with the gateway’s entire current configuration, in the directory where decK is installed.

    You can also use this command at any time (for example, after a deck sync) to see the Kong Gateway’s most recent configuration.

    Be careful! Any subsequent deck dump will overwrite the existing kong.yaml file. Create backups as needed.

  3. Open the file in your preferred code editor. Since you haven’t configured anything yet, the file should only contain the decK version:

     _format_version: "1.1"
    

    You will use this file to configure Kong Gateway.

(Optional) Verify Control Plane and Data Plane connection

If you’re running Kong Gateway in Hybrid mode, you will need to perform all tasks in this guide from the Control Plane. However, you can check that all of your configurations are being pushed from the Control Plane to your Data Planes using the Cluster Status CLI.

Run the following on a Control Plane:

cURL
HTTPie
curl -i -X GET http://localhost:8001/clustering/data-planes
http :8001/clustering/data-planes

The output shows all of the connected Data Plane instances in the cluster:

{
    "data": [
        {
            "config_hash": "a9a166c59873245db8f1a747ba9a80a7",
            "hostname": "data-plane-2",
            "id": "ed58ac85-dba6-4946-999d-e8b5071607d4",
            "ip": "192.168.10.3",
            "last_seen": 1580623199,
            "status": "connected"
        },
        {
            "config_hash": "a9a166c59873245db8f1a747ba9a80a7",
            "hostname": "data-plane-1",
            "id": "ed58ac85-dba6-4946-999d-e8b5071607d4",
            "ip": "192.168.10.4",
            "last_seen": 1580623200,
            "status": "connected"
        }
    ],
    "next": null
}

Summary and next steps

In this section, you learned about the methods of administering Kong Gateway and how to access its configuration. Next, go on to learn about exposing your services with Kong Gateway.

Thank you for your feedback.
Was this page useful?
Too much on your plate? close cta icon
More features, less infrastructure with Kong Konnect. 1M requests per month for free.
Try it for Free
  • Kong
    Powering the API world

    Increase developer productivity, security, and performance at scale with the unified platform for API management, service mesh, and ingress controller.

    • Products
      • Kong Konnect
      • Kong Gateway Enterprise
      • Kong Gateway
      • Kong Mesh
      • Kong Ingress Controller
      • Kong Insomnia
      • Product Updates
      • Get Started
    • Documentation
      • Kong Konnect Docs
      • Kong Gateway Docs
      • Kong Gateway Enterprise Docs
      • Kong Mesh Docs
      • Kong Insomnia Docs
      • Kong Konnect Plugin Hub
    • Open Source
      • Kong Gateway
      • Kuma
      • Insomnia
      • Kong Community
    • Company
      • About Kong
      • Customers
      • Careers
      • Press
      • Events
      • Contact
  • Terms• Privacy• Trust and Compliance
© Kong Inc. 2023