- java.lang.Object
-
- com.oracle.bedrock.runtime.k8s.Pod
-
- com.oracle.bedrock.runtime.k8s.PodContainer
-
public class PodContainer extends Pod
A representation of a Kubernetes Pod container.- Author:
- Jonathan Knight
-
-
Constructor Summary
Constructors Constructor Description PodContainer(K8sCluster k8s, String podName, String containerName)Create aPodContainerin a Pod in the default namespace.PodContainer(K8sCluster k8s, String podName, String containerName, String namespace)Create aPodContainer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)protected List<String>getArgs(String command)Obtain the base kubectl arguments.StringgetContainerName()Obtain the name of this container.inthashCode()-
Methods inherited from class com.oracle.bedrock.runtime.k8s.Pod
copyFrom, copyTo, exec, followLog, followLog, getContainers, getExecArgs, getK8sCluster, getNamespace, getPodName, log, log, ls, ls, mkdir, rm
-
-
-
-
Constructor Detail
-
PodContainer
public PodContainer(K8sCluster k8s, String podName, String containerName)
Create aPodContainerin a Pod in the default namespace.- Parameters:
k8s- theK8sClustercontaining the parent PodpodName- the name of the PodcontainerName- the name of this container
-
PodContainer
public PodContainer(K8sCluster k8s, String podName, String containerName, String namespace)
Create aPodContainer.- Parameters:
k8s- theK8sClustercontaining the parent PodpodName- the name of the PodcontainerName- the name of this containernamespace- the namespace that the parent Pod is running in
-
-