Skip to content

Tunneling to Private Instances and Ports

Unikraft Cloud (UKC) supports the ability to tunnel to private instances or ports via the kraft cloud tunnel command.

At its most basic, you can create such tunnel with:

Terminal window
kraft cloud tunnel my-instance:8080

This command will forward the local port 8080 to the tcp port 8080 of the private instance my-instance. In many cases, you’ll probably want to explicitly set the local port to use; you can do so with:

Terminal window
kraft cloud tunnel 8443:my-instance:8080

This command is the same as the previous one but sets the local port to be 8443.

Learn More