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

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

响应示例

状态码: 200

OK

{
  "apiVersion" : "v1",
  "kind" : "Service",
  "metadata" : {
    "creationTimestamp" : "2018-09-04T00:45:36Z",
    "labels" : {
      "app" : "redis"
    },
    "name" : "redis",
    "namespace" : "namespace-test",
    "resourceVersion" : "5146412",
    "selfLink" : "/api/v1/namespaces/namespace-test/services/redis",
    "uid" : "d6a1ce79-afdb-11e8-b6ef-f898ef6c78b4"
  },
  "spec" : {
    "clusterIP" : "10.247.212.210",
    "ports" : [ {
      "name" : "service0",
      "port" : 8080,
      "protocol" : "TCP",
      "targetPort" : 80
    } ],
    "selector" : {
      "app" : "redis"
    },
    "sessionAffinity" : "None",
    "type" : "ClusterIP"
  },
  "status" : {
    "loadBalancer" : { }
  }
}
support.huaweicloud.com/api-cci/createCoreV1NamespacedService.html