云容器实例 CCI-创建Pod:响应示例

时间:2023-12-01 17:06:47

响应示例

状态码: 201

Created

{
  "apiVersion" : "v1",
  "kind" : "Pod",
  "metadata" : {
    "annotations" : {
      "cri.cci.io/container-type" : "secure-container"
    },
    "creationTimestamp" : "2022-08-30T03:14:15Z",
    "finalizers" : [ "billing.kubernetes.io/podbilling-finalizer" ],
    "labels" : {
      "name" : "pod-test",
      "tenant.kubernetes.io/domain-id" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    },
    "name" : "pod-test",
    "namespace" : "test",
    "resourceVersion" : "33742743",
    "selfLink" : "/api/v1/namespaces/test/pods/pod-test",
    "uid" : "c0f9820e-188c-4612-be69-b9c65c8bdb5a"
  },
  "spec" : {
    "containers" : [ {
      "image" : "redis",
      "imagePullPolicy" : "Always",
      "name" : "test",
      "resources" : {
        "limits" : {
          "cpu" : "500m",
          "memory" : "1Gi"
        },
        "requests" : {
          "cpu" : "500m",
          "memory" : "1Gi"
        }
      },
      "terminationMessagePath" : "/dev/termination-log",
      "terminationMessagePolicy" : "File"
    } ],
    "dnsPolicy" : "Default",
    "enableServiceLinks" : false,
    "imagePullSecrets" : [ {
      "name" : "imagepull-secret"
    } ],
    "nodeSelector" : {
      "node.cci.io/default-cpu-choice" : "true",
      "node.cci.io/flavor" : "general-computing"
    },
    "priority" : 0,
    "restartPolicy" : "Always",
    "runtimeClassName" : "kata",
    "schedulerName" : "volcano",
    "securityContext" : { },
    "terminationGracePeriodSeconds" : 30,
    "tolerations" : [ {
      "effect" : "NoExecute",
      "key" : "node.kubernetes.io/not-ready",
      "operator" : "Exists",
      "tolerationSeconds" : 300
    }, {
      "effect" : "NoExecute",
      "key" : "node.kubernetes.io/unreachable",
      "operator" : "Exists",
      "tolerationSeconds" : 300
    }, {
      "effect" : "NoSchedule",
      "key" : "node.cci.io/occupied",
      "operator" : "Equal",
      "value" : "default"
    }, {
      "effect" : "NoSchedule",
      "key" : "node.cci.io/allowed-on-shared-node",
      "operator" : "Exists"
    }, {
      "effect" : "NoSchedule",
      "key" : "node.kubernetes.io/memory-pressure",
      "operator" : "Exists"
    } ]
  },
  "status" : {
    "phase" : "Pending",
    "qosClass" : "Guaranteed"
  }
}
support.huaweicloud.com/api-cci/createCoreV1NamespacedPod.html