Skip to content

Error while creating Kubernetes Job #221

@mmmaks

Description

@mmmaks

When creating Kubernetes Job, with yaml :
kind: Job
apiVersion: batch/v1
Error :

java.io.IOException: Unknown apiVersionKind: batch/v1/Job known kinds are:

and then a list of known kinds.
But here shows apiVersion: batch/v1 for job.

Also, when I try to create Job with yaml :
kind: Job
apiVersion: v1

Error :
io.kubernetes.client.ApiException: Bad Request at io.kubernetes.client.ApiClient.handleResponse(ApiClient.java:882) at io.kubernetes.client.ApiClient.execute(ApiClient.java:798) at io.kubernetes.client.apis.BatchV1Api.createNamespacedJobWithHttpInfo(BatchV1Api.java:160) at io.kubernetes.client.apis.BatchV1Api.createNamespacedJob(BatchV1Api.java:144)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions