Failed to Deliver a Job and No Pod Is Generated

Symptom

After the kubectl apply -f xxx.yaml command is executed, the job fails to be delivered, and the message "Error from server (NotFound): error when creating "xxx-vcjob.yaml": namespaces "vcjob" not found" is displayed.

Cause Analysis

The vcjob namespace is not created.

Solution

  1. Create a vcjob namespace.
    kubectl create namespace vcjob
  2. Deliver the job again. The following is an example.
    kubectl apply -f a800_vcjob.yaml

    If the following information is displayed, the job is successfully delivered.

    configmap/rings-config-mindx-dls-test 
    createdjob.batch.volcano.sh/mindx-dls-test created