public class RunOperations extends Object
| Constructor and Description |
|---|
RunOperations(KubernetesClient client,
RunConfigBuilder runConfigBuilder) |
| Modifier and Type | Method and Description |
|---|---|
io.fabric8.kubernetes.api.model.Pod |
done()
Apply the
RunConfig onto the cluster and create Pod |
RunOperations |
inNamespace(String namespace)
Specify namespace for the operation
|
RunOperations |
withImage(String image)
Specify image for the Pod
|
RunOperations |
withName(String name)
Specify name for the Pod
|
RunOperations |
withRunConfig(RunConfig generatorRunConfig)
Specify complex configuration for Pod creating using
RunConfig |
public RunOperations(KubernetesClient client, RunConfigBuilder runConfigBuilder)
public RunOperations inNamespace(String namespace)
namespace - namespace in which resource needs to be createdRunOperations with injected namespacepublic RunOperations withImage(String image)
image - image as a stringRunOperations with image injected into RunConfigpublic RunOperations withName(String name)
name - name of the pod to be createdRunOperations with name injected into RunConfigpublic RunOperations withRunConfig(RunConfig generatorRunConfig)
RunConfiggeneratorRunConfig - RunConfig which allows to provide configuring environment variables, labels, resources,
ports etcRunOperations with specified configurationpublic io.fabric8.kubernetes.api.model.Pod done()
RunConfig onto the cluster and create PodCopyright © 2015–2022 Red Hat. All rights reserved.