Get cluster namespace service exposure details

Get cluster namespace service exposure details

get

Get detailed information for the exposed service in the specified cluster and namespace.

Path parameters
clusterIdstringRequired
namespaceNamestringRequired
serviceNamestringRequired
Responses
200
OK
*/*
get
GET /v1/clusters/{clusterId}/namespaces/{namespaceName}/services/{serviceName} HTTP/1.1
Host: 
Accept: */*
200

OK

{
  "clusterIP": "0.0.0.0",
  "creationTimestamp": "2023-04-29 05:54:51",
  "detail": {
    "annotations": {
      "meta.helm.sh/release-name": "cocktail",
      "meta.helm.sh/release-namespace": "cocktail-system"
    },
    "clusterIP": "0.0.0.0",
    "creationTimestamp": "2023-04-29 05:54:51",
    "externalEndpoints": [],
    "internalEndpoints": [
      "api-cmdb.cocktail-system:0 TCP"
    ],
    "labelSelector": {
      "app.kubernetes.io/instance": "cocktail",
      "app.kubernetes.io/name": "api-cmdb"
    },
    "labels": {
      "app": "cocktail-api-cmdb",
      "app.kubernetes.io/instance": "cocktail",
      "app.kubernetes.io/managed-by": "Helm"
    },
    "namespace": "cocktail-system",
    "serviceName": "api-cmdb",
    "sessionAffinity": "None",
    "type": "ClusterIP"
  },
  "endpoints": [
    {
      "host": "0.0.0.0",
      "ports": [
        {
          "port": "0",
          "protocol": "TCP"
        }
      ],
      "ready": true
    }
  ],
  "events": [
    {
      "message": "Readiness probe failed: command \"/bin/api-cmdb readiness\" timed out",
      "source": "",
      "subObject": "",
      "count": 1,
      "firstTime": "2023-04-29 05:54:51",
      "lastTime": "2023-06-20 06:35:03",
      "kind": "",
      "name": "",
      "namespace": "cocktail-system",
      "involvedObject": {
        "apiVersion": "",
        "fieldPath": "",
        "kind": "",
        "name": "",
        "namespace": "cocktail-system",
        "resourceVersion": "",
        "uid": ""
      },
      "related": {
        "apiVersion": "",
        "fieldPath": "",
        "kind": "",
        "name": "",
        "namespace": "cocktail-system",
        "resourceVersion": "",
        "uid": ""
      },
      "deployment": "",
      "deploymentYaml": ""
    }
  ],
  "externalEndpoints": [
    ""
  ],
  "internalEndpoints": [
    "agent-mdziow-3-alarm-agent.cocktail-addon:0 TCP"
  ],
  "internalLBFlag": false,
  "labels": {
    "app.kubernetes.io/instance": "agent-mdziow-3",
    "app.kubernetes.io/managed-by": "Helm",
    "...": "..."
  },
  "namespace": "cocktail-system",
  "serviceDeployment": "{\"apiVersion\":\"v1\",\"kind\":\"Service\"...",
  "serviceDeploymentYaml": "apiVersion: v1\nkind: Service\nmetadata:\n  annotations:\n...",
  "serviceName": "agent-mdziow-3-alarm-agent",
  "sessionAffinity": "None"
}

Was this helpful?