Set up Gloo Portal
Set up the portal server and some initial apps to get started.
To use Gloo Portal, you install or upgrade Gloo Mesh Gateway to deploy the portal server. Then, create a gateway listener for the API traffic that you want to expose to end users through the portal. Finally, you deploy some sample apps to get started.
Before you begin
Create or use an existing Kubernetes or OpenShift cluster, and save the cluster name in an environment variable. Note: The cluster name must be alphanumeric with no special characters except a hyphen (-), lowercase, and begin with a letter (not a number).
Set your Gloo Mesh Gateway license key as an environment variable. If you do not have one, contact an account representative. If you prefer to specify license keys in a secret instead, see Licensing. To check your license’s validity, you can run
meshctl license check --key $(echo $GLOO_MESH_GATEWAY_LICENSE_KEY} | base64 -w0)
.Install the following command-line (CLI) tools.
Set up Gloo Portal
Install Gloo Mesh Gateway with basic meshctl
profiles that set up the portal server. These profiles are meant for quick demonstration and testing scenarios.
gloo-gateway-single
profile: Installs the management plane components that consists of the Gloo management server, Gloo UI, and their shared backing Redis database; the data plane that consists of the Gloo agent; observability components including the OpenTelemetry (OTel) collector and Prometheus; and the Istio ingress gateway proxy.portal
profile: Installs the portal server, rate limiter, and external auth service, as well as a shared Redis instance for the portal server and external auth service.
Want to use Helm as part of a more advanced installation? See Install Portal with analytics.
Install Gloo Mesh Gateway with the required add-ons, including the external auth service, rate limiter, and portal server.
Verify that Portal and the related components are installed.
In the example output, make sure that the portal server, external auth service, and rate limiter and all of the Gloo components are healthy.
Verify that the Istio ingress gateway proxy service is created and assigned an external IP address. It might take a few minutes for the load balancer to deploy.
Example output:
Deploy sample apps
Now that you have Gloo Portal installed, deploy some sample apps. Later, you expose these apps in a frontend developer portal.
You create two apps, Petstore and Tracks.
- Petstore is a collection of API microservices that together represent a Petstore. Different microservices perform different functions, providing information about pets, stores, and users.
- Tracks is a single API that provides information about a catalog of learning resources, or “tracks.”
The apps both consist of a deployment of a REST API and a matching service. Their services include several annotations that Gloo can use to automatically discover the service and create an ApiDoc for you. You learn more about ApiDocs later.
The following example uses a sample app for demonstration purposes only. You can use the app to try out the feature and to help design your own app. The app is not intended for production use and might not have updated dependencies or security patches.
Create a namespace for the apps.
Deploy the apps. The following sample files include the Kubernetes deployment and service for the app. The services include custom annotations that allow Gloo to automatically discover the services and create ApiDocs for them.
Check that your apps are running
Next steps
Next, bundle your apps into API products that you can expose in a frontend developer portal.