云容器实例 CCI-查询Deployment:响应示例

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

响应示例

状态码: 200

OK

{
  "apiVersion" : "apps/v1",
  "kind" : "Deployment",
  "metadata" : {
    "annotations" : {
      "deployment.kubernetes.io/revision" : "1"
    },
    "creationTimestamp" : "2018-09-03T12:58:07Z",
    "generation" : 1,
    "labels" : {
      "app" : "redis"
    },
    "name" : "deployment-test",
    "namespace" : "namespace-test",
    "resourceVersion" : "5036888",
    "selfLink" : "/apis/apps/v1/namespaces/namespace-test/deployments/deployment-test",
    "uid" : "010506c7-af79-11e8-b6ef-f898ef6c78b4"
  },
  "spec" : {
    "progressDeadlineSeconds" : 600,
    "replicas" : 1,
    "revisionHistoryLimit" : 2,
    "selector" : {
      "matchLabels" : {
        "app" : "redis"
      }
    },
    "strategy" : {
      "rollingUpdate" : {
        "maxSurge" : "25%",
        "maxUnavailable" : "25%"
      },
      "type" : "RollingUpdate"
    },
    "template" : {
      "metadata" : {
        "annotations" : {
          "cri.cci.io/container-type" : "secure-container"
        },
        "creationTimestamp" : null,
        "labels" : {
          "app" : "redis"
        }
      },
      "spec" : {
        "containers" : [ {
          "image" : "redis",
          "imagePullPolicy" : "IfNotPresent",
          "name" : "container-0",
          "resources" : {
            "limits" : {
              "cpu" : "500m",
              "memory" : "1Gi"
            },
            "requests" : {
              "cpu" : "500m",
              "memory" : "1Gi"
            }
          },
          "terminationMessagePath" : "/dev/termination-log",
          "terminationMessagePolicy" : "File"
        } ],
        "dnsPolicy" : "ClusterFirst",
        "imagePullSecrets" : [ {
          "name" : "imagepull-secret"
        } ],
        "restartPolicy" : "Always",
        "schedulerName" : "default-scheduler",
        "securityContext" : { }
      }
    }
  },
  "status" : {
    "availableReplicas" : 1,
    "conditions" : [ {
      "lastTransitionTime" : "2018-09-03T12:58:12Z",
      "lastUpdateTime" : "2018-09-03T12:58:12Z",
      "message" : "Deployment has minimum availability.",
      "reason" : "MinimumReplicasAvailable",
      "status" : "True",
      "type" : "Available"
    }, {
      "lastTransitionTime" : "2018-09-03T12:58:07Z",
      "lastUpdateTime" : "2018-09-03T12:58:12Z",
      "message" : "ReplicaSet \"deployment-test-57f7cff77c\" has successfully\nprogressed.",
      "reason" : "NewReplicaSetAvailable",
      "status" : "True",
      "type" : "Progressing"
    } ],
    "observedGeneration" : 1,
    "readyReplicas" : 1,
    "replicas" : 1,
    "updatedReplicas" : 1
  }
}
support.huaweicloud.com/api-cci/readAppsV1NamespacedDeployment.html