CRD creation with java-client for Kubernetes

12/11/2018

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)

-- Cassie
java
kubernetes
kubernetes-custom-resources

1 Answer

12/28/2018

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

-- Grigoriev Nick
Source: StackOverflow