CloudEndpoint and AgentEndpoint as custom resource types that let you create endpoints in ngrok.
The using CRDs guide goes over the details and differences about how to configure each one.
This page covers the different types of endpoints you can create using either CloudEndpoint or AgentEndpoint.
HTTP endpoints
The following examples showcase how you can create endpoints that accepthttp:// cleartext requests.
- AgentEndpoint
- CloudEndpoint
The example showcases an upstream that accepts
http:// requests, but you can also use https:// for the upstream.
For AgentEndpoints, the upstream.url scheme doesn’t need to match the scheme of the public URL.HTTPS endpoints
The following examples showcase how you can create endpoints that accepthttps:// encrypted requests.
For HTTPS endpoints, ngrok automatically terminates TLS connections for your HTTPS endpoints.
If you’d like to control TLS termination yourself, you can use the terminate-tls Traffic Policy action.
- AgentEndpoint
- CloudEndpoint
The example showcases an upstream that accepts
https:// requests, but you can also use http:// for the upstream.
For AgentEndpoints, the upstream.url scheme doesn’t need to match the scheme of the public URL.TCP endpoints
The following examples showcase how you can create endpoints that accepttcp:// requests.
You can use TCP endpoints to forward raw TCP traffic.
To create a TCP endpoint, you must first reserve a TCP address through the ngrok dashboard.
This step isn’t necessary for internal endpoints.
See the bindings page for more information about public/internal/k8s endpoints.
- AgentEndpoint
- CloudEndpoint
The example showcases an upstream that accepts
tcp:// requests, but you can also use tls:// for the upstream.
For AgentEndpoints, the upstream.url scheme doesn’t need to match the scheme of the public URL.TLS endpoints
The following examples showcase how you can create endpoints that accepttls:// requests.
TLS endpoints enable you to deliver any network service that runs over a TLS-based protocol.
TLS endpoints make no assumptions about the wrapped protocol being transported.
For TLS endpoints, ngrok doesn’t terminate the TLS connection by default, and it’s up to you to handle TLS termination in your upstream service.
- AgentEndpoint
- CloudEndpoint