Cassie
Cassie

Reputation: 3099

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)

Upvotes: 2

Views: 1897

Answers (1)

Grigoriev Nick
Grigoriev Nick

Reputation: 1129

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.

Upvotes: 2

Related Questions