# Configuration

You configure the control plane, data plane, and CLI (kumactl) for Kuma separately. Here's what to do.

# Control plane

You can configure the control plane:

  • With environment variables
  • With a YAML configuration file

Environment variables take precedence over YAML configuration.

You can find all possible configuration and the default values in the kuma-cp reference doc.

    If you configure kuma-cp with a YAML file, make sure to provide only values that you want to override. Otherwise, upgrading Kuma might be harder, because you need to keep track of your changes when replacing this file on every upgrade.

    # Inspecting the configuration

    Configuration of kuma-cp is logged when kuma-cp runs.

    You can also get the configuration with a call to the Kuma API server:

    curl http://<CP_ADDRESS>:5681/config

    It's also displayed on the Diagnostic tab in the GUI, in the lower left corner.

    In a multi-zone deployment, the zone control plane sends its config to the global control plane. This lets you inspect all configurations with kumactl inspect zones -oyaml or in the GUI.

    # Data plane proxy

      # Inspecting the configuration

      Configuration of kuma-dp is logged when kuma-dp runs.

      # kumactl

      The configuration is stored in $HOME/.kumactl/config, which is created when you run kumactl for the first time. When you add a new control plane with kumactl config control-planes add, the config file is updated. To change the path of the config file, run kumactl with --config-file /new-path/config.

      # Inspecting the configuration

      You can view the current configuration using kumactl config view.

      Last Updated: 4/7/2022, 3:45:22 PM