Skip to content

Can this YAML file be implemented in the form of a volcanoJob? If implemented as a volcanoJob, what is the corresponding YAML format for volcanoJob? Thank you. #5668

Answered by hzp01
hzp01 asked this question in Q&A
Discussion options

You must be logged in to vote
    String yaml = "k8s-tensorflow-job.yaml";
    DefaultKubernetesClient client = DefaultKubernetesClientCreate.getDefaultKubernetesClient();
    List<HasMetadata> items = client.load(K8sTensorflowJobCreate.class.getClassLoader().getResourceAsStream(yaml)).items();
    List<HasMetadata> foo = client.resourceList(items).inNamespace("default").serverSideApply();
    System.out.println(foo);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hzp01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant