Install the Kong Enterprise Gateway Sample Application
Before installing the Kong Enterprise Gateway sample application, configure
kubectl for the cluster you want to use for the Kong Enterprise Gateway sample application.
Follow the Quick Start instructions to install the Kong Enterprise Gateway through the Helm method.
To configure Styra on Kong Enterprise Gateway, copy and paste the installation commands from SYSTEMS >> Settings >> Install. These commands configure the built-in Kong plugin for OPA authorization and configure OPA to connect to Styra DAS via the Styra Local Plane (SLP).
The Quick Start provides the link to install the sample application. It consists of the following components running in your cluster.
sample-app: A simple HTTP web server that allows employees of a hypothetical organization to obtain salary details at the path
/finance/salary. It also exposes a
/hr/dashboardpath that is only accessible by HR employees. Functionally, it is a simple echo server that returns a HTTP 200 response with a plain-text body which contains a success or error message.
sample-ingress: An ingress resource which exposes HTTP routes from outside the cluster to the sample-app service within the cluster. The Kong plugin for OPA is enabled by annotating the ingress resource with
slp: Styra Local Plane (SLP) is a service that acts as an intermediary between the OPAs and Styra DAS. OPAs are configured to retrieve bundles from the SLP rather than directly from Styra DAS. This increases availability as the SLP fetches bundles from Styra DAS and persists them to disk, so policies are still available to new or restarted OPAs even if Styra DAS is unavailable.
When you run the Kong Enterprise Gateway sample application, the OPA sidecars will pull down the policy from your Styra DAS tenant and start enforcing it. This process may take a few minutes to complete.