public final class KubernetesFacade extends Object implements Closeable
| Constructor and Description |
|---|
KubernetesFacade() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
io.fabric8.kubernetes.api.model.Pod |
createPod(String hostname,
String name,
String image,
String serviceAccount,
Boolean privileged,
Map<String,String> secrets,
Map<String,String> hostPathMounts,
Map<String,String> emptyDirs,
String workspace,
List<io.fabric8.kubernetes.api.model.EnvVar> env,
String cmd) |
Boolean |
deletePod(String name) |
io.fabric8.kubernetes.client.dsl.ExecWatch |
exec(String podName,
AtomicBoolean alive,
CountDownLatch started,
CountDownLatch finished,
PrintStream out,
String... statements) |
static boolean |
isPodCompleted(io.fabric8.kubernetes.api.model.Pod pod) |
static boolean |
isPodRunning(io.fabric8.kubernetes.api.model.Pod pod) |
io.fabric8.kubernetes.client.Watch |
watch(String podName,
AtomicBoolean alive,
CountDownLatch started,
CountDownLatch finished,
Boolean cleanUpOnFinish) |
io.fabric8.kubernetes.client.dsl.LogWatch |
watchLogs(String podName) |
public io.fabric8.kubernetes.api.model.Pod createPod(String hostname, String name, String image, String serviceAccount, Boolean privileged, Map<String,String> secrets, Map<String,String> hostPathMounts, Map<String,String> emptyDirs, String workspace, List<io.fabric8.kubernetes.api.model.EnvVar> env, String cmd)
public io.fabric8.kubernetes.client.dsl.LogWatch watchLogs(String podName)
public io.fabric8.kubernetes.client.dsl.ExecWatch exec(String podName, AtomicBoolean alive, CountDownLatch started, CountDownLatch finished, PrintStream out, String... statements)
public io.fabric8.kubernetes.client.Watch watch(String podName, AtomicBoolean alive, CountDownLatch started, CountDownLatch finished, Boolean cleanUpOnFinish)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic static final boolean isPodRunning(io.fabric8.kubernetes.api.model.Pod pod)
public static final boolean isPodCompleted(io.fabric8.kubernetes.api.model.Pod pod)
Copyright © 2015-2016 Red Hat. All Rights Reserved.