Decide on your portal configuration
Before you can create a developer portal, you must decide on the APIs that you want the portal to serve, their visibility settings, and the usage plans that you want to apply.
The following example portal resource creates a developer portal on the developer.example.com
domain that serves public and private APIs, and allows users to see information about certain usage plans. To learn more about your developer portal options and how to set these up, use the following links:
apiVersion: apimanagement.gloo.solo.io/v2
kind: Portal
metadata:
name: developer-portal
namespace: gloo-mesh-addons
spec:
visibility:
public: true
privateAPILabels:
portal-visibility: private
domains:
- "developer.example.com"
portalBackendSelectors:
- selector:
labels:
app: gloo-mesh-portal-server
usagePlans:
- name: bronze
displayName: "Bronze Plan"
description: "A basic usage plan"
- name: silver
description: "A better usage plan"
- name: gold
description: "The best usage plan!"
apis:
- labels:
portal: dev-portal