I would like to execute an operation on Kubernetes like kubectl apply -f stuff.yaml from a java program. I don't want to invoke kubectl from my Java program, instead, I would like to use the Java Kubernetes client. After looking at the API classes in the project I wasn't able to figure what methods I could use to achieve functionality similar to kubectly apply.
Does anyone have any pointers on how to achieve it?