<p>I am looking for suggestions on Java API for Kubernetes that I can deploy docker image on kubernetes. My end goal is to be able to deploy docker image on kubernetes programmatically using Java. My current way to deploy the docker image is using the cmd <code>kubectl create -f xxx.yaml</code>. </p>

<p>I have been googling, but I am unable to find much information for the Java API for this matter. It doesn't see that kubernetes client can handle this either. Appreciated with all the help. </p>

<p>Thanks in advance</p>

asun
<p>One tool in this space is the fabric8 Java client. You can use it to programmatically create and apply resources - <a href="https://github.com/fabric8io/kubernetes-client/blob/master/kubernetes-examples/src/main/java/io/fabric8/kubernetes/examples/FullExample.java" rel="nofollow noreferrer">https://github.com/fabric8io/kubernetes-client/blob/master/kubernetes-examples/src/main/java/io/fabric8/kubernetes/examples/FullExample.java</a></p>

<p>Or to apply yaml from a file <a href="https://stackoverflow.com/questions/53501540/kubectl-apply-f-spec-yaml-equivalent-in-fabric8-java-api">kubectl apply -f &lt;spec.yaml&gt; equivalent in fabric8 java api</a></p>
