Get detailed information for Deployment in the specified cluster and namespace.
OK
status information
"2023-05-02 07:12:02"
deployment information
"{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\"..."
deployment information(YAML)
"apiVersion: apps/v1\nkind: Deployment\nmetadata:\n..."
Number of pods to provide
1
Image list
match Label list
Deployement name
"cocktail-log-api"
namespace name
"cocktail-system"
New replicaset information
Number of ready pods
1
const response = await fetch('/v1/clusters/{clusterId}/namespaces/{namespaceName}/deployments/{deploymentName}', {
method: 'GET',
headers: {},
});
const data = await response.json();
[
{
"conditions": [
{
"lastHeartbeatTime": "2023-05-02 07:12:02",
"lastTransitionTime": "2023-05-02 07:12:02",
"message": "Deployment has minimum availability.",
"reason": "MinimumReplicasAvailable",
"status": "True",
"type": "Available"
}
],
"creationTimestamp": "2023-05-02 07:12:02",
"deployment": "{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\"...",
"deploymentYaml": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n...",
"desiredPodCnt": 1,
"detail": {
"annotations": {
"acornsoft.io/workload-group-no": "12",
"cocktail-deploy-datetime": "2023-06-28 08:10:52.898",
"cocktail-user-description": ""
},
"creationTime": "2023-05-02 01:45:53",
"labels": {
"app": "api",
"app.kubernetes.io/managed-by": "Helm",
"chart": "api-1.0.0"
},
"minReadySeconds": 0,
"name": "cocktail-log-api",
"namespace": "cocktail-system",
"podTemplate": {
"annotations": {
"kubectl.kubernetes.io/restartedAt": "2023-06-28T08:10:52Z"
},
"labels": {
"app.kubernetes.io/app": "cocktail-log-api",
"app.kubernetes.io/instance": "cocktail-log",
"app.kubernetes.io/name": "api",
"chart": "api-1.0.0",
"heritage": "Helm"
},
"spec": {
"conditions": [],
"detail": {
"containers": [
{
"environmentVariables": {
"APPLICATION_SCRAPE_JOB": "{\"key\":\"APPLICATION_SCRAPE_JOB\",\"name\":\"cocktail-log-api\"}",
"AUDIT_SCRAPE_JOB": "{\"key\":\"AUDIT_SCRAPE_JOB\",\"name\":\"cocktail-log-api\"}",
"COCKTAIL_API_SERVER": "http://api-server:8080",
"CONTAINER_SCRAPE_JOB": "{\"key\":\"CONTAINER_SCRAPE_JOB\",\"name\":\"cocktail-log-api\"}",
"LOGGING_FILE_PATH": "/var/log/app/monitoring.log",
"LOGGING_FILE_USE": "true",
"LOGGING_LEVEL": "debug",
"LOKI_ENABLED": "true",
"LOKI_SERVER_URL": "http://cocktail-logs-loki-distributed-gateway.cocktail-apm",
"SERVICE_PORT": "9100"
},
"image": "regi.acloud.run/library/log-api:1.3.0",
"imagePullPolicy": "Always",
"name": "api",
"resources": {
"cpu": {
"limit": "5",
"request": "100m"
},
"memory": {
"limit": "5242880k",
"request": "134217728"
}
},
"restartCount": 0,
"volumeMounts": {
"app-volume": "{\"mountPath\":\"/var/log/app\",\"name\":\"app-volume\",\"subPath\":\"cocktail-log-api\"}",
"loki-cert": "{\"mountPath\":\"/etc/loki/cert\",\"name\":\"loki-cert\"}"
}
}
],
"imagePullSecrets": [
{
"name": "devops-cocktail-t4f1hevxvkmv"
}
],
"initContainers": [],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 30
},
"podStatus": "Pending",
"restartCnt": 0
}
},
"replicas": 1,
"revisionHistoryLimit": "10",
"rollingUpdate": {
"maxSurge": "25%",
"maxUnavailable": "25%"
},
"selector": {
"matchLabels": {
"app.kubernetes.io/app": "cocktail-log-api",
"app.kubernetes.io/instance": "cocktail-log",
"app.kubernetes.io/name": "api"
}
},
"status": {
"available": 1,
"total": 1,
"unavailable": 0,
"updated": 1
},
"strategy": "RollingUpdate"
},
"images": [
"regi.acloud.run/library/log-api:1.3.0"
],
"labels": {
"app": "api",
"app.kubernetes.io/managed-by": "Helm",
"chart": "api-1.0.0"
},
"matchLabels": {
"app.kubernetes.io/app": "cocktail-log-api",
"app.kubernetes.io/instance": "cocktail-log",
"app.kubernetes.io/name": "api"
},
"name": "cocktail-log-api",
"namespace": "cocktail-system",
"newReplicaSets": [
{
"creationTimestamp": "2023-06-28 08:10:52",
"deployment": "{\"metadata\":{\"annotations\":{\"acornsoft.io/workload-group-no\":\"12\",\"cocktail-deploy-datetime...",
"deploymentYaml": "metadata:\n annotations:\n acornsoft.io/workload-group-no: '12'\n cocktail-deploy-datetime...",
"desiredPodCnt": 1,
"detail": {
"annotations": {
"acornsoft.io/workload-group-no": "12",
"cocktail-deploy-datetime": "2023-06-28 08:10:52.898",
"cocktail-user-description": "",
"deployment.kubernetes.io/desired-replicas": "1",
"deployment.kubernetes.io/max-replicas": "2",
"deployment.kubernetes.io/revision": "88",
"meta.helm.sh/release-name": "cocktail-log",
"meta.helm.sh/release-namespace": "cocktail-system"
},
"creationTime": "2023-06-28 08:10:52",
"images": [
"regi.acloud.run/library/log-api:1.3.0"
],
"labels": {
"app.kubernetes.io/app": "cocktail-log-api",
"app.kubernetes.io/instance": "cocktail-log",
"app.kubernetes.io/name": "api",
"chart": "api-1.0.0",
"heritage": "Helm",
"pod-template-hash": "9d5bcff4"
},
"name": "cocktail-log-api-9d5bcff4",
"namespace": "cocktail-system",
"ownerReferences": [
{
"apiVersion": "apps/v1",
"blockOwnerDeletion": true,
"controller": true,
"kind": "Deployment",
"name": "cocktail-log-api",
"uid": "85f52a56-52e7-4289-8777-25f8c78d60e5"
}
],
"podTemplate": {
"annotations": {
"kubectl.kubernetes.io/restartedAt": "2023-06-28T08:10:52Z"
},
"labels": {
"app.kubernetes.io/app": "cocktail-log-api",
"app.kubernetes.io/instance": "cocktail-log",
"app.kubernetes.io/name": "api",
"chart": "api-1.0.0",
"heritage": "Helm",
"pod-template-hash": "9d5bcff4"
},
"spec": {
"conditions": [],
"detail": {
"containers": [
{
"environmentVariables": {
"APPLICATION_SCRAPE_JOB": "{\"key\":\"APPLICATION_SCRAPE_JOB\",\"name\":\"cocktail-log-api\"}",
"AUDIT_SCRAPE_JOB": "{\"key\":\"AUDIT_SCRAPE_JOB\",\"name\":\"cocktail-log-api\"}",
"COCKTAIL_API_SERVER": "http://api-server:8080",
"CONTAINER_SCRAPE_JOB": "{\"key\":\"CONTAINER_SCRAPE_JOB\",\"name\":\"cocktail-log-api\"}",
"LOGGING_FILE_PATH": "/var/log/app/monitoring.log",
"LOGGING_FILE_USE": "true",
"LOGGING_LEVEL": "debug",
"LOKI_ENABLED": "true",
"LOKI_SERVER_URL": "http://cocktail-logs-loki-distributed-gateway.cocktail-apm",
"SERVICE_PORT": "9100"
},
"image": "regi.acloud.run/library/log-api:1.3.0",
"imagePullPolicy": "Always",
"name": "api",
"resources": {
"cpu": {
"limit": "5",
"request": "100m"
},
"memory": {
"limit": "5242880k",
"request": "134217728"
}
},
"restartCount": 0,
"volumeMounts": {
"app-volume": "{\"mountPath\":\"/var/log/app\",\"name\":\"app-volume\",\"subPath\":\"cocktail-log-api\"}",
"loki-cert": "{\"mountPath\":\"/etc/loki/cert\",\"name\":\"loki-cert\"}"
}
}
],
"imagePullSecrets": [
{
"name": "devops-cocktail-t4f1hevxvkmv"
}
],
"initContainers": [],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 30
},
"podStatus": "Pending",
"restartCnt": 0
}
},
"pods": {
"running": 1
},
"podsStatus": {},
"selector": {
"matchLabels": {
"app.kubernetes.io/app": "cocktail-log-api",
"app.kubernetes.io/instance": "cocktail-log",
"app.kubernetes.io/name": "api",
"heritage": "Helm",
"pod-template-hash": "9d5bcff4"
}
}
},
"images": [
"regi.acloud.run/library/log-api:1.3.0"
],
"labels": {
"app.kubernetes.io/app": "cocktail-log-api",
"app.kubernetes.io/instance": "cocktail-log",
"app.kubernetes.io/name": "api"
},
"name": "cocktail-log-api-9d5bcff4",
"namespace": "cocktail-system",
"readyPodCnt": 1
}
],
"readyPodCnt": 1
}
]