public class PortForwardExample extends Object
Easiest way to run this: mvn exec:java -Dexec.mainClass="io.kubernetes.client.examples.PortForwardExample" from inside $REPO_DIR/examples
Then: curl localhost:8080 from a different terminal (but be quick about it, the socket times out pretty fast...)
| Constructor and Description |
|---|
PortForwardExample() |
public static void main(String[] args) throws IOException, io.kubernetes.client.openapi.ApiException, InterruptedException
IOExceptionio.kubernetes.client.openapi.ApiExceptionInterruptedExceptionCopyright © 2022. All rights reserved.