mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
* only process when conditional if specified * adding tests for cluster pod status analyzer * use klog instead of fmt for logging * add additional tests for warn and more operators --------- Co-authored-by: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com>
264 lines
8.4 KiB
JSON
264 lines
8.4 KiB
JSON
{
|
|
"kind": "PodList",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"resourceVersion": "498"
|
|
},
|
|
"items": [
|
|
{
|
|
"kind": "Pod",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "random-pod-75b66db9b9-nqhp8",
|
|
"generateName": "random-pod-75b66db9b9-",
|
|
"namespace": "default",
|
|
"uid": "e00af024-67ca-440d-9714-999cf8617d58",
|
|
"resourceVersion": "488",
|
|
"creationTimestamp": "2023-03-23T16:43:42Z",
|
|
"labels": {
|
|
"app.kubernetes.io/appname": "random-pod",
|
|
"pod-template-hash": "75b66db9b9"
|
|
},
|
|
"ownerReferences": [
|
|
{
|
|
"apiVersion": "apps/v1",
|
|
"kind": "ReplicaSet",
|
|
"name": "random-pod-75b66db9b9",
|
|
"uid": "794592d2-539c-4cca-a036-678bd2357c78",
|
|
"controller": true,
|
|
"blockOwnerDeletion": true
|
|
}
|
|
],
|
|
"managedFields": [
|
|
{
|
|
"manager": "kube-controller-manager",
|
|
"operation": "Update",
|
|
"apiVersion": "v1",
|
|
"time": "2023-03-23T16:43:42Z",
|
|
"fieldsType": "FieldsV1",
|
|
"fieldsV1": {
|
|
"f:metadata": {
|
|
"f:generateName": {},
|
|
"f:labels": {
|
|
".": {},
|
|
"f:app.kubernetes.io/appname": {},
|
|
"f:pod-template-hash": {}
|
|
},
|
|
"f:ownerReferences": {
|
|
".": {},
|
|
"k:{\"uid\":\"794592d2-539c-4cca-a036-678bd2357c78\"}": {}
|
|
}
|
|
},
|
|
"f:spec": {
|
|
"f:containers": {
|
|
"k:{\"name\":\"random-pod\"}": {
|
|
".": {},
|
|
"f:image": {},
|
|
"f:imagePullPolicy": {},
|
|
"f:name": {},
|
|
"f:resources": {},
|
|
"f:terminationMessagePath": {},
|
|
"f:terminationMessagePolicy": {}
|
|
}
|
|
},
|
|
"f:dnsPolicy": {},
|
|
"f:enableServiceLinks": {},
|
|
"f:restartPolicy": {},
|
|
"f:schedulerName": {},
|
|
"f:securityContext": {},
|
|
"f:terminationGracePeriodSeconds": {}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"manager": "kubelet",
|
|
"operation": "Update",
|
|
"apiVersion": "v1",
|
|
"time": "2023-03-23T16:43:46Z",
|
|
"fieldsType": "FieldsV1",
|
|
"fieldsV1": {
|
|
"f:status": {
|
|
"f:conditions": {
|
|
"k:{\"type\":\"ContainersReady\"}": {
|
|
".": {},
|
|
"f:lastProbeTime": {},
|
|
"f:lastTransitionTime": {},
|
|
"f:status": {},
|
|
"f:type": {}
|
|
},
|
|
"k:{\"type\":\"Initialized\"}": {
|
|
".": {},
|
|
"f:lastProbeTime": {},
|
|
"f:lastTransitionTime": {},
|
|
"f:status": {},
|
|
"f:type": {}
|
|
},
|
|
"k:{\"type\":\"Ready\"}": {
|
|
".": {},
|
|
"f:lastProbeTime": {},
|
|
"f:lastTransitionTime": {},
|
|
"f:status": {},
|
|
"f:type": {}
|
|
}
|
|
},
|
|
"f:containerStatuses": {},
|
|
"f:hostIP": {},
|
|
"f:phase": {},
|
|
"f:podIP": {},
|
|
"f:podIPs": {
|
|
".": {},
|
|
"k:{\"ip\":\"10.244.0.5\"}": {
|
|
".": {},
|
|
"f:ip": {}
|
|
}
|
|
},
|
|
"f:startTime": {}
|
|
}
|
|
},
|
|
"subresource": "status"
|
|
}
|
|
]
|
|
},
|
|
"spec": {
|
|
"volumes": [
|
|
{
|
|
"name": "kube-api-access-hz77k",
|
|
"projected": {
|
|
"sources": [
|
|
{
|
|
"serviceAccountToken": {
|
|
"expirationSeconds": 3607,
|
|
"path": "token"
|
|
}
|
|
},
|
|
{
|
|
"configMap": {
|
|
"name": "kube-root-ca.crt",
|
|
"items": [
|
|
{
|
|
"key": "ca.crt",
|
|
"path": "ca.crt"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"downwardAPI": {
|
|
"items": [
|
|
{
|
|
"path": "namespace",
|
|
"fieldRef": {
|
|
"apiVersion": "v1",
|
|
"fieldPath": "metadata.namespace"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"defaultMode": 420
|
|
}
|
|
}
|
|
],
|
|
"containers": [
|
|
{
|
|
"name": "random-pod",
|
|
"image": "random-pod/server:1.27.0-alpine",
|
|
"resources": {},
|
|
"volumeMounts": [
|
|
{
|
|
"name": "kube-api-access-hz77k",
|
|
"readOnly": true,
|
|
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount"
|
|
}
|
|
],
|
|
"terminationMessagePath": "/dev/termination-log",
|
|
"terminationMessagePolicy": "File",
|
|
"imagePullPolicy": "IfNotPresent"
|
|
}
|
|
],
|
|
"restartPolicy": "Always",
|
|
"terminationGracePeriodSeconds": 30,
|
|
"dnsPolicy": "ClusterFirst",
|
|
"serviceAccountName": "default",
|
|
"serviceAccount": "default",
|
|
"nodeName": "chart-testing-control-plane",
|
|
"securityContext": {},
|
|
"schedulerName": "default-scheduler",
|
|
"tolerations": [
|
|
{
|
|
"key": "node.kubernetes.io/not-ready",
|
|
"operator": "Exists",
|
|
"effect": "NoExecute",
|
|
"tolerationSeconds": 300
|
|
},
|
|
{
|
|
"key": "node.kubernetes.io/unreachable",
|
|
"operator": "Exists",
|
|
"effect": "NoExecute",
|
|
"tolerationSeconds": 300
|
|
}
|
|
],
|
|
"priority": 0,
|
|
"enableServiceLinks": true,
|
|
"preemptionPolicy": "PreemptLowerPriority"
|
|
},
|
|
"status": {
|
|
"phase": "Running",
|
|
"conditions": [
|
|
{
|
|
"type": "Initialized",
|
|
"status": "True",
|
|
"lastProbeTime": null,
|
|
"lastTransitionTime": "2023-03-23T16:43:42Z"
|
|
},
|
|
{
|
|
"type": "Ready",
|
|
"status": "True",
|
|
"lastProbeTime": null,
|
|
"lastTransitionTime": "2023-03-23T16:43:46Z"
|
|
},
|
|
{
|
|
"type": "ContainersReady",
|
|
"status": "True",
|
|
"lastProbeTime": null,
|
|
"lastTransitionTime": "2023-03-23T16:43:46Z"
|
|
},
|
|
{
|
|
"type": "PodScheduled",
|
|
"status": "True",
|
|
"lastProbeTime": null,
|
|
"lastTransitionTime": "2023-03-23T16:43:42Z"
|
|
}
|
|
],
|
|
"hostIP": "172.18.0.2",
|
|
"podIP": "10.244.0.5",
|
|
"podIPs": [
|
|
{
|
|
"ip": "10.244.0.5"
|
|
}
|
|
],
|
|
"startTime": "2023-03-23T16:43:42Z",
|
|
"containerStatuses": [
|
|
{
|
|
"name": "random-pod",
|
|
"state": {
|
|
"running": {
|
|
"startedAt": "2023-03-23T16:43:45Z"
|
|
}
|
|
},
|
|
"lastState": {},
|
|
"ready": true,
|
|
"restartCount": 0,
|
|
"image": "docker.io/random-pod/server:1.27.0-alpine",
|
|
"imageID": "docker.io/random-pod/server@sha256:7cd450642c54cc8cce64dd9b4b8664c8480e7df6de880c5e134f4a2ed6446c5c",
|
|
"containerID": "containerd://58e668ba55950e6d08340f496f5e7f33f3d92cbfcbf366ce5e5f5c50a3926c71",
|
|
"started": true
|
|
}
|
|
],
|
|
"qosClass": "BestEffort"
|
|
}
|
|
}
|
|
]
|
|
}
|