Skip to content

Publishing a Service

Docs Preview

This is unreleased documentation for Traefik Hub!

This page demonstrates how to expose a Service using Traefik Hub and its tunneling feature.

Before you begin

Before getting started, make sure you have the following:

Publishing an Example Application

In this example, you will be using a demo application called whoami, a web server answering with host-related information.


The first step is to install whoami on your machine or cluster.

Use the following commands:

kubectl create deployment whoami --image=traefik/whoami
kubectl create service loadbalancer whoami --tcp=8080:80

Find and Publish

Now that the application is running, go back to the Traefik Hub dashboard.

Find the Services page on the navigation menu, search for the Service called whoami, and select it.

Cannot find the Service?

You can use the search bar in the top right corner of this page. The search bar filters by Service name. Service search

On the service detail page, select the Publish the service button. Use the form to configure the behavior.

You have two options:

  • The Service port, which is normally detected by Traefik Hub automatically
  • The Access Control Policies, which secure the application with credentials, granting access only to certain users.

Finish the process by selecting the Publish the service button. The Service will be accessible in a few moments.

exposed whoami

Once ready, you are redirected to the Service details page, and a new section now displays the details of the Service publication.

You can now see the Traefik Hub autogenerated and unique domain name allocated for your Service.

The application is now accessible.

Bonus: The traffic is fully secured with TLS.

What's next