kubectl cluster-info dump

1 개요[ | ]

kubectl cluster-info dump
$ kubectl cluster-info dump
error: missing apiVersion or kind and cannot assign it; no kind is registered for the type core.NodeList
$ kubectl cluster-info dump
{
    "selfLink": "/api/v1/nodes",
    "resourceVersion": "530",
    "Items": [
        {
            "name": "host01",
            "selfLink": "/api/v1/nodes/host01",
            "uid": "f7c39249-448c-11e8-be48-0242ac11001b",
            "resourceVersion": "526",
            "creationTimestamp": "2018-04-20T11:21:27Z",
... (생략)
    "selfLink": "/apis/extensions/v1beta1/namespaces/default/replicasets",
    "resourceVersion": "535",
    "Items": []
}
{
    "selfLink": "/api/v1/namespaces/default/pods",
    "resourceVersion": "535",
    "Items": []
}
$ kubectl cluster-info dump | grep '"[^"]\+List"'
    "kind": "NodeList",
    "kind": "EventList",
    "kind": "ReplicationControllerList",
    "kind": "ServiceList",
    "kind": "DaemonSetList",
    "kind": "DeploymentList",
    "kind": "ReplicaSetList",
    "kind": "PodList",
    "kind": "EventList",
    "kind": "ReplicationControllerList",
    "kind": "ServiceList",
    "kind": "DaemonSetList",
    "kind": "DeploymentList",
    "kind": "ReplicaSetList",
    "kind": "PodList",

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}