Closed javierbq closed 7 years ago
Figured it out.
@javierbq how did you solve the issue?
Same here. 10x
+1 Same issue, how did you solve it?
Hi @roeyazroel,
I figured it out myself as well. The reasons is because the batch/v1 API isn't considered part of the "extensions" group.
Try constructing an API object as follows:
const K8S_BATCH_V1 = new Api.Batch({
url: process.env.K8S_URL,
version: 'v1',
});
You should then be able to execute batch job apis as normal, e.g.
K8S_BATCH_V1.ns('default').job.get ...
I am having trouble running the example job from the k8s documentation using the client.
When I run the script I get the following error:
But I can schedule the job without problem using
kubectl
Am I missing something or I a not configuring the extension correctly?