Skip to content
Advertisement

CRD creation with java-client for Kubernetes

IS it possible to create custom resource definition by reading the data from yaml file and using Java client for Kubernetes? I am using the version of library 3.0.0 in sbt and with Scala. But I was not able to find any kind of methods for custom resources creation in the main library repository while there are similar methods for the basic resources (like pods)

Advertisement

Answer

Yes, But not only with java client. So first use some lib to read yaml and convert it to JSON. And then USe K8s api for Custom Resource Object or what ever you want to do.

Advertisement