Use the Kong Mesh CLI

Uses: Kong Mesh
Related Documentation
Tags
Related Resources
TL;DR

kumactl and kubectl can be used to communicate with the Mesh Control plane

Prerequisites

If you don’t have a Konnect account, you can get started quickly with our onboarding wizard.

  1. The following Konnect items are required to complete this tutorial:
    • Personal access token (PAT): Create a new personal access token by opening the Konnect PAT page and selecting Generate Token.
  2. Set the personal access token as an environment variable:

    export KONNECT_TOKEN='YOUR KONNECT TOKEN'
    

Go to the Kuma packages page to download and extract the installation archive for your OS, or download and extract the latest release automatically (Linux or macOS):

  curl -L https://developer.konghq.com/mesh/installer.sh | VERSION=2.11.4 sh -

Go to the CLI reference to see what options you have on the command line.

After Kong Mesh is installed, you can access the control plane via the following methods:

Access method

Mode

Permissions

The Konnect GUI Kubernetes and Universal self managed control plane Read-only
HTTP API Kubernetes and Universal Read-only
kumactl Kubernetes self managed control plane Read-only
kumactl Kubernetes Konnect managed control plane Read and write
kubectl Kubernetes self managed control plane Read and write
kubectl Kubernetes Konnect managed control plane Read-only

By accessing the control plane using one of these methods, you can see the current Kong Mesh configuration or with some methods, you can edit the configuration.

Kong Mesh, being an application that improves the underlying connectivity between your services by making the underlying network more reliable, also comes with some networking requirements itself.

Control plane ports

First and foremost, the kuma-cp application is a server that offers a number of services - some meant for internal consumption by kuma-dp data plane proxies and some meant for external consumption by kumactl, the HTTP API, the GUI or other systems.

The number and type of exposed ports depends on the mode in which the control plane is running as:

Global control plane

When Kong Mesh is run as a distributed service mesh, the global control plane exposes the following ports:

  • TCP
    • 5443: the port for the admission webhook, only enabled in Kubernetes. The default Kubernetes kong-mesh-control-plane service exposes this port on 443.
    • 5680: the HTTP server that returns the health status of the control plane.
    • 5681: the HTTP API server that is being used by kumactl, and that you can also use to retrieve Kong Mesh’s policies and - when running in universal - that you can use to apply new policies. Manipulating Dataplane resources is not possible. It also exposes the Kong Mesh GUI at /gui
    • 5682: HTTPS version of the services available under 5681
    • 5683: gRPC Intercommunication CP server used internally by Kong Mesh to communicate between CP instances.
    • 5685: the Kong Mesh Discovery Service port, leveraged in multi-zone deployments

Zone control plane

When Kong Mesh is run as a distributed service mesh, the zone control plane exposes the following ports:

  • TCP
    • 5443: the port for the admission webhook, only enabled in Kubernetes. The default Kubernetes kong-mesh-control-plane service exposes this port on 443.
    • 5676: the Monitoring Assignment server that responds to discovery requests from monitoring tools, such as Prometheus, that are looking for a list of targets to scrape metrics from.
    • 5678: the server for the control plane to data plane proxy communication (bootstrap configuration, xDS to retrieve data plane proxy configuration, SDS to retrieve mTLS certificates).
    • 5680: the HTTP server that returns the health status and metrics of the control plane.
    • 5681: the HTTP API server that is being used by kumactl. You can also use it to retrieve Kong Mesh’s policies and, when running in universal, you can manage Dataplane resources. When not connected to global, it also exposes the Kong Mesh GUI at /gui
    • 5682: HTTPS version of the services available under 5681
    • 5683: gRPC Intercommunication CP server used internally by Kong Mesh to communicate between CP instances.
Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!