How to create a deployment from a YAML file
May you give some examples of can we create Kubernetes objects from YAML files using this API, Thanks.
https://github.com/kubernetes-client/java/blob/master/examples/src/main/java/io/kubernetes/client/examples/YamlExample.java
load the object from your yaml at first, then fire the request to the apiserver using the client
Closing this as the question is answered. Please re-open if there are further questions.
load the object from your yaml at first, then fire the request to the apiserver using the client
Excuse me, but how to load the YAML file ?
using Yaml#load i suppose. see https://github.com/kubernetes-client/java/issues/611#issuecomment-511265984
There are some problems occured while trying to execute the code from a docker container !!
#634