Package io.kubernetes.client.examples
Class PortForwardExample
java.lang.Object
io.kubernetes.client.examples.PortForwardExample
A simple example of how to use the Java API
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
PortForwardExample
public PortForwardExample()
-
-
Method Details
-
main
public static void main(String[] args) throws IOException, io.kubernetes.client.openapi.ApiException, InterruptedException - Throws:
IOExceptionio.kubernetes.client.openapi.ApiExceptionInterruptedException
-