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

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

响应示例

状态码: 200

OK

{
  "apiVersion" : "v1",
  "kind" : "Service",
  "metadata" : {
    "annotations" : {
      "kubernetes.io/elb.class" : "dnat",
      "kubernetes.io/natgateway.id" : "4ed25dd6-1887-439f-aef6-b1e3f2b57b5c",
      "tenant.kubernetes.io/domain-id" : "08a2c8ef8180d4150ff5c0012463ee60",
      "tenant.kubernetes.io/project-id" : "08a2c8ef8d80d4152ff8c001d0281c03"
    },
    "creationTimestamp" : "2022-09-06T06:28:09Z",
    "finalizers" : [ "service.kubernetes.io/load-balancer-cleanup" ],
    "labels" : {
      "app" : "service-test"
    },
    "name" : "service-test",
    "namespace" : "namespace-test",
    "resourceVersion" : "41521168",
    "selfLink" : "/api/v1/namespaces/namespace-test/services/service-test",
    "uid" : "7dfc42ef-f938-401c-b44a-1f7bd79b3fcb"
  },
  "spec" : {
    "clusterIP" : "10.247.64.172",
    "externalTrafficPolicy" : "Cluster",
    "loadBalancerIP" : "100.93.1.98",
    "ports" : [ {
      "name" : "service0",
      "nodePort" : 31966,
      "port" : 30157,
      "protocol" : "TCP",
      "targetPort" : 80
    } ],
    "selector" : {
      "app" : "service-test"
    },
    "sessionAffinity" : "None",
    "type" : "LoadBalancer"
  },
  "status" : {
    "loadBalancer" : { }
  }
}
support.huaweicloud.com/api-cci/replaceCoreV1NamespacedService.html