云容器实例 CCI-更新Job:响应示例

时间:2024-11-06 15:35:47

响应示例

状态码: 200

OK

{
  "apiVersion" : "batch/v1",
  "kind" : "Job",
  "metadata" : {
    "creationTimestamp" : "2018-09-05T01:10:59Z",
    "labels" : {
      "app" : "test",
      "controller-uid" : "8c923079-b0a8-11e8-8bcb-f898ef6c78b4",
      "job-name" : "pi"
    },
    "name" : "pi",
    "namespace" : "namespace-test",
    "resourceVersion" : "5398083",
    "selfLink" : "/apis/batch/v1/namespaces/namespace-test/jobs/pi",
    "uid" : "8c923079-b0a8-11e8-8bcb-f898ef6c78b4"
  },
  "spec" : {
    "backoffLimit" : 6,
    "completions" : 1,
    "parallelism" : 1,
    "selector" : {
      "matchLabels" : {
        "controller-uid" : "8c923079-b0a8-11e8-8bcb-f898ef6c78b4"
      }
    },
    "template" : {
      "metadata" : {
        "annotations" : {
          "cri.cci.io/container-type" : "secure-container"
        },
        "creationTimestamp" : null,
        "labels" : {
          "controller-uid" : "8c923079-b0a8-11e8-8bcb-f898ef6c78b4",
          "job-name" : "pi"
        },
        "name" : "pi"
      },
      "spec" : {
        "containers" : [ {
          "command" : [ "perl", "-Mbignum=bpi", "-wle", "print bpi(2000)" ],
          "image" : "perl",
          "imagePullPolicy" : "Always",
          "name" : "pi",
          "resources" : {
            "limits" : {
              "cpu" : "500m",
              "memory" : "1Gi"
            },
            "requests" : {
              "cpu" : "500m",
              "memory" : "1Gi"
            }
          },
          "terminationMessagePath" : "/dev/termination-log",
          "terminationMessagePolicy" : "File"
        } ],
        "dnsPolicy" : "ClusterFirst",
        "imagePullSecrets" : [ {
          "name" : "imagepull-secret"
        } ],
        "restartPolicy" : "Never",
        "schedulerName" : "default-scheduler",
        "securityContext" : { }
      }
    }
  },
  "status" : {
    "active" : 1,
    "startTime" : "2018-09-05T01:10:59Z"
  }
}
support.huaweicloud.com/api-cci/patchBatchV1NamespacedJob.html