云容器实例 CCI-替换Ingress:响应示例

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

响应示例

状态码: 200

OK

{
  "apiVersion" : "extensions/v1beta1",
  "kind" : "Ingress",
  "metadata" : {
    "annotations" : {
      "kubernetes.io/elb.id" : "xxx",
      "kubernetes.io/elb.ip" : "192.168.137.182",
      "kubernetes.io/elb.port" : "6071"
    },
    "creationTimestamp" : "2018-09-04T02:16:14Z",
    "generation" : 2,
    "labels" : {
      "app" : "redis",
      "isExternal" : "true",
      "zone" : "data"
    },
    "name" : "redis",
    "namespace" : "namespace-test",
    "resourceVersion" : "5162744",
    "selfLink" : "/apis/extensions/v1beta1/namespaces/namespace-test/ingresses/redis",
    "uid" : "7f86c310-afe8-11e8-b6ef-f898ef6c78b4"
  },
  "spec" : {
    "rules" : [ {
      "http" : {
        "paths" : [ {
          "backend" : {
            "serviceName" : "redis",
            "servicePort" : 8081
          },
          "path" : "/"
        } ]
      }
    } ]
  },
  "status" : {
    "loadBalancer" : {
      "ingress" : [ {
        "ip" : "192.168.137.182"
      } ]
    }
  }
}
support.huaweicloud.com/api-cci/replaceExtensionsV1beta1NamespacedIngress.html