This topic tells you how to open your app to HTTP traffic. To enable HTTP traffic to reach an application in a Kubernetes Space, you must create a domain binding.
Before you begin
Before you can expose your app to HTTP traffic, you must:
Create a domain binding
To enable HTTP traffic to reach an application, create a domain binding using Tanzu Platform:
- Navigate to Spaces > Overview.
- Click the Space that you deployed your app to.
-
Click the Ingress tab.
You will see the HTTP route you created for your app and the option to create a Domain Binding.
- Click Create Domain Binding.
- When prompted, enter a name for the domain binding and provide the domain that you created as the domain you want to bind to.
- (Optional) Enter a subdomain and the port you want to bind to.
- Click Create and verify that the domain binding was successfully created.
- Ensure that the entry point for the domain binding and the entry point for the HTTP route for your app are the same, for example,
main
. - Load your app by navigating to the URL listed in your domain binding and HTTP route, for example,
https://my-app.dev.corp.com/
.
Content feedback and comments