Package io.github.pod4dev.java.service
Class Initializer
java.lang.Object
io.github.pod4dev.java.service.Initializer
-
Method Summary
Modifier and TypeMethodDescriptionstatic PlayercreatePodK8s(String yamlPath) Creates player with specified path for k8s YAML specification.static PlayercreatePodK8s(URI podmanUri, String yamlPath) Creates player with specified paths for socket file and k8s YAML specification.
-
Method Details
-
createPodK8s
Creates player with specified paths for socket file and k8s YAML specification.- Parameters:
podmanUri- host address.yamlPath- path to k8s YAML specification.- Throws:
PodmanException- if yamlPath is empty or error during initialization is happened.
-
createPodK8s
Creates player with specified path for k8s YAML specification. The socket path is autodetected viaPODMAN_HOSTenvironment variable.- Parameters:
yamlPath- path to k8s YAML specification.- Throws:
PodmanException- if yamlPath is empty or error during initialization is happened.
-