Applying Policies

Once installed, Kuma can be configured via its policies. You can apply policies with kumactl on Universal, and with kubectl on Kubernetes. Regardless of what environment you use, you can always read the latest Kuma state with kumactl on both environments.

We follow the best practices. You should always change your Kubernetes state with CRDs, that's why Kuma disables kumactl apply [..] when running in K8s environments.

These policies can be applied either by file via the kumactl apply -f [path] or kubectl apply -f [path] syntax, or by using the following command:

  1. echo "
  2. type: ..
  3. spec: ..
  4. " | kumactl apply -f -

or - on Kubernetes - by using the equivalent:

  1. echo "
  2. apiVersion: kuma.io/v1alpha1
  3. kind: ..
  4. spec: ..
  5. " | kubectl apply -f -

Below you can find the policies that Kuma supports. In addition to kumactl, you can also retrive the state via the Kuma HTTP API as well.