Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The equivalent command in fabric8's KubernetesClient for 'kubectl apply -f' is:

client.resourceList(new KubernetesListBuilder().withItems(items).build()).inNamespace(namespace).createOrReplace();

where items is a List of Kubernetes resources in YAML format, and namespace is the namespace where the resources should be deployed.