Chapter 4. Enable custom endpoints for the playground
Custom endpoints is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.
For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.
As a platform engineer or cluster administrator, you can enable the custom endpoints feature to let users create endpoints from models that are not deployed in their project namespace. The following dashboard configuration options in the OdhDashboardConfig custom resource control this feature:
-
aiAssetCustomEndpointscontrols whether users can see and use the custom endpoints feature. When enabled, users can create endpoints from models deployed in another namespace on the same cluster. -
externalProviderscontrols whether users can also create endpoints for external third-party providers such as OpenAI, Anthropic, or AWS. When enabled, data from the responses API can be sent outside the cluster. -
clusterDomainsspecifies additional domains that are considered internal to the cluster.
Enabling external providers allows users to send data from the responses API, including RAG context, MCP tool results, and user input, to endpoints outside the cluster. Evaluate your organization’s data security requirements before enabling this flag.
Prerequisites
- You have cluster administrator privileges in OpenShift.
-
You have access to the
OdhDashboardConfigcustom resource.
Procedure
- Log in to OpenShift as a cluster administrator.
Open the
OdhDashboardConfigcustom resource for editing.For more information, see Editing the dashboard configuration.
In the
specsection, set the following configuration options:spec: dashboardConfig: aiAssetCustomEndpoints: true genAiStudioConfig: aiAssetCustomEndpoints: externalProviders: true clusterDomains: []
where:
- aiAssetCustomEndpoints
-
Specifies whether to show the custom endpoints feature. Set to
trueto allow users to create custom model endpoints. The default value isfalse. - externalProviders
-
Specifies whether users can create external third-party provider endpoints. Set to
trueto enable external providers. The default value isfalse. RequiresaiAssetCustomEndpointsto also be set totrue. - clusterDomains
Specifies an array of domains that are considered internal to the cluster, in addition to
.svc.cluster.local, which is always treated as internal.- Save the custom resource.
Verification
- Users can see the Create endpoint option on the AI asset endpoints page.
- If you enabled external providers, users can create endpoints for external third-party providers.